This endpoint is used to create, update, or cancel warranty contracts for a specific order.
๐ Updating Line Item Quantities If the quantity of a product in the original order is changed (e.g., reduced), the corresponding warranty contract quantity is automatically adjusted to match the updated product quantity.
To reduce or cancel warranty coverage for a line item, update the quantity field inside the relevant lineItem object in the orderLineItemList.
โ Cancelling Line Items
To cancel warranty coverage for a specific line item, set its quantity to 0 in the orderLineItemList.
Once cancelled, a warranty contract cannot be reactivated.
This applies to both partial cancellations (some items in the order) and full order cancellations.
๐งพ Handling Full Order Cancellation For full order cancellations, merchants have two options:
planDetails object entirely from the request payload.quantity of each relevant lineItem in orderLineItemList to 0.โ๏ธ Automatic Price and Tenure Updates Any changes to warranty price or tenure (e.g., due to product updates or plan revisions) are handled automatically by the system.
| Header | Description | Required |
|---|---|---|
| X-SureBright-Access-Token | Access token for authentication | Yes |
| Content-Type | application/json | Yes |
Access token for authentication
A unique identifier for a store will be shared as part of the integration kit
"f4c059b2-5b74-4e4c-a3c5-85bc80cf8a09"
Unique identifier for the complete successful order placed by a customer on the merchant site. This represents the whole order that can have multiple line items of different quantities.
48"83737121380"
Date time at which the order was purchased by customer.
"2024-01-07T10:15:30Z"
The lineItemList consists of individual line items representing purchased products and/or products with policies. Each line item is uniquely identified by a lineItemId (String: maximum length 48 characters). The planDetails serve to identify the specific quote option acquired by the customer. OptionId is the combination of product attributes separated by #.
1000
false
100
Warranty created successfully
A unique identifier for a store will be shared as part of the integration kit
"f4c059b2-5b74-4e4c-a3c5-85bc80cf8a09"
A unique identifier for the complete successful order placed by a customer on the merchant site. This represents the whole order that can have multiple line items of different quantities.
48"83737121380"
The list of contracts generated for each quantity in each line item. If any error in generating a contract, the error code and msg will be added for that item instead of the contract id.