Personalized Gifts Delivered
v1.0.0Quote logo mug gift boxes, check a logo and save a draft order that the buyer pays for on our site.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_gift_box_details Get gift box details
What is in the logo mug gift box, how the logo prints, the card message rules, where it ships and how delivery works.
quote_gift_boxes Quote gift boxes
The total for a number of gift boxes with shipping included, the ship-by and expected delivery dates for an order paid today, and an occasion's last day to order.
| Parameter | Type | Description |
|---|---|---|
boxes * | integer | How many boxes, one per recipient. |
occasion | string | Optional occasion, as get_gift_box_details names them. |
check_logo Check a logo
Fetches a logo from a file the user attached, a public image link or the company's website, checks that it can print on the mug, and stores it for a draft order. Give exactly one of logo_file, image_url or website. Returns a logo_ref for create_draft_order. Each call stores a new copy and places no order.
| Parameter | Type | Description |
|---|---|---|
image_url | string | A public link to the logo image. |
logo_file | object | A file the user attached in the chat. |
website | string | The company's website address; the logo is looked for there. |
create_draft_order Create a draft order
Saves a draft of the order (the logo from check_logo, the card message, the sign-off, the occasion and the kind of gift) and returns a private link. The customer opens the link to check the preview and every card, add their recipient list and pay on the website. Takes no recipient names or addresses and no payment details. Each call saves a new draft with its own link. The answer says when the link expires.
| Parameter | Type | Description |
|---|---|---|
card_message * | string | The message printed on every card. get_gift_box_details gives the rules. |
mode * | string | business for a company logo, personal for a personal gift. |
occasion * | string | The occasion, as get_gift_box_details names them. |
signed_by * | string | Who the cards are from, printed under the message. |
boxes | integer | Optional estimate of how many boxes; the recipient list sets the real count. |
logo_ref | string | From check_logo. Leave it out and the customer adds the logo on the website. |
get_order_status Get order status
Says whether a draft from create_draft_order has been paid, with the order number and ship-by date once it is, or whether its link has expired. Returns no names or addresses.
| Parameter | Type | Description |
|---|---|---|
draft_token * | string | The token from create_draft_order, or its whole link. |