This endpoint creates warranty contract for a whole system order. Submit the warranty quote details obtained from the List Quotes for Whole System Warranty endpoint along with the selected warranty plan and line item details. The API returns contract Id for the created warranty contract.
| Header | Description | Required |
|---|---|---|
| X-SureBright-Access-Token | Access token for authentication | Yes |
| Content-Type | application/json | Yes |
warrantyQuoteItemListwarrantyQuoteId - The unique quote Id received from the quote endpointwarrantyQuoteItemId - The unique identifier for the warranty quote item obtained from the quote endpointlineItemList - The complete list of products with their coverage status (isCovered: true/false)sbSalesLeadId or lineItemList is required in the request:sbSalesLeadId - Use this if you have already obtained quotes and have the sales lead Id from the List Quotes API responselineItemList - Use this to provide the complete list of products with their coverage status when creating a new contractsbSalesLeadId, calling this endpoint will update the existing contract instead of creating a new one:contractId - The unique identifier for the warranty contract createdAccess token for authentication
A unique identifier for the store
"test-store-id"
The unique identifier for the warranty quote obtained from the List Quotes for Whole System Warranty endpoint
"36eaa6e3-ca1f-4bc1-86da-76caf7a7114d"
The unique identifier for the warranty quote item obtained from the List Quotes for Whole System Warranty endpoint
"a7defcbd-aa07-4e01-9076-c1935af20a98"
Price of the warranty quote
40
Duration of the warranty coverage in years
2
Customer information for the warranty contract
A unique identifier for the SureBright sales lead
"9f3e21c6-6bdb-4c7f-9b91-2a4f9a2c7d11"
A list of line items representing the products in the order with coverage status