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

code
string
required

The referral code of the affiliate.

Body

The order object.

Represents an order in the system.

Response

200

OK