Skip to main content
SendRMAToMerchant API (Global-e to Merchant)
Send Return Merchandise Authorization (RMA) to the merchant. Global‑e calls this API after a customer generates a label from the Return Portal. Supports Shopify’s ability to get the return shipping fee when creating a return in their system. Method/URL
Parameters Request Parameters Request classes MerchantReturnand MerchantOrder.
NameTypeDescriptionMandatory
CreatedByStringDate of the RMA requestYes
CurrencyCodeStringCode for the RMA currency
MerchantGUIDStringUnique identifier of the Merchant on Global-e.Yes
MerchantOrderIdStringOrder unique identifier on the Merchant’s siteNo
OrderIdStringGlobal‑e order unique identifier.Yes
ReturnedProductsArray of MerchantReturnProductArray of returned productsYes
ReturnedShippingCostDecimalCost for return shipping
ReturnTrackingNumberStringThe return tracking numberYes
RMANumberStringUnique RMA numberYes
ShipperNameStringThe shipper nameYes
TrackingURLStringThe return tracking URLYes
WebStoreCodeStringCode for the web store
WebStoreInstanceCodeStringCode for the web store instance
Response Parameters
NameTypeDescription
ResponseInfoClass ResponseInfoIndicates if the call has succeeded. Contains the following attributes:
Success
Message
Description
Examples Request Example
Response Examples Success Example
Failure Example
Classes
Merchant.Order
Parameter NameTypeDescriptionMandatory
AdditionalRequiredDocumentsList<orderDocoment>The required additional documents for shipping. When the information is provided, the Merchant must wait for the documents to be provided before starting fulfilment.
AllowMailsFromMerchantBooleanIndicates if the end customer has opted on the Global‑e checkout page to receive emails from the Merchant.TRUE - Customer opted to receive emailsFALSE - Customer did not opt to receive emails
CartHashStringCart hash originally specified in the merchantCartHash argument for the SendCart method for the cart converted to this order on Global‑e.No
CartIdStringIdentifier of the cart on the Merchant’s site originally specified in merchantCartToken argument for SendCart method for the cart converted to this order on Global‑e.No
CashOnDeliveryFeeDecimalCash On Delivery fee amount in Merchant’s currency.
CCFPriceDecimalCustoms Clearance Fees (CCF), in the Merchant currency.
ClearCartBooleanIndicates if the end customer’s cart must be cleared before this method finishes execution on the Merchant’s site.TRUE - The end customer’s cart must be clearedFALSE - The end customer’s cart does not have to be cleare
CurrencyCodeString3-char ISO currency code for the order being posted. By default, this is set to the original Merchant’s currency.
CurrencyNameStringCustomer currency name. Returned by GetOrdersDetails API onlyNo
CustomerClass Merchant.CustomerThe paying customer’s preferences (Global-e acts as a paying customer).
CustomerCommentsStringHolds the gift message. In the offline order flow, holds the product comment.
CustomerCommentsStringComments text entered by the end customer in Global‑e checkout.No
CustomerDTBreakdownClass DTBreakdownContains the duties and tax parts the customer paid for the order.No
DateCreatedStringOrder creation date and time. Returned by GetOrdersDetails API only.No
DiscountedShippingPriceDecimalThe shipping price paid by the customer converted to the Merchant’s currency. Total Shipping price reducing Order Discounts (InternationalDetails.DiscountedShippingPrice price converted to the Merchant currency).
DiscountsList<Merchant.Discount>The list of discounts being applied to the order, according to the original list of discounts received in SendCart for this order, and to the Merchant shipping configuration on Global‑e.No
DoNotChargeVATBooleanIndicates if the end customer hasn’t been charged VAT in Global‑e checkout, as specified in the doNotChargeVAT argument for the SendCart method for the cart converted to this order on Global‑e.TRUE - VAT is not chargedTRUE - VAT is chargedNo
ExporterDetails.DestinationRegistrationNumberDecimalThe Tax reference number of the GE Entity at the destination country. Should only be provided when the order is tax-collected. Otherwise, the field should be Null. The value should be Null if the order destination is for an EU country.
ExporterDetails.LocalRegistrationClearanceBooleanIndicates whether the Merchant can use the destination Registration number.TRUE - Merchant can use destination Registration number (ExporterDetails.DestinationRegistrationNumber)FALSE - Merchant cannot use destination Registration number .
FreeShippingCouponCodeStringMerchant’s free shipping CouponCode applied by the end customer, as specified in the FreeShippingCouponCode argument for the SendCart method for the cart converted to this order on Global‑e.No
InternationalDetailsClass Merchant.InternationalDetailsDetails referring to the end customer’s order placed on the Global‑e side. These details apply only to the Merchants dealing with international customers’ support themselves.No
IsB2BBooleanIndicates if the order has a Company name and VAT registration number.TRUE - Order contains a company name and VAT registration numberFALSE - Order does not contain a company name and VAT registration number
IsFreeShippingBooleanIndicates if the Merchant offers free international shipping to the end customer, as specified in the IsFreeShipping argument for the SendCart method for the cart converted to this order on Global‑e.TRUE - Shipping is free.FALSE - Shipping is not free.No
IsMotoBooleanIndicates if the the customer is a customer support agent and an “Offline order” took placeTRUE - The customer is a customer support agent and an “Offline order” took placeFALSE - The customer is a regular customer
IsReplacementOrderBooleanIndicates if the order is a replacement.TRUE - The order is a replacementFALSE - The order is not a replacement
IsSplitOrderBooleanIndicates if the order should be handled as a split order (i.e. without consolidation).TRUE - Order will be splitFALSE - Order is not to be splitNo
IsTaxExemptionBooleanIndicates if the order has a tax exemption.TRUE - Order has a tax exemptionFALSE - Order does not have a tax exemption
LoyaltyCodeStringLoyalty code applicable to the Merchant’s site entered by the end customer in Global‑e checkout.No
LoyaltyPointsEarnedDecimalThe number of loyalty points to be earned for this purchase by the end customer on the Merchant’s site, as specified in the loyaltyPointsEarned argument for the SendCart method for the cart converted to this order on Global-e.No
LoyaltyPointsSpentDecimalThe number of loyalty points spent for this purchase. The existing loyalty points handling procedure must be applied to the end customer’s user account. Therefore, the “Loyalty points” type discount must not be applied to the order directly but can be used for display purposes elsewhere in the system (i.e. on the end user’s My Account page).No
MarkupsList<Merchant.Discount>The list of markups being applied to the order, according to the Merchant shipping configuration on Global‑e. Effectively Markup is a “negative Discount”. The main use case for markups is when the end customer is charged in Global‑e checkout, a flat shipping rate, which is higher than the shipping rate, calculated for the respective order. In this case, Global‑e pays the difference to the Merchant in the form of Markups applied to the order. Unlike Discounts, Markups may be only passed to the Merchant’s back-end ERP system for reconciliation purposes, and may not be displayed to the end customer.No
MerchantDTBreakdownClass DTBreakdownContains the duties and tax parts that the Merchant subsidized for the order.No
MerchantGUIDStringUnique identifier of the Merchant on Global-e.
MerchantOrderIdStringOrder unique identifier on the Merchant’s site returned from a previous call to the SendOrderToMerchant method for this order.No
ModifiedProductStringHolds the product’s SKU
OrderCreationSourceDecimalOne of the values of OrderCreationSource enumeration denoting a type of discount shown in the OrderCreationSource Table.
OrderDocumentsList<OrderDocument>Always contains a single document - it can be either a VAT Invoice or a Customer Receipt, depends if it is within the EU or not.
OrderIdStringGlobal‑e order unique identifier.
OrderPaymentMethodsList<OrderPaymentMethod>List of payment methods the customer use (Credit card, Gift Cards)
OrderStatusReasonClass OrderStatusReasonReason for the order status, why it was cancelled.
OriginalOrderClass Merchant.OriginalOrderDetails that refer to the original order if the current order is a replacement.No
OTCurrencyCodeStringCurrency of the one-time voucher code used to place the order.No
OTVoucherAmountDecimalThe amount taken off the voucher when applicable.No
OTVoucherCodeStringOne-time voucher code used to place the orderNo
ParcelsList<Merchant.Parcel>The list of parcels created for the order. Returned by GetOrdersDetails API only.No
PaymentDetailsClass Merchant.PaymentDetailsThe paying customer’s payment details.
PrePayOfferedBooleanIndicates if the prepayment option for duties and taxes was offered to the customer.TRUE - Prepayment option offered.FALSE - Prepayment option not offered.
PriceCoefficientRateDecimalCountryCoefficient rate applied to the prices in this order.
PrimaryBillingClass Merchant.CustomerDetailsThe primary customer’s billing details. If IsEndCustomerPrimary is set to TRUE, then the primary customer is the payer and his details are indicated in the URL-encoded form.
PrimaryShippingClass Merchant.CustomerDetailsPrimary customer’s shipping details. If Customer.IsEndCustomerPrimary is TRUE, this field contains the end customers’ shipping details. this field contains the Global-e hub’s shipping address in the URL-encoded form.
ProductsList<Merchant.Product>The list of products being purchased.
RoundingRateDecimalThe average conversion rate applied to the prices paid by the end customer when calculating the prices paid by Global‑e to the Merchant in the original Merchant’s currency. This rate includes “FX conversion” and “marketing rounding” factors.
SameDayDispatchBooleanIndicates if the end customer has requested “Same Day Dispatch” on Global‑e checkout.TRUE - Customer requested “Same Day Dispatch”FALSE - Customer did not request “Same Day Dispatch”No
SameDayDispatchCostDecimalCost of the “Same Day Dispatch” option selected by the end customer on Global‑e checkout, in the original Merchant’s currency.No
SecondaryBillingClass Merchant.CustomerDetailsSecondary customer’s billing details. If Customer.IsEndCustomerPrimary is FALSE, this contains attributes of the end customer’s details indicated in the URL-encoded form.
SecondaryShippingClass Merchant.CustomerDetailsSecondary customer’s shipping details. If Customer.IsEndCustomerPrimary is FALSE, this field contains the end customers’ shipping details.
ShippingMethodCodeStringCode denoting the local shipping method selected from the list of available shipping options provided in the shippingOptionsList argument for the SendCart method for the cart converted to this order on Global‑e.No
ShipToStoreCodeStringCode denoting the Merchant’s store specified by the customer for “ship to shop” shipping destination (to be mapped on the Global‑e side).No
StatusCodeStringCode denoting the order status on the Merchant’s site (to be mapped on the Global‑e side).
SubsList<Merchant.Order>Contains Sub orders related to Mixed order. This list is defined only in case the order is Mixed.
TotalDutiesAndTaxesPriceDecimalTotal Duties & Taxes value including Customs Clearance Fees, in the Merchant currency. This amount is the total amount, regardless of whether the customer or the Merchant paid it.
TotalDutiesPaidByCustomerPriceDecimalThe total amount of duties paid by the customer in the Merchant’s currency.
UserIdStringInternal User identifier on the Merchant’s site originally specified in the shippingDetails.UserIdargument for SendCart method for the cart converted to this order on Global‑e.No
USSalesTaxDecimalSales tax value for USA in the Merchant currency. This value is included in TotalDutiesAndTaxesPrice.
WebStoreCodeStringCode used on the Merchant’s side to identify the web store, as specified in the WebStoreCode argument for the SendCart method for the cart converted to this order on Global‑e.No
OrderCreationSource One of the following possible values of OrderCreationSource enumeration denoting a type of discount:
OrderCreationSource ValueNameDescription
0GECheckoutThe default value for orders created in a normal flow via Global‑e Checkout
1MarketplaceThe value for orders that are created at a marketplace and sent to Global-e via your brand
MerchantReturn
Parameter NameTypeDescriptionMandatory
CreatedByStringWho created the return
MerchantGUIDStringMerchant’s unique ID
MerchantOrderIdStringMerchant Order Id
OrderIdStringOrder Id
ReturnedProductsList<MerchantReturnProduct>Products returned
ReturnShippingCostNumberThe return shipping fee paid by the end customer.
ReturnTrackingNumberStringReturn tracking number
RMANumberStringReturn Merchandise Authorization number
ShipperNameStringName of shipper
TrackingURLStringTracking URL
MerchantReturnProduct
Parameter NameTypeDescriptionMandatory
CartItemIdStringThe ID of the cart itemYes
MerchantReturnReasonCodeStringMerchant code for return reasonNo
MerchantReturnReasonNameStringMerchant name for return reasonNo
NameStringName of productYes
ReturnQuantityStringReturn quantityYes
ReturnReasonNameStringReason for returnYes
SKUStringStock keeping unitYes