Get Contracts for Order

Headers#

HeaderDescriptionRequired
X-SureBright-Access-TokenAccess token for authenticationYes

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).

bash
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 request

  • data.order – the order as stored by SureBright

  • data.contracts – the active contracts on that order

  • data.processedAt – when the lookup was served

A 404 with errorCode: ORDER_NOT_FOUND means no order exists for that storeId and partnerOrderId.

GEThttps://api.surebright.com/partner/api/v1/order

Returns 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-Tokenstringrequired

Merchant 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

storeIdstringrequired

The storeId the order was created with.

Example: f4c059b2-5b74-4e4c-a3c5-85bc80cf8a09
partnerOrderIdstringrequired

Your order identifier, the orderId sent when the contracts were created.

Example: 83737121380