Put cart gift card details
PUT
/ store/ v1/ carts/ {cart_id}/ gift-card-detailsWrite 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_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
X-Cart-TokenstringrequiredThe cart's token
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
recipient_emailstring · or nullWhere the code is emailed when the order is paid.
recipient_namestring · or nullUp to 80 characters.
sender_namestring · or nullUp to 80 characters ("From Faisal").
messagestring · or nullUp to 500 characters, shown in the email.
Returns
200 Saved, trimmed.
Errors
- 404
not_foundNo such cart, or a wrong token. - 422
validation_failedToo long, or not an email address.