Skip to main content
POST
Create a replacement order
Part of the CreateOrder integration guide — see it for when and how to use this endpoint.

Body

application/json
CartData
SendCartData · object
required

Cart data for the new replacement order creation.

OrderReplacement
OrderReplacementData · object
required

Replaced order and product information.

ShippingMethodCode
string

Replacement shipping method code; if empty, the original service level is used.

Response

200 - application/json

Replacement order created successfully.

Response to a successful CreateOrder call. No response field table is documented on the page — top-level fields are modeled from the response JSON example; nested objects are typed where their structure is evident.

OrderId
string

Global-e order identifier.

MerchantOrderId
string

Merchant order identifier.

MerchantInternalOrderId
string | null

Merchant internal order identifier.

IsReplacementOrder
boolean

Indicates this is a replacement order.

OriginalOrder
object

The original order this replaces.

CurrencyCode
string

3-character ISO currency code.

CurrencyName
string

Currency name.

Products
object[] | null

Products in the replacement order.

Discounts
object[] | null

Discounts applied to the order.

Markups
object[] | null

Markups applied to the order (e.g. replacement shipping discount).

IsFreeShipping
boolean

Indicates whether shipping is free for this order.

ShippingMethodCode
string

Shipping method code.

HubId
number<decimal> | null

Global-e hub identifier.

InternationalDetails
object | null

International shipping, payment, and tracking details.

OrderDocuments
object[] | null

Documents generated for the order (e.g. VAT invoice).