Create the personalised checkout
create_poster_checkoutValidate every detail and create a Shopify checkout for one personalised poster with all the details attached. Returns checkout_url. Nothing is charged: open checkout_url for the user to review the order and pay on GiftsToPrint's own checkout. Before calling, read the details back to the user and confirm they understand they will receive a digital file to print (set confirm_digital_file to true). If a field is wrong, the error lists every problem at once so you can fix them in one go.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| handle | Yes | The poster's handle, from find_posters. | |
| photo_url | Yes | The photo_url returned by upload_photo. | |
| turnaround | Yes | standard: ready the next working day, order Mon-Fri. rush_weekday: ready within 12 hours, order Mon-Fri. rush_weekend: ready within 24 hours, order Sat or Sun. | |
| instructions | No | Optional note to the designers, e.g. how to crop the photo. | |
| buyer_country | No | Optional ISO country code, so checkout opens in the buyer's currency. | |
| personalisation | Yes | The fields from get_poster_form, keyed by their id (e.g. recipient_first_name, birth_day, birth_month). | |
| confirm_digital_file | Yes | Must be true: the buyer understands the poster is a digital file to print, not a physical print. |