para desarrolladores
Permite que tus clientes conviertan un viaje de tu aplicación en un álbum de fotos impreso de tapa dura. Tú nos envías el viaje; nosotros nos ocupamos del diseño, el pago, la impresión y la entrega, y te contamos cómo va el pedido.
La guía técnica de abajo está en inglés.
Prueba la API en esta página ↓
You don't need to build a photo editor, a checkout or anything to do with printing.
Contact the Itinero team to become a partner. We'll send you two API keys and a webhook signing secret.
| Key | What it does |
|---|---|
itn_test_… | Makes test albums. Customers can design them but can't order them, so nothing is charged or printed. Use it while you build. |
itn_live_… | Makes real albums that customers can order. |
Keep your keys on your server. Never put a key in your mobile app, because anyone can extract it from there. Send the key on every request:
Authorization: Bearer itn_live_…
Each key may make 120 requests a minute.
Paste a test key here to use the Try it panels under each request below.
Aquí solo funcionan las claves de prueba. La clave se queda en esta página (no se guarda) y solo se envía a Itinero.
POST https://tryitinero.com/api/partner/v1/album-sessions
curl https://tryitinero.com/api/partner/v1/album-sessions \
-H "Authorization: Bearer $ITINERO_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer": { "email": "ama@example.com", "name": "Ama Mensah" },
"trip": { "external_ref": "trip_8f2c", "title": "Kyoto spring", "year": 2026, "destination": "Japan" },
"locale": "en"
}'
| Field | Required | Notes |
|---|---|---|
customer.email | Yes | The customer's email, which you have verified. Their Itinero account uses it. |
customer.name | No | Used when we create a new account. |
trip.external_ref | Yes | Your ID for the trip, 1–200 characters. The same customer and ID always reopen the same album. |
trip.title | No | Printed on the cover. Cut to 30 characters. Defaults to the country name. |
trip.year | No | Four digits. Defaults to the current year. |
trip.destination | No | A country name or cover ID, such as Japan or japan. If we have no illustrated cover for it, the customer picks one. |
locale | No | en (default), es or fr. |
We answer 201 Created for a new album, or 200 OK when the customer already has one for this trip:
{
"album": {
"id": "3f0c2a7e-…",
"external_ref": "trip_8f2c",
"mode": "live",
"status": "draft",
"order_number": null,
"total": { "amount": 450, "currency": "GHS" },
"created_at": "2026-11-20T12:00:00.000Z",
"updated_at": "2026-11-20T12:00:00.000Z",
"paid_at": null,
"delivered_at": null
},
"session": {
"url": "https://tryitinero.com/en/partner/start#token=…",
"expires_at": "2026-11-20T12:30:00.000Z"
},
"customer": { "existing_account": false },
"destination_matched": true
}
Save album.id with your trip, so you can match it to the webhooks we send. total is the current price; the customer may change it with a discount code at checkout.
curl -X POST /api/partner/v1/album-sessions \
-H "Authorization: Bearer $ITINERO_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{ "customer": { "email": "test-customer@example.com", "name": "Test Customer" }, "trip": { "external_ref": "trip_demo_1", "title": "Kyoto spring", "year": 2026, "destination": "Japan" }, "locale": "en" }'SFSafariViewController on iOS, or Custom Tabs on Android. Don't use a plain WebView. Uploading photos and paying work better in the system browser, and Google doesn't allow sign-in inside WebViews.existing_account: false) are signed in automatically, because your request created their account.existing_account: true) sign in to their own account first. This means no partner can open an account it didn't create.Tell us the https:// URL to send events to. Each time an album's status changes, we POST:
{
"id": "6d1e9b40-…",
"type": "album.status_changed",
"created_at": "2026-11-21T09:12:03.000Z",
"mode": "live",
"data": {
"album": { "id": "3f0c2a7e-…", "external_ref": "trip_8f2c", "status": "paid", "order_number": 1042, "total": { "amount": 450, "currency": "GHS" } },
"previous_status": "pending_payment"
}
}
The album object has the same fields as in the session response.
When a live album is paid, its paid event also includes your commission: your agreed percentage of the album price after any discount. Delivery and tax don't count. on is the album price it was worked out on.
"commission": { "amount": 65, "currency": "GHS", "percent": 10, "on": { "amount": 650, "currency": "GHS" } }
We also email each sale, with the order number, your trip ID, what the customer paid, the album price and your commission, to the contact address on your account. Commission is paid out by the Itinero team.
| Status | Meaning |
|---|---|
draft | The customer is designing the album. |
pending_payment | The customer started paying. |
paid | Ordered and paid. The album now has an order number. |
in_review | We're checking the photos and layout before printing. |
changes_requested | We asked the customer to fix something, such as a blurry photo. |
printing | The album is being printed. |
ready | Printed and waiting for the courier. |
out_for_delivery | On its way to the customer. |
delivered | Delivered. |
on_hold | Paused while we sort something out with the customer. |
cancelled | Cancelled. |
We may add statuses later. Treat any status you don't recognise as "in progress".
Every webhook has an Itinero-Signature header like t=1795000000,v1=5f2b…. v1 is the HMAC-SHA256 of t, a dot and the raw request body, keyed with your signing secret (whsec_…). Check it before trusting an event, and reject events more than five minutes old:
import crypto from "node:crypto";
export function verifyItineroSignature(secret, rawBody, header) {
const { t, v1 } = Object.fromEntries(header.split(",").map(part => part.split("=")));
if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
Use the body exactly as it arrived. Parsing the JSON and re-encoding it changes the bytes, and the signature won't match.
2xx status within 4 seconds, and do any slow work after replying.2xx, we may try again later, for up to a day.id, which is also in the Itinero-Event-Id header.POST https://tryitinero.com/api/partner/v1/webhooks/test sends a signed ping event to your URL and tells you what your server answered:
{ "event_id": "b1c4…", "delivered": true, "status_code": 200, "error": null }
curl -X POST /api/partner/v1/webhooks/test \ -H "Authorization: Bearer $ITINERO_TEST_KEY"
GET https://tryitinero.com/api/partner/v1/albums/{id} returns { "album": { … } } with the same fields as above. Use it to catch up if you missed a webhook. A key only sees albums made with keys of the same type (test or live) on your account.
curl -X GET /api/partner/v1/albums/{id} \
-H "Authorization: Bearer $ITINERO_TEST_KEY"Every error has the same shape and a matching HTTP status:
{ "error": { "code": "invalid_request", "message": "trip.external_ref is required (1–200 characters).", "field": "trip.external_ref" } }
| Status | Code | What to do |
|---|---|---|
| 400 | invalid_json, invalid_request | Fix the request. field names the field that's wrong. |
| 401 | unauthorized | The key is missing, mistyped or revoked. |
| 403 | partner_inactive | Your account is paused. Contact us. |
| 404 | not_found | No album with that ID for this key. |
| 409 | no_webhook_url | Tell us your webhook URL first. |
| 429 | rate_limited | Wait the number of seconds in the Retry-After header. |
| 503 | unavailable | A problem on our side. Retry with backoff. Retrying a session request is safe. |
We only share an album's status, order number and total with you. Customers' photos, delivery addresses and payment details stay with Itinero.