Skip to main content

Delete Customer Cart Association

DELETE 

https://useast.api.elasticpath.com/v2/carts/:cartID/relationships/customers

You can delete an association between a customer and a cart.

Request

Path Parameters

    cartID stringrequired

    The ID for the cart created by the customer.

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

No Content

Response Headers

    Authorization: http

    name: bearerAuthtype: httpscheme: bearer
    curl -L -X DELETE 'https://useast.api.elasticpath.com/v2/carts/:cartID/relationships/customers' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <TOKEN>' \
    --data-raw '{
    "data": [
    {
    "id": "string",
    "type": "string"
    }
    ]
    }'
    Request Collapse all
    Base URL
    https://useast.api.elasticpath.com
    Auth
    Parameters
    — pathrequired
    — header
    Body
    {
      "data": [
        {
          "id": "string",
          "type": "string"
        }
      ]
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!