POST
/
track
/
sale
curl --request POST \
  --url https://api.codeqr.io/track/sale \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "<string>",
  "amount": 1,
  "paymentProcessor": "stripe",
  "eventName": "Purchase",
  "invoiceId": null,
  "currency": "usd",
  "metadata": null
}'
{
  "eventName": "<string>",
  "customerId": "<string>",
  "amount": 123,
  "paymentProcessor": "<string>",
  "invoiceId": "<string>",
  "currency": "<string>",
  "metadata": {}
}

Conversions endpoints require a Business plan subscription or higher.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json

Response

200
application/json

A sale was tracked.

The response is of type object.