Skip to main content

Documentation Portal

UpdateOrderProducts

The UpdateOrderProducts API lets you update the order product's metadata and country of origin after the order has been created.

Method/URL

POST https://{server_name}/Order/UpdateOrderProducts
Parameter

Request

Parameter Name

Type

Description

Mandatory

UpdateOrderProductRequest

Object UpdateOrderProductRequest

The order information and list of products that require updating

Response

Parameter Name

Type

Description

Mandatory

ResponseInfo

Object ResponseInfo

Indicates the results of the API call.

Error Codes

When providing an invalid or non-existent value, the Global-e returns an “ErrorInfo” with an appropriate error message.

Code

Error Message

Description

D001

Orderid %OrderId% not found.

The provided order ID does not exist

D002

CartItemId %CartItemId% not found

The provided cart item ID does not exist in this order

D003

ProductCode %ProductCode% not found

The provided product code does not exist in this order

D004

OriginCountryCode %OriginCountryCode% is invalid

The provided origin country code does not exist in the system

D005

ProductMetaData %key% cannot have an empty value

The provided value for product meta-data is empty or null