Orders
Create order with referral code
Orders
Create order with referral code
Adds an order to an affiliate with matching referral code
POST
/
v1
/
track
/
{code}
curl --request POST \
--url https://api.afficone.com/v1/track/{code} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"orderId": "<string>",
"paid": true,
"timestamp": 123,
"isRoyalty": true,
"custom": true,
"commission": 123,
"notes": "<string>",
"coupons": [
"<string>"
],
"customer": {
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"ip": "<string>",
"country": "<string>"
},
"products": [
{
"id": "<string>",
"name": "<string>",
"quantity": 123,
"total": 123,
"subTotal": 123,
"tax": 123
}
],
"metadata": {}
}'
Make sure you’re sending over all required fields.
Path Parameters
The referral code of the affiliate.
Body
The order object.
Represents an order in the system.
Response
200
OK
Was this page helpful?
curl --request POST \
--url https://api.afficone.com/v1/track/{code} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"orderId": "<string>",
"paid": true,
"timestamp": 123,
"isRoyalty": true,
"custom": true,
"commission": 123,
"notes": "<string>",
"coupons": [
"<string>"
],
"customer": {
"name": "<string>",
"phone": "<string>",
"email": "<string>",
"ip": "<string>",
"country": "<string>"
},
"products": [
{
"id": "<string>",
"name": "<string>",
"quantity": 123,
"total": 123,
"subTotal": 123,
"tax": 123
}
],
"metadata": {}
}'