Claims API Routes
An admin creates a claim for an order when a customer reports that an item is defective or incorrect.
Using these API routes, admin users manage order claims, their items, and more.
GET /admin/claims#
List Claims
Retrieve a list of claims. The claims can be filtered by fields such as id. The claims can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.offsetnumberOptionallimitnumberOptionalorderstringOptional-.deleted_atobjectOptionalidstring | string[]Optionalorder_idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberclaimsobject[]The list of claims.
claimsobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims#
Create a Claim
Create a claim. The claim is still in the request state, and the changes are only applied on the order once the claim is confirmed.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
type"refund" | "replace"order_idstringdescriptionstringOptionalinternal_notestringOptionalreason_idstringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
orderobjectThe order change's order.
orderobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/claims/{id}#
Get a Claim
Retrieve a claim by its ID. You can expand the claim's relations or select the fields that should be returned using the query parameters.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
claimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/cancel#
Cancel a Claim
Cancel a claim and its associated return.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest body (application/json)
no_notificationbooleanOptionalRequest examples
Responses
200 OK
claimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
Emitted events
reservation-item.deleted: Emitted when reservations are deleted.
POST /admin/claims/{id}/claim-items#
Add Claim Items to a Claim
Add order items to a claim as claim items. These claim items will have the action WRITE_OFF_ITEM.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
itemsobject[]OptionalThe item's details.
itemsobject[]OptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/claim-items/{action_id}#
Update a Claim Item
Update an order item in a claim by the ID of the item's WRITE_OFF_ITEM action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringWRITE_OFF_ITEM action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
quantitynumberOptionalreason_idstringOptionalinternal_notestringOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/claims/{id}/claim-items/{action_id}#
Remove a Claim Item from a Claim
Remove an order item from a claim by the ID of the item's WRITE_OFF_ITEM action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringWRITE_OFF_ITEM action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/inbound/items#
Add Inbound Items to a Claim
Add inbound (or return) items to a claim. These inbound items will have a RETURN_ITEM action.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest body (application/json)
itemsobject[]OptionalThe items' details.
itemsobject[]OptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectreturnobjectThe return's details.
returnobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/inbound/items/{action_id}#
Update Inbound Items of a Claim
Update an inbound (or return) item of a claim using the ID of the item's RETURN_ITEM action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringRETURN_ITEM action.Request body (application/json)
quantitynumberOptionalinternal_notestringOptionalreason_idstringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectreturnobjectThe return's details.
returnobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/claims/{id}/inbound/items/{action_id}#
Remove an Inbound Item from Claim
Remove an inbound (or return) item from a claim using the ID of the item's RETURN_ITEM action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringRETURN_ITEM action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.Request examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectreturnobjectThe return's details.
returnobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/inbound/shipping-method#
Add an Inbound Shipping Method to a Claim
Add an inbound (or return) shipping method to a claim. The inbound shipping method will have a SHIPPING_ADD action.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest body (application/json)
shipping_option_idstringcustom_amountnumberOptionaldescriptionstringOptionalinternal_notestringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectreturnobjectThe return's details.
returnobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/inbound/shipping-method/{action_id}#
Update Inbound Shipping Method of a Claim
Update the shipping method for returning items in the claim using the ID of the method's SHIPPING_ADD action.
Every shipping method has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringSHIPPING_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
custom_amountnumberOptionalinternal_notestringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/claims/{id}/inbound/shipping-method/{action_id}#
Remove Inbound Shipping Method from Claim
Remove the shipping method for returning items in the claim using the ID of the method's SHIPPING_ADD action.
Every shipping method has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringSHIPPING_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.Request examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectreturnobjectThe return's details.
returnobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/outbound/items#
Add Outbound Items to a Claim
Add outbound (or new) items to a claim. These outbound items will have an ITEM_ADD action.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
itemsobject[]OptionalThe outbound item's details.
itemsobject[]OptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/outbound/items/{action_id}#
Update Outbound Item of a Claim
Update an outbound (or new) item of a claim using the ID of the item's ITEM_ADD action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringITEM_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
quantitynumberOptionalreason_idstringOptionalinternal_notestringOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/claims/{id}/outbound/items/{action_id}#
Remove an Outbound Item from Claim
Remove an outbound (or new) item from a claim using the ID of the item's ITEM_ADD action.
Every item has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringITEM_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/outbound/shipping-method#
Add Outbound Shipping Methods to a Claim
Add an outbound shipping method to a claim. The outbound shipping method will have a SHIPPING_ADD action.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
shipping_option_idstringcustom_amountnumberOptionaldescriptionstringOptionalinternal_notestringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/outbound/shipping-method/{action_id}#
Update Outbound Shipping Method of a Claim
Update the shipping method for delivering outbound items in a claim using the ID of the method's SHIPPING_ADD action.
Every shipping method has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringSHIPPING_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest body (application/json)
custom_amountnumberOptionalinternal_notestringOptionalmetadataobjectOptionalRequest examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/claims/{id}/outbound/shipping-method/{action_id}#
Remove Outbound Shipping Method from Claim
Remove the shipping method for delivering outbound items in the claim using the ID of the method's SHIPPING_ADD action.
Every shipping method has an actions property, whose value is an array of actions. You can check the action's name using its action property, and use the value of the id property.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringaction_idstringSHIPPING_ADD action.Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
order_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/claims/{id}/request#
Confirm a Claim Request
Confirm a claim request, applying its changes on the associated order.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.idstring | string[]Optionalstatusstring | string[]Optionalcreated_atobjectOptionalupdated_atobjectOptionaldeleted_atobjectOptionalRequest examples
Responses
200 OK
returnobjectThe return's details.
returnobjectorder_previewobjectA preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
order_previewobjectclaimobjectThe claim's details.
claimobject400, 401, 404, 409, 422, 500: an error response is returned.
Emitted events
order.claim_created: Emitted when a claim is created for an order.reservation-item.created: Emitted when reservations are created.
DELETE /admin/claims/{id}/request#
Cancel Claim Request
Cancel a requested claim.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
idstringobjectstringDefault: "claim"
deletedboolean400, 401, 404, 409, 422, 500: an error response is returned.