StoredCreditAccount
A stored credit account contains all balance changes.
Retrieve a stored credit account by its unique code. The response includes details such as the balance, status, and validity period.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
403
Forbidden
404
Not found
get
/credit_accounts/{code}Retrieve all balance transactions for a specific gift card by its code.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Responses
200
StoredCreditAccount resource
403
Forbidden
404
Not found
get
/credit_accounts/{code}/balancesRedeem a gift card by providing the amount and currency.
Authorizations
x-api-keystringRequired
Value for the x-api-key header parameter.
Path parameters
codestringRequired
StoredCreditAccount identifier
Body
amountintegerRequired
locationintegerOptional
currencystringOptional
Responses
201
StoredCreditAccount resource created
400
Invalid input
403
Forbidden
422
An error occurred
post
/credit_accounts/{code}/redeemLast updated