This endpoint is used to create warranty contracts for a specific order.
🛠️ Contract Creation Logic Warranty contracts are created in a 1:1 ratio with the quantity of the associated product purchased. The warranty quantity is automatically inferred from the product quantity. Contracts are only created for the exact number of products purchased—warranty coverage cannot exceed or fall short of the product quantity.
🏷️ Using policySKU
The policySKU is a required field that determines the parameters of each warranty contract, including:
policySKU is used for each product to ensure accurate coverage assignment.🔁 Handling Updates If this endpoint is called for an order where contracts already exist:
policySKU.| 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.