POST
/
v1
/
track
curl --request POST \
  --url https://api.afficone.com/v1/track \
  --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": {}
}'

This endpoint isn’t recommended, but we’re leaving it as an option.

With this endpoint, we can only match the referral by the coupons you have set in the coupons property. If you want a more reliable experience, you should use the other endpoint instead.

Body

Represents an order in the system.

Response

200

OK