Backend API
Fields
Unique identifier for the credit.
Credit amount denominated in currency. Minimum of 0.01.
The ID of the parent customer.
Expandable list of the customer’s credit transactions.
ID of the credit applied to the customer's account.
Three-letter ISO currency code in uppercase. Defaults to the store's base currency.
Date and time the credit was created.
Date and time the credit was last updated.
ID of the gift card used to make the payment, if applicable.
Expandable link to the gift card that generated the credit, if applicable.
Expandable link to the invoice the credit was applied to, if applicable.
ID of the invoice the credit was applied to, if applicable.
Unique incremental number assigned automatically each time an account credit is created.
Expandable link to the parent customer.
Expandable link to the payment.
Unique identifier for the payment.
The reason for the refund.
A brief message describing the reason for the refund.
Expandable list of refunds that apply to the credit.
ID of the refund the credit was applied to.
The account credit model
{
"parent_id": "5ffd413300b58e2a4a017831",
"payment_id": "61e78cbed7e71014da0f1b2c",
"amount": 100,
"reason": "promo",
"reason_message": "Found a bag of gold in a tree stump."
"currency": "USD",
"date_created": "2022-01-19T03:59:58.816Z",
"number": "101082",
"id": "61e78cbed7e71014da0f1b87"
}