Skip to main content
PATCH
/
api-cart
/
cart-decoupled
/
merge
Merge guest cart with user cart (cart decoupled)
curl --request PATCH \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/cart-decoupled/merge \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "guestCartId": "5f8f0da2d4cc8e00084b9e8e"
}'
{
  "registeredUser": false,
  "account": "<string>",
  "approver": "<string>",
  "po": "<string>",
  "cartId": 111166,
  "status": "pending",
  "allPromosApplied": [
    "<any>"
  ],
  "attributes": [
    "<any>"
  ],
  "__v": 0,
  "totalAmount": {
    "currency": "USD",
    "amount": 38
  },
  "quantity": 2,
  "_id": "5fee9d59f2f08a1b3cbdea08",
  "createdAt": "2020-12-31T02:09:53.914Z",
  "updatedAt": "2020-12-31T02:09:53.914Z",
  "deleted": false,
  "items": [
    {
      "price": {
        "discount": {
          "discountAmount": 0,
          "price": 0,
          "promosApplied": [
            "<any>"
          ]
        },
        "sale": 0,
        "base": 19,
        "currency": "USD"
      },
      "sample": false,
      "isUnique": false,
      "discountedQuantity": 0,
      "group": [
        "123123123123123123123123"
      ],
      "weightUnit": "lb",
      "isPickup": false,
      "itemId": 15,
      "sku": "sk231212",
      "taxCode": "TC1234567890",
      "title": "fabric t-shirt",
      "weight": 4.2,
      "quantity": 2,
      "lineItemId": 1,
      "attributeTotalPrice": 0,
      "totalPrice": {
        "currency": "USD",
        "amount": 38
      },
      "attributes": [
        "<any>"
      ],
      "id": "6141a40c13f13a000876272a",
      "_id": "5fee9d59f2f08a1b3cbdea08",
      "createdAt": "2020-12-31T02:09:53.914Z",
      "updatedAt": "2020-12-31T02:09:53.914Z"
    }
  ]
}

Headers

x-site-context
string
required
Example:

Body

application/json
guestCartId
string
required
Required string length: 24
Example:

Response

deleted
boolean
Example:
items
object[]
registeredUser
boolean
Example:
account
string
approver
string
po
string
cartId
number
Example:
status
string
Example:
allPromosApplied
any[]
attributes
any[]
__v
number
Example:
totalAmount
object
quantity
number
Example:
_id
string
Example:
createdAt
string
Example:
updatedAt
string
Example: