Update credit status by order number
The update credit status endpoint is used to update the credits status, notes, and additional credit attributes.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
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
Path Parameters
The merchant-defined order identifier provided during the Create Order - POST /orders
endpoint.
Body
Request to update credits details
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"
Response
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"
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"
Was this page helpful?