POST
/
sales

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
referralId
string
required

The referral ID associated with the sale

name
string
required

Name of the sale

email
string
required

Email associated with the sale

totalEarned
number
required

Total amount earned from the sale

externalId
string

The external ID of the sale

externalInvoiceId
string

The external invoice ID of the sale

commissionRate
number

Commission rate for the sale

Response

200 - application/json
id
integer

The sale ID

affiliateId
string

The affiliate ID associated with the sale

referralId
string

The referral ID associated with the sale

externalId
string

The external ID of the sale

externalInvoiceId
string

The external invoice ID of the sale

name
string

Name of the sale

email
string

Email associated with the sale

totalEarned
number

Total amount earned from the sale

commissionRate
number

Commission rate for the sale

createdAt
string

Creation timestamp of the sale