Create a loyalty transaction
The Loyalty API is currently in beta.
Please contact our Support Team via our JIRA Service Desk for access to the Beta. If you don’t have access, please contact your account administrator for assistance.
Not yet integrated with Primer and interested in learning more? Contact us.
Create an API key with the loyalty-transactions:write
scopes.
Create a loyalty transaction. This is either a points redemption or a points refund.
Headers
X-API-KEY
Request
This endpoint expects an object.
connectionId
ID of the Primer connection configuration.
customerId
The unique identifier for the customer on the loyalty provider.
orderId
Unique identifier for the order.
value
The value of points to redeem.
type
The type of the transaction.
Allowed values:
Response
Successful Response
date
Creation date & time of the transaction (UTC)
id
Unique Primer identifier for the loyalty transaction.
connectionId
ID of the Primer connection configuration.
customerId
The unique identifier for the customer on the loyalty provider.
orderId
Unique identifier for the order.
connectionTransactionId
ID of the transaction on the loyalty provider's side.
connectionName
Name of the loyalty provider.
type
The type of the transaction.
Allowed values:
value
The value of the transaction.