v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Carts

Exchange Cart

Exchange Cart Id

post/carts/exchange

Request body

owner_typestring

Cart owner type. Must be either 'User' or 'Guest' if owner_id is provided. Must be empty if shop_session_id is provided.

owner_idstring

If owner_type is 'User', this should be the user_id. If owner_type is 'Guest', this can be any unique value, such as a UUID. and shop_session_id cannot be provided at the same time.

shop_session_idstring

If owner_type is empty, this should be a third party id, such as facebook psid or sc user id. shop_session_idandowner_id` cannot be provided at the same time.

Example request

{
  "owner_type": "Guest",
  "owner_id": "30b720ab8f86a0ebb56a324fe6d4992a",
  "shop_session_id": "1234567890abcdef"
}

Response

OK

trace_idstring

Example response

{
  "data": {
    "id": "298f1d18e7914500b9c6328c4720d38e",
    "merchant_id": "61adc919065f7e0028cc8a27"
  }
}