Skip to content

Put cart gift card details

PUT/store/v1/carts/{cart_id}/gift-card-details

    Write who the cart's gift cards are for, who gives them and a message; the cards the order issues carry them, and the code is emailed to the recipient. Empty details remove them.

    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

    • recipient_emailstring · or null

      Where the code is emailed when the order is paid.

    • recipient_namestring · or null

      Up to 80 characters.

    • sender_namestring · or null

      Up to 80 characters ("From Faisal").

    • messagestring · or null

      Up to 500 characters, shown in the email.

    Returns

    200 Saved, trimmed.

    Errors

    • 404not_foundNo such cart, or a wrong token.
    • 422validation_failedToo long, or not an email address.