curl --request POST \
--url https://api.loopreturns.com/api/{version}/ship-by-loop/shipments/{shipmentId}/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"package_id": "2f0c48ef-1bdc-462e-ac36-8ad435b1b4cd",
"external_id": "ord_123",
"tracking_number": "1Z999",
"tracking_url": "https://partner.example/track/1Z999",
"label_url": "https://partner.example/labels/1.pdf",
"qr_code_url": "https://partner.example/qr/1.png"
}
]
}
'Ship by Loop
Record orders on a shipment
The response to the ship-by-loop.purchase.requested webhook.
Required OAuth scope
ship_by_loop:write
POST
/
ship-by-loop
/
shipments
/
{shipmentId}
/
orders
curl --request POST \
--url https://api.loopreturns.com/api/{version}/ship-by-loop/shipments/{shipmentId}/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"package_id": "2f0c48ef-1bdc-462e-ac36-8ad435b1b4cd",
"external_id": "ord_123",
"tracking_number": "1Z999",
"tracking_url": "https://partner.example/track/1Z999",
"label_url": "https://partner.example/labels/1.pdf",
"qr_code_url": "https://partner.example/qr/1.png"
}
]
}
'Authorizations
Path Parameters
Response
The request was processed successfully