Create commission
POST/affiliate-manager/:locationId/commission
Create a manual commission for a customer.
Request
API Version
v3Location Id
- application/json
- Body
- Example (auto)
Bodyrequired
Affiliate Id
Campaign Id
Customer Id
Amount. Must not be negative.
Possible values: >= 0
ISO 4217 currency code
USDCADEURAEDAFNALLAMDARSAUDAZNBAMBBDDescription
Event Date
Event Id
{
"affiliateId": "6385d230f6d19db03eef6fb2",
"campaignId": "6385d230f6d19db03eef6fb3",
"customerId": "6385d230f6d19db03eef6fb4",
"amount": 100,
"currency": "USD",
"description": "Manual commission",
"eventDate": "2023-08-02T00:00:00.000Z",
"eventId": "manual-event-123"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
Commission id
Location id the commission belongs to
Campaign id
Affiliate id
Customer id
Transaction id. Generated for manual commissions, which have no upstream transaction
Payout the commission was added to
Product name the commission was earned on
Product id the commission was earned on. Always "manual" for a manually created commission
Quantity
Base amount the commission was calculated on
Unit discount applied before calculating the commission
Configured commission percentage or flat value
Commission type
Calculated commission amount
Currency
Commission Status
pendingapprovedpaiddeniedMonth the commission is paid out in
Due date
Whether the commission is in live mode
Whether the commission is a trial commission
Commission tier
firstsecondthirdfourthfifthsixthseventhHow the commission was created
orderinvoicemanualexternal-paymentlead-commissionfirst-promoterEvent id supplied on the request
Whether the commission is deleted
Created by audit metadata
Last updated by audit metadata
Created at timestamp
Updated at timestamp
{
"_id": "6385d230f6d19db03eef6fb2",
"locationId": "ve9EPM428h8vShlRW1KT",
"campaignId": "6385d230f6d19db03eef6fb3",
"affiliateId": "6385d230f6d19db03eef6fb2",
"customerId": "6385d230f6d19db03eef6fb4",
"transactionId": "6385d230f6d19db03eef6fb5",
"payoutId": "6385d230f6d19db03eef6fb6",
"plan": "Manual Commission",
"productId": "manual",
"qty": 1,
"amount": 100,
"unitDiscount": 0,
"commission": 25,
"commissionType": "percentage",
"commissionAmount": 25,
"currency": "USD",
"status": "approved",
"payoutAt": "2024-06-01T00:00:00.000Z",
"dueAt": "2024-06-30T00:00:00.000Z",
"liveMode": true,
"isTrial": false,
"tier": "first",
"creationSource": "manual",
"eventId": "manual-event-123",
"deleted": false,
"createdBy": {
"source": "INTEGRATION",
"channel": "OAUTH",
"sourceId": "6385d230f6d19db03eef6fb7",
"sourceName": "Marketplace App"
},
"lastUpdatedBy": {
"source": "INTEGRATION",
"channel": "OAUTH",
"sourceId": "6385d230f6d19db03eef6fb7",
"sourceName": "Marketplace App"
},
"createdAt": "2024-06-16T00:00:00.000Z",
"updatedAt": "2024-06-16T00:00:00.000Z"
}