Skip to content

Attach cart customer

PUT/store/v1/carts/{cart_id}/customer

    Link the signed-in customer (X-Customer-Token) to the cart.

    Path parameters

    • cart_idstringrequired

      The cart's ID, like cart_01k8qs5s….

    Headers

    • X-Cart-Tokenstringrequired

      The cart's token

    • X-Customer-Tokenstringrequired

      Customer session token

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Returns

    200 The updated cart.

    Errors

    • 401unauthenticatedNo valid customer session.
    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.