GET
/
loyalty-transactions
List the transactions for a customer
curl --request GET \
  --url https://api.sandbox.primer.io/loyalty-transactions \
  --header 'X-API-KEY: <api-key>'
{
  "items": [
    {
      "id": "t101",
      "date": "2023-01-01T12:00:00.00000",
      "connectionId": "waon-123",
      "customerId": "waon-customer-123",
      "orderId": "order-123",
      "connectionName": "WOAN",
      "connectionTransactionId": "waonTx1",
      "type": "REDEMPTION",
      "value": 200
    },
    {
      "id": "t102",
      "date": "2023-01-02T12:00:00.00000",
      "connectionId": "waon-123",
      "customerId": "waon-customer-123",
      "orderId": "order-123",
      "connectionName": "WOAN",
      "connectionTransactionId": "waonTx1",
      "type": "REDEMPTION",
      "value": 200
    }
  ],
  "total": 54,
  "limit": 2,
  "offset": 0
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

connectionId
string

Filter transactions by customer Id.

customerId
string

Filter transactions by customer Id.

orderId
string

Filter transactions by orderId.

limit
integer
default:50

Limit the number of returned results

offset
integer
default:0

The number of items to skip before returning results

Response

Successful Response

items
LoyaltyAPITransactionResponse · object[]

The list of loyalty transactions

total
integer

The total number of available results

limit
integer

The limit of the paged result

offset
integer

The offset of the paged result