Skip to navigation

Create Return Order

View as Markdown

Creates a new return order for a previously shipped order. Specify the original shipment, inventory items to return, and requested return actions. If purchase_label is true, also purchases a return shipping label using origin_address, falling back to the original_shipment_id address when no origin_address is provided; when both are supplied, origin_address takes precedence. tracking_number is not allowed when purchase_label is true. Each inventory item can be identified by id (inventory ID) or sku; when both are supplied, id takes precedence.

Authentication

AuthorizationBearer

Authentication using Personal Access Token (PAT) token

OR
AuthorizationBearer
OAuth2 authentication using JWT tokens

Headers

shipbob_channel_idstringRequiredformat: "int32"

Retrieve your channel ID from the GET /channel endpoint. Use the channel ID that has write scopes.

Query parameters

api-versionstringOptionalDefaults to 1.0
The requested API version

Request

This endpoint expects an object.
fulfillment_centerobjectRequired
inventorylist of objectsRequired
reference_idstringRequired1-50 characters
original_shipment_idinteger or nullOptional
tagslist of objects or nullOptional
tracking_numberstring or nullOptional<=500 characters

Response

Return order created successfully. When purchase_label is true and the label purchase succeeds, both return and label are populated. When purchase_label is false, only return is populated. When purchase_label is true but the label purchase fails, return is populated, label is null, and label_error explains the failure.

labelobject or nullOptional

Return shipping label details. Populated only when purchase_label is true and the label purchase succeeded. Null when purchase_label is false or the label purchase failed (in which case label_error explains why).

label_errorstring or nullOptional

Human-readable error message if label purchase was requested but failed. The return is still created in this case — only the label step failed.

returnobjectOptional
The created return order details

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error