StoredCreditAccount

A stored credit account contains all balance changes.

Retrieve a stored credit account by its code

get

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

get
/credit_accounts/{code}

Retrieve the balance events for a gift card

get

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

get
/credit_accounts/{code}/balances

Redeem a gift card

post

Redeem 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
post
/credit_accounts/{code}/redeem

Last updated