Get Contracts for Order
Headers#
Overview#
Looks up the order SureBright has on record for one of your orders and returns its active warranty contracts. Contracts that have been cancelled are not included.
Pass the same storeId you used when creating the order, and your own order identifier as partnerOrderId (the orderId of the create request).
curl -G https://{HOST_NAME}/partner/api/v1/order \
--data-urlencode 'storeId={storeId}' \
--data-urlencode 'partnerOrderId=83737121380' \
-H 'X-SureBright-Access-Token: sb_live_...'This endpoint reads the key from X-SureBright-Access-Token only. The same key you use for POST and PUT /partner/api/v1/order works here.
Response#
storeId,partnerOrderId– echoed from the requestdata.order– the order as stored by SureBrightdata.contracts– the active contracts on that orderdata.processedAt– when the lookup was served
A 404 with errorCode: ORDER_NOT_FOUND means no order exists for that storeId and partnerOrderId.
https://api.surebright.com/partner/api/v1/orderReturns the order SureBright has on record for a partnerOrderId together with its active (non-cancelled) warranty contracts. Use it to confirm what was created by POST or PUT /partner/api/v1/order.
Authorizations
X-SureBright-Access-TokenstringrequiredMerchant API key (sb_live_...) created on the Merchant Portal Developers page, or the integration-kit access token. This endpoint reads this header only.
Query parameters
storeIdstringrequiredThe storeId the order was created with.
f4c059b2-5b74-4e4c-a3c5-85bc80cf8a09partnerOrderIdstringrequiredYour order identifier, the orderId sent when the contracts were created.
83737121380