Skip to main content

Create a Customer Cart Association

POST 

/v2/carts/:cartID/relationships/customers

You can create associations between a customer and one or more carts. After cart associations exist for a customer, the customer can access those carts across any device.

Request

Path Parameters

    cartID stringrequired

    The ID for the cart created by the customer. Ensure that you follow the guidelines for Safe Characters.

Header Parameters

    x-moltin-customer-token string

    A customer token to access a specific customer's carts.

Body

    data undefined[]
  • Array [
  • id string

    The ID of the customer.

    type string

    The type of related object. Ensure that it is customer.

  • ]

Responses

OK

Response Headers
    Schema
      data undefined[]
    • Array [
    • id string

      The ID of the customer.

      type string

      The type of related object. Ensure that it is customer.

    • ]
    Loading...