Check credits eligibility by order identifier
Checks whether an order is eligible for credits (for example, gift cards or store credits) in scenarios such as damaged products, late deliveries, or other qualifying conditions defined by your business policies.
This endpoint allows you to verify eligibility using an order identifier, helping businesses manage credits effectively and provide appropriate compensation to customers.
Note:
- Use this endpoint if you have the order ID, order number, or external order ID.
- If you only have an order number, set
orderIdTypetoorder-number.
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 type of order identifier used to locate the order.
Supported values:
order-idorder-numberorder-external-id
order-id, order-number, order-external-id The value of the specified order identifier.
Response
OK
Credits eligibility model
Description provided while requesting credits (for reference)
"Policy used to add credits"
Reason codes to support credits request
24-character system-generated order ID
"62f3982438bcab1951be0a19"
Merchant-given policy name.
"Credits policy"
Policy type used to check credits eligibility
"credits"
