POST
/
loyalty-transactions
Create a loyalty transaction
curl --request POST \
  --url https://api.sandbox.primer.io/loyalty-transactions \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "connectionId": "waon-123",
  "customerId": "waon-customer-123",
  "orderId": "order-123",
  "value": 200,
  "type": "REDEMPTION"
}'
{
  "date": "2023-01-01",
  "id": "t101",
  "connectionId": "waon-123",
  "orderId": "order-123",
  "customerId": "waon-customer-123",
  "connectionTransactionId": "waonTx1",
  "connectionName": "WOAN",
  "type": "REDEMPTION",
  "value": 200
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

Successful Response

The response is of type object.