Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The unique identifier for the return, created by Loop.
Examples:
12345
Queue label generation for a return. This endpoint triggers an asynchronous label generation process for the specified return.
After the label generation is queued (202 response), the label will be processed asynchronously. Once generation is complete, you can retrieve the label data by calling the Get Return Details endpoint:
GET /warehouse/return/details?return_id={returnId}
The response will include a labels array containing the generated label with:
url: The link to the shipping label PDFtracking_number: The tracking number for the shipmentcarrier: The shipping carrier (e.g., USPS, UPS)status: The current status of the labelrate: The shipping costReturns HTTP 202 (Accepted) when the label generation has been successfully queued.
return_not_found): The specified return does not existlabel_already_exists): A label has already been generated for this returnreturn_cannot_receive_label): The return is not in a valid state to
receive a labellabel_generation_failed): A previous label generation attempt failedinternal_error): An unexpected error occurredThe access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier for the return, created by Loop.
12345