Store Credits
Create a store credit transaction
Creates a new store credit transaction. The type determines what sort of transaction it is.
- "REDEMPTION" - Use this type when you want to redeem a certain amount from the store credit balance. The amount MUST be negative. If you want to add an amount to the balance use the "ISSUE" type. 🔒 Requires: store_credits:write:redeem
- "ISSUE" - Use this type when you issue store credit to a customer. 🔒 Requires: store_credits:write:issue
- "REVERSE" - Use this type when voiding an earlier ISSUE or REDEMPTION transaction. 🔒 Requires: store_credits:write:redeem
If the customer account does not have enough credit to honour a REDEMPTION transaction a 422 HTTP status code will be returned.
Idempotency
Please populate the client_id field with a unique transaction identifier, to ensure that the transaction is safe from double-submit problems. When creating an REVERSE operation, client_id must be equal to client_id of a reversed operation. See the tutorial for more information.
post/store_credits/{customerId}/transactions
Path parameters
customerIdstring uuid required
The customer id to apply the store transaction to.
Request body
Response
A transaction successfully created for the customer
Example response
{
"created_at": "2026-01-02T15:04:05Z"
}