Skip to main content
POST
/
sales
Create a new sale
curl --request POST \
  --url https://www.pushlapgrowth.com/api/v1/sales \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "referralId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "[email protected]",
  "promoCode": "<string>",
  "name": "<string>",
  "externalId": "<string>",
  "externalInvoiceId": "<string>",
  "totalEarned": 123,
  "commissionRate": 123
}'
{
  "id": 123,
  "affiliateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "referralId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalId": "<string>",
  "externalInvoiceId": "<string>",
  "name": "<string>",
  "email": "[email protected]",
  "totalEarned": 123,
  "commissionRate": 123,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
totalEarned
number
required
referralId
string<uuid>
email
string<email>
promoCode
string
name
string
externalId
string
externalInvoiceId
string
commissionRate
number

Response

id
integer
affiliateId
string<uuid>
referralId
string<uuid>
externalId
string
externalInvoiceId
string
name
string
email
string<email>
totalEarned
number
commissionRate
number
createdAt
string<date-time>