---
title: "REST API quickstart"
description: "REST endpoints for sending Christmas postcards."
---

# REST API quickstart

## Send a postcard in three calls

1. **Quote** with REST `POST /api/v1/quotes` or MCP `quote_postcard`. Send one country code per card and the buyer currency. Read the total, order-by dates and delivery estimates.
2. **Prepare** with REST `POST /api/v1/orders` or MCP `prepare_postcard`. Supply the explicit mode, card and recipient addresses. Review the front and back previews and pass `payment.checkoutUrl` to the human for Stripe Checkout. Prepare does not charge or print a card.
3. **Check status** with REST `GET /api/v1/orders/{ref}` or MCP `get_order_status` after the human pays. Keep the order reference and preview URLs private. The status view omits recipient names, addresses and messages.

Choose a design with `GET /api/v1/designs` or `list_designs`, or upload a photo with `POST /api/v1/uploads` or `upload_photo` before preparing.

## OpenAPI 3.1 operation summary

[OpenAPI JSON](https://sendchristmaspostcard.com/openapi.json) is the machine-readable contract. Guest REST calls need no API key. Send JSON unless using the multipart photo upload. Send an `Idempotency-Key` on order writes and reuse it only when retrying the same operation. Errors use RFC 9457 problem details, with a `code` and actionable error information.

| REST | MCP tool | Purpose |
| --- | --- | --- |
| `GET /api/v1/designs` | `list_designs` | Browse card designs and photo frames. |
| `POST /api/v1/uploads` | `upload_photo` | Upload a photo and receive an upload ID. |
| `POST /api/v1/quotes` | `quote_postcard` | Get VAT-inclusive totals and delivery estimates. |
| `POST /api/v1/orders` | `prepare_postcard` | Prepare an order with previews and hosted checkout. |
| `GET /api/v1/orders/{ref}` | `get_order_status` | Retrieve the order's status using its private reference. |
| `POST /api/v1/orders/{ref}/checkout` | `get_checkout_link` | Get a Stripe Checkout link for a payable order. |
| `POST /api/v1/orders/{ref}/pay` | `pay_with_mpp` | Pay with Machine Payments Protocol where enabled and explicitly authorized. |
| `POST /api/v1/orders/{ref}/cancel` | `cancel_order` | Request cancellation before submission to print. |
| `GET /api/v1/cutoffs` | `—` | Read destination cutoffs and delivery estimates. |
| `GET /api/v1/prices` | `—` | Read the currency and destination price table. |

## Test mode

Use `mode: "test"` for a sandbox order. Pay with Stripe's test card 4242 4242 4242 4242, any future expiry date and any three-digit CVC. Test orders are never printed or mailed. Use `mode: "live"` only when live ordering is available and the customer wants a real, paid order.

## Versioning and deprecation

The API is versioned in the path (`/api/v1`). Within v1 we only add optional fields, endpoints and error codes, so ignore fields you do not recognise. A breaking change ships as `/api/v2`, and v1 keeps working for at least six months after that. A deprecated endpoint returns `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers with a `Link` to its successor, and the change is announced in this page and in `/llms.txt`.
