Use this endpoint to update the credit status, as well as to add any associated notes and additional attributes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
Unique request ID
24-character system-generated order ID returned in the response of Create Order - POST /orders endpoint.
An object containing update credits details. This is only triggered on request.
Unique UUID of credit
"a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111"
Credit status
PENDING, CONFIRMED, FAILED, CANCELED "PENDING"
Merchant-defined custom attributes. This is a placeholder for additional info (in key-value pairs).
{
"giftCardNumber": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
}Placeholder for additional information, if any.
"Credit request initiated"
OK
Credit response
Credits amount
21.5
Three-letter currency code as defined by ISO-4217
"USD"
Reason code
"EC"
Source of credits request
"CSR"
Credit type. Currently, supports only Gift Card
GIFT_CARD "GIFT_CARD"
A list of amounts represented in different currencies.
Each item includes a monetary value and its corresponding currency code,
following the structure defined in the amountInCurrency schema.
This field is used to represent multi-currency totals or balances.
Merchant-defined custom attributes. This is a placeholder for additional info in key-value pairs.
{
"giftCardNumber": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
}Credits creation time, in UTC format
"2022-07-11T15:03:14.642Z"
Unique UUID of credit
"a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111"
Employee (ID or name) who initiated a the credits request
"12312232"
Note
"Credit request initiated"
A sequential or incremental counter associated with a payment for an order. Applicable in refund scenarios to identify the specific payment for refund.
1
Merchant-defined policy code, varies from merchant to merchant. If omitted, the default policy is used.
"RC1"
Credit status
PENDING, CONFIRMED, FAILED, CANCELED "PENDING"
Subreason code
"ACC"
Time of last update to credits, in UTC format.
"2022-07-11T15:03:14.642Z"