Overview
Redo accepts the requests your existing Loop Returns warehouse integration already sends. Point the integration at a Redo base URL and it reads and updates Redo returns through Loop’s endpoint paths and response shape.Choose a version
- v2 (recommended)
- v1 (legacy)
Use this base URL:v2 improves financial calculations, line-item refund allocation, exchange metadata, return comments, and status outcomes. It also returns HTTP
422 for unreadable list parameters, as Loop does./api/v1/warehouse portion is part of the Loop-compatible route. The preceding /redo/v2 or /redo/v1 selects Redo’s compatibility implementation.
Authentication
Create an API key (see Authentication) and send it in theAuthorization header with the Bearer scheme:
Bearer prefix, in an X-Authorization header instead. Redo reads X-Authorization only when the request has no Authorization header.
Endpoints for one return reject a key without the required scope with 403: returns_read to read and returns_write to change a return. Give a key returns_read for list and ASN requests too. See Access scopes for details.
Endpoints
Append these paths to the base URL for your selected version.Returns
Notes and reporting
For
remove, pass the Loop line_item_id values of the items to reject, comma-separated, in the line_item_id query parameter.
Loop’s
close operation maps to rejecting/canceling a Redo return. Loop’s cancel operation maps to resetting a Redo return.Identify a return
For a route containing:return_id, pass the numeric Loop-compatible id returned by the API:
When a request carries more than one, Redo uses
redo_return_id, then return_id, then order_name, then order_id. When an order has several returns, the oldest one matches.
For example:
The
order_id field in a response is the provider’s numeric order ID. The order_id request parameter takes the Redo order ID instead.List and ASN filters
GET /return/list accepts:
In v2,
GET /return/list answers HTTP 422, as Loop does, for an unreadable from or to, a pageSize that is not a positive integer, or a cursor the API cannot read. The body names the first unreadable parameter. See Examples.
GET /reporting/asn supports from, to, filter, pageSize, state, and cursor.
Pagination
For return lists in either version, sendpaginate=true. The API returns an object with the current records and, when another page exists, a URL to request it. See List returns.
The same value is also provided in the nextPageUrl response header. Follow that URL until the next-page value is absent.
The URL carries from, to, filter, pageSize, and cursor. Add state and paginate=true to each subsequent request to keep the state filter and the wrapped { returns, nextPageUrlString } response. Otherwise subsequent pages use the array response.
ASN responses always remain an array and provide the next page through the nextPageUrl header. In v2 that header points to /reporting/asn and carries from, to, pageSize, and cursor, so send state and filter again on each page. In v1 the header points to /return/list, so send the cursor to /reporting/asn yourself.
Without paginate=true, /return/list returns an array.
Examples
These examples use v2 and fake values. The details response lists every field of a return.List returns
returns has every field in the details response.
state and paginate. Add both to keep the same query.
List with an unreadable parameter
422:
422 bodies use the same shape, with these messages:
Get a return
type is standard for an ordinary return and warranty for a warranty. Other Redo return types keep their Redo name.
The response omits gift_card_order_id and gift_card_order_name when the return has no gift card. shopify_refund_object holds the stored Shopify refunds. The example shows it empty because Shopify defines its inner shape.
Process a return
The request has no body:200 with the JSON string "true":
"true" when Redo accepts the request, not when processing finishes. When the return is already complete, Redo answers "true" and processes nothing. Read the return’s state to confirm the outcome.
close, cancel, note, and remove also answer 200 with "true" on success.
Errors
Requests without a valid key get401:
Endpoints for one return can also answer:
remove answers 200 with an errors body, not an error status, for a closed return or an unknown line_item_id:
400 for an unknown filter and, in v2, 422 for unreadable parameters. Process does not return 422.
v2 response behavior
v2 keeps the Loop-compatible response structure, including numericid and string redo_id, but corrects how important fields are populated.
Financial fields
Monetary values are decimal strings with two digits after the decimal point, except the label rates described below.
At the line-item level, v2 reports the original
price, the item’s discount and tax, and allocates refund, refund_item, and refund_tax proportionally when only part of the return is refunded.
label_rate and labels[].rate are the fee Redo billed for the label, in the currency’s minor units, such as cents for USD. label_rate is a string and labels[].rate is a number. Neither field is the carrier’s rate.
Other corrected fields
outcomereportsupsellwhen a customer charge exists; otherwise it distinguishes refunds, store credit, exchanges, and combined outcomes.- Advanced exchanges include parsed numeric product and variant IDs,
sku, title, discount, allocated tax, and total when available. line_items[].return_commentcontains the shopper’s non-empty return-form answers, joined with line breaks.line_items[].weight_in_gramsis always numeric, and missing barcodes use an empty string.- Shipment labels include only shipments with a carrier, status, and tracking number, and associate the matching line-item IDs.
- ASN purchase price and outcome use the same v2 return-accounting totals as return details.
Upgrade from v1 to v2
- Change only the base path from
/api/v1/warehouse(or/redo/v1/api/v1/warehouse) to/redo/v2/api/v1/warehouse. - Keep the same credentials, scopes, endpoint suffixes, return identifiers, and write-operation payloads.
- Update any reconciliation logic or assertions that depend on financial values. v2 intentionally changes the totals and line-item values described above.
- Verify consumers tolerate the newly populated
return_commentand exchange metadata fields and the correctedoutcomepriority.
Loop-format webhooks
Redo can send return events in Loop’s webhook format. Create the webhook in the dashboard or with the REST API.1
Open the webhooks
Open Settings → Developer. In Webhooks, click Add webhook.
2
Choose the format
Set Topic to Returns and Webhook kind to Loop.
3
Enter your endpoint
Enter your Webhook URL and Bearer token, then click Create.
"kind": "loop" to POST https://api.getredo.com/v2.2/stores/{storeId}/webhooks with a key that has the webhooks_write scope:
POST with these headers:
Verify
X-Loop-Signature before you trust a delivery.
The body is the v1 return object, the same as v1 return details, with three fields added in front:
upsell as "0.00" and has no return_comment.
Answer within 5 seconds with a 2xx status. Redo skips an event whose payload is identical to the webhook’s last successful delivery.
After a timeout, a 408, a 429, or a 5xx status, Redo retries at least 60 seconds later, up to 3 attempts in total. Redo does not retry other statuses.
If your endpoint answers 404 or 410 and has no successful delivery for 3 days, Redo disables the webhook. The Webhooks guide covers the Redo format.
Redo follows Loop’s observed API behavior when Loop’s public documentation and actual responses differ.