Skip to main content

Get Loop Return

GET 

/api/loop-returns/returns/:loopReturn

Returns one Loop return with its lines, the linked RMA's quantities, whether Process and Flag can be sent now, and its recent webhook deliveries.

Required scope: returns:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Each return carries: id (SKU.io id), loop_return_id, order_name / shopify_order_id (the Shopify order Loop names), shopify_order_url (that order in the Shopify admin; null when the Loop settings name no Shopify store and the tenant has more than one), sales_order_id / sales_order_number (the matched SKU.io sales order), customer, return_type, Loop state, carrier / tracking_number, bag_barcodes (Happy Returns bag barcodes Loop sent as package_reference / scannable_id; scanning any of them at the Receive Station opens the RMA), destination_id, warehouse_id / warehouse_name (the receiving warehouse of the linked RMA), rma_id / rma_number / rma_status, match_status / match_note (how and whether it linked to an RMA), outcome_status (pending until the warehouse receives the return, then processing, processed, flagged or failed), outcome_at, outcome_error, total, currency, line_count, unresolved_line_count (lines whose SKU matches no product), exchange_order_name / exchange_sales_order_id (the exchange order once it syncs from Shopify), status_page_url (the customer's Loop status page), loop_admin_url, loop_created_at and loop_updated_at.

The detail adds to the list fields: lines (each with sku, product_title, product_id / product_sku once the SKU resolves to a SKU.io product, quantity, return_reason, parent_return_reason, outcome (refund, exchange, credit and so on, as Loop reports it), exchange_sku, price and resolved), rma_expected_quantity and rma_received_quantity from the linked RMA, can_process / process_disabled_reason and can_flag / flag_disabled_reason (whether Process or Flag can be sent now, and why not), and events (the 20 most recent webhook deliveries for this return, newest first).

Returns 404 when the Loop return does not exist.

Authentication: Requires a Bearer token with the returns scope (read for GET, write for the others).

Request​

Responses​

OK

Response Headers
    Content-Type