Skip to main content
POST
Generate the RMA and return documents for an order
Part of the Returns via API integration guide — see it for when and how to use this endpoint.

Body

application/json
OrderId
string
required

The unique Order ID. Maximum 100 characters.

Maximum string length: 100
ReturnedProducts
ReturnedProduct · object[]
required

An array containing the returned products' details. Each item carries CartItemId, MerchantReturnReasonCode, MerchantReturnReasonDescription, ProductCode and ReturnQuantity.

CurrencyCode
string

The currency of the returned prepaid shipping cost. 3-character ISO code. Mandatory if ShippingCost has a greater value than 0.

CultureCode
string

Sets the language of the Combined Return Note. The note is translated into the language specified by CultureCode. If CultureCode is missing, empty, or unsupported, the note defaults to English. Supported cultures: all languages supported by the product. Translated: static text and labels in the note. Not translated: merchant-specific and dynamic content, such as addresses, SKUs, and prices. Provider support: Not all return providers support translation by default — it is currently enabled for ReturnGO. To receive translated return notes, providers must include their provider code in the ProviderCode parameter and ensure their CSM has added them to the translation allow-list.

Email
string

The customer's email address. Maximum 100 characters.

Maximum string length: 100
IsReturnForService
boolean

Indicates if return is created for service.

MerchantRMANumber
string

The Merchant's internal return merchandise authorization (RMA) Number. Maximum 200 characters.

Maximum string length: 200
ProviderCode
string

The provider's name identifies the source of the request.

ReturnAddress
ReturnAddress · object

The merchant hub delivery address with return details.

ReturnShippingMethodId
integer

Based on the end customer's selected shipping method, as returned in the GetReturnShippingOptions response. If empty, Global-e uses the cheapest method based on the return shipping type ID (or self-postage if configured).

ReturnShippingTypeId
integer

The return shipping type. Possible values: 1 - Self-postage (standard); 2 - Prepaid; 3 - Local Prepaid Courier; 4 - Local Prepaid; 5 - Consolidated.

ShippingCost
number

The prepaid shipping cost associated with the return. If not provided, then the ShippingCost will be the configured prepaid/flat return rate.

Response

The return documents required for the return process, with RMA and tracking details, wrapped in the standard IsSuccess / Data envelope.

IsSuccess
boolean

True if the API call is successful. False if the API call fails.

Data
ReturnDocumentsData · object