Create a Shipping Claim via API
This guide walks through the full flow for creating a shipping protection claim programmatically using the Commerce API.
-
Check if the order is protected
Call
GET /orders/{orderId}and look forisShippingProtected: truein the response. If the value isfalse, the order is not eligible for a shipping claim.orderId— the Corso-assigned order identifiersourceOrderId— the Shopify order ID
{"orderId": 18372912,"sourceOrderId": "842810","isShippingProtected": true,...} -
Check for an existing shipping claim
Before creating a new claim, call
GET /shipping-claimsand filter bysourceOrderIdororderIdfrom the previous step. If a claim already exists for the order, do not create a duplicate. -
Create the shipping claim
If the order is protected and no claim exists, call
POST /shipping-claims. The request body must include thelineItemsthat are part of the claim—not necessarily all line items on the order, just the ones affected by the shipping issue (e.g. lost or damaged items). See the full request body and field reference in the API docs. -
Check the claim status
Use the
shippingClaimIdreturned from the create response to callGET /shipping-claims/{shippingClaimId}. The response includes the currentstatusand resolution details.{"shippingClaimId": 456789,"status": "Open","reason": "Lost",...}
Looking up a claim later
Section titled “Looking up a claim later”If you need to check the status of a shipping claim at a later date, call GET /shipping-claims and filter by sourceOrderId to find claims associated with a specific order. Then use the shippingClaimId from the response to call GET /shipping-claims/{shippingClaimId} for the full claim details, including current status and resolution.