Skip to main content
POST
/
v1
/
track
/
{code}
cURL
curl --request POST \
  --url https://api.afficone.com/v1/track/{code} \
  --header 'Content-Type: application/json-patch+json' \
  --header 'X-Affi-Key: <api-key>' \
  --data '
{
  "orderId": "<string>",
  "products": [
    {
      "total": 123,
      "id": "<string>",
      "name": "<string>",
      "quantity": 123,
      "subTotal": 123,
      "tax": 123
    }
  ],
  "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>"
  },
  "metadata": {}
}
'
Make sure you’re sending over all required fields.

Authorizations

X-Affi-Key
string
header
required

Path Parameters

code
string
required

The referral code of the affiliate.

Body

The order object.

Represents an order in the system.

orderId
string
required

The unique identifier for the order.

Minimum string length: 1
products
object[]
required

The list of products in the order.

paid
boolean

Indicates whether the order has been acknowledged in an affiliate payout.

timestamp
integer<int64> | null

The timestamp of the order (in milliseconds).

isRoyalty
boolean | null

Indicates whether the order is a royalty order.

custom
boolean | null

Indicates whether the order is custom.

commission
number<double> | null

The commission for the order.

notes
string | null

Additional notes for the order.

coupons
string[] | null

The list of coupon codes applied to the order.

customer
object

Represents a customer in the system.

metadata
object

Additional metadata for the order.

Response

200

OK