create_gift
Place the order: write, print, and mail the booklet. CHARGES the buyer. The recipient is whoever you name in recipient, which may be your own user. Idempotent on idempotency_key for 24 hours. Pass shared_payment_token to pay tokenlessly, or omit it to charge the account's saved card.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief | Yes | Structured brief about the recipient: what to celebrate, what to tease gently, and the inside jokes worth knowing. | |
| format | No | Booklet format. Only manual_v1, a 16-page booklet, is supported today. | |
| recipient | Yes | Who receives the booklet and where to mail it. Pass an inline recipient with a US ship_to, or a saved recipient_id. | |
| agent_note | No | Optional note from the agent, stored with the order for support. Never printed in the booklet. | |
| idempotency_key | Yes | Caller-chosen key that makes this order idempotent for 24 hours. Reuse the same key to retry safely without charging twice. | |
| preview_before_print | No | If true, the gift pauses for buyer review before printing instead of printing automatically. | |
| shared_payment_token | No | Single-use Stripe Shared Payment Token (spt_...) to pay without a stored card. Omit to charge the account default. |