Convert cart to order

Converts the abandoned cart into a completed order in an Ecwid store.

Headers

NameTypeDescription
AuthorizationstringoAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.

Request

Request body is empty for this endpoint.

Response

A JSON object of type 'CreateStatus' with the following fields:

CreateStatus

FieldTypeDescription
orderNumbernumberUnique order number without prefixes/suffixes, e.g. 34
vendorOrderNumberstringOrder number with prefix and suffix defined by admin, e.g. ABC34-q

Errors

In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description

HTTP codes

HTTP StatusMeaning
400Request parameters are invalid
404The customer or any other linked object is not found in the store
500Cannot create an order because of an error on the server

Error response body (optional)

FieldTypeDescription
errorMessagestringError message
Language