Skip to main content
Version: v3

Create commission

POST 

/affiliate-manager/:locationId/commission

Create a manual commission for a customer.

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location Id

application/json

Bodyrequired

    affiliateIdstringrequired

    Affiliate Id

    campaignIdstringrequired

    Campaign Id

    customerIdstringrequired

    Customer Id

    amountnumberrequired

    Amount. Must not be negative.

    Possible values: >= 0

    currencystringrequired

    ISO 4217 currency code

    Available optionsUSDCADEURAEDAFNALLAMDARSAUDAZNBAMBBD
    descriptionstring

    Description

    eventDatestring<date-time>

    Event Date

    eventIdstring

    Event Id

application/json

Successful response

Schema
    _idstringrequired

    Commission id

    locationIdstringrequired

    Location id the commission belongs to

    campaignIdstringrequired

    Campaign id

    affiliateIdstringrequired

    Affiliate id

    customerIdstringrequired

    Customer id

    transactionIdstringrequired

    Transaction id. Generated for manual commissions, which have no upstream transaction

    payoutIdstring

    Payout the commission was added to

    planstring

    Product name the commission was earned on

    productIdstringrequired

    Product id the commission was earned on. Always "manual" for a manually created commission

    qtynumberrequired

    Quantity

    amountnumberrequired

    Base amount the commission was calculated on

    unitDiscountnumber

    Unit discount applied before calculating the commission

    commissionnumber

    Configured commission percentage or flat value

    commissionTypestring

    Commission type

    commissionAmountnumber

    Calculated commission amount

    currencystringrequired

    Currency

    statusstring

    Commission Status

    Available optionspendingapprovedpaiddenied
    payoutAtstring

    Month the commission is paid out in

    dueAtstring

    Due date

    liveModeboolean

    Whether the commission is in live mode

    isTrialboolean

    Whether the commission is a trial commission

    tierstringrequired

    Commission tier

    Available optionsfirstsecondthirdfourthfifthsixthseventh
    creationSourcestringrequired

    How the commission was created

    Available optionsorderinvoicemanualexternal-paymentlead-commissionfirst-promoter
    eventIdstring

    Event id supplied on the request

    deletedbooleanrequired

    Whether the commission is deleted

    createdByobject

    Created by audit metadata

    lastUpdatedByobject

    Last updated by audit metadata

    createdAtstringrequired

    Created at timestamp

    updatedAtstringrequired

    Updated at timestamp