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": {}
}'
Adds an order to an affiliate with matching referral 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.
The referral code of the affiliate.
The order object.
Represents an order in the system.
OK
Was this page helpful?