Skip to content

Set the buyer's email (order emails)

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

    Set the buyer's email (order emails), phone and marketing consent.

    Path parameters

    • cart_idstringrequired

      The cart's ID, like cart_01k8qs5s….

    Headers

    • X-Cart-Tokenstringrequired

      The cart's token

    • shop-api-versionYYYY-MM

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

    Body

    • emailstringrequired
    • phonestring · or null
    • accepts_marketingboolean

      Ticked "email me news and offers".

    • accepts_whatsapp_marketingboolean

      Ticked "send me offers on WhatsApp": its own agreement, kept only with a phone.

    Returns

    200 The updated cart.

    Errors

    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedInvalid email or phone.