Use Case | Recommended Option |
---|---|
Real-time updates | Return Webhook |
Bulk data export/reporting | Detailed Returns List |
Drill-down on a single return | Get Return Details |
Pull packages by tracking status or timeframe | Advanced Shipping Notice |
Parameter | Type | Description | Options/Example |
---|---|---|---|
from | string | The start date and time for the returns list. | "2022-01-01T00:00:00.000Z" |
to | string | The end date and time for the returns list. | "2022-03-31T23:59:59.000Z" |
filter | enum (string) (default: created_at ) | The date used to filter results. | created_at , updated_at |
state | enum (string) | Filter the list to only include returns in a particular state. Defaults to only contain open, closed, and expired returns. | open , closed , cancelled , expired , review |
id
for the return and need all associated data.Parameter | Type | Description |
---|---|---|
return_id | integer | The unique identifier associated with the return. |
order_id | integer | The unique identifier associated with the order. |
order_name | string | The Shopify order name. |
Parameter | Type | Description | Options/Example |
---|---|---|---|
from | string | The start date and time for filtering packages. | "2022-01-01T00:00:00.000Z" |
to | string | The end date and time for filtering packages. | "2022-03-31T23:59:59.000Z" |
tracking_status | string | Filter results by tracking status. | e.g., in_transit , delivered |
Webhook payloads include return metadata, line items, and event details. For the full schema and event types, see the Return webhook documentation. Security: Always validate webhook signatures to ensure authenticity. Reliability: Loop will retry webhooks on failure—see webhook errors and retries for details.
return.created
webhook will likely not contain label or tracking information—there is often a brief delay (a few seconds) before a label is generated. To reliably receive tracking numbers and RMA details, you have two options:
label
webhook topics
label.created
webhook fires as soon as a return shipping label is generated.id
field (which matches the return ID from the Return webhook).return.updated
after label creation
return.updated
webhook is triggered, now containing the label and tracking number in the payload.label
webhooks, or wait for the subsequent return.updated
event with the label data included. Always match the id
field in the label payload to the return ID you received from the return webhook.