{"openapi":"3.1.0","info":{"title":"Send Christmas Postcard","version":"1.0.0","description":"Guest access with no API key. Keep order references and preview links private. An order reference carries the mode selected when it was prepared. Versioning: within v1 changes are additive only; a breaking change ships as /api/v2 with at least six months of overlap, and deprecated endpoints send Deprecation and Sunset headers. Policy: https://sendchristmaspostcard.com/docs/api#versioning-and-deprecation"},"servers":[{"url":"https://sendchristmaspostcard.com"}],"security":[],"paths":{"/api/v1/designs":{"get":{"operationId":"list_designs","summary":"List postcard designs and photo frames","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"designs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"hasGreeting":{"type":"boolean"},"kind":{"type":"string","enum":["design","frame"],"description":"\"frame\" designs are used with photo fronts (fit=\"frame\")."},"thumbnailUrl":{"type":"string","format":"uri"}},"required":["id","name","description","tags","hasGreeting","kind","thumbnailUrl"],"additionalProperties":false}}},"required":["designs"],"additionalProperties":false}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/prices":{"get":{"operationId":"list_prices","summary":"List tax-inclusive prices in each currency","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"taxIncluded":{"type":"boolean","const":true},"prices":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"europe":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"world":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false}},"required":["currency","europe","world"],"additionalProperties":false}}},"required":["taxIncluded","prices"],"additionalProperties":false}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/cutoffs":{"get":{"operationId":"list_cutoffs","summary":"List delivery estimates and Christmas order-by dates","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"timeZone":{"type":"string","const":"Europe/Warsaw"},"cutoffs":{"type":"array","items":{"type":"object","properties":{"countries":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"string","enum":["europe-rest","world-rest"]}]},"orderBy":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"deliveryDays":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"[min, max] business days after the print run."}},"required":["countries","orderBy","deliveryDays"],"additionalProperties":false}},"local":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["lob","stannp"]},"countries":{"type":"array","items":{"type":"string"}},"formats":{"type":"array","items":{"type":"string","enum":["a6","square"],"description":"\"a6\" = classic 148×105 mm postcard (default). \"square\" = 148×148 mm."}},"orderBy":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"deliveryDays":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"[min, max] business days after the print run."}},"required":["provider","countries","formats","orderBy","deliveryDays"],"additionalProperties":false}}},"required":["timeZone","cutoffs","local"],"additionalProperties":false}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/quotes":{"post":{"operationId":"quote_postcard","summary":"Quote one card per destination","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"countries":{"minItems":1,"maxItems":25,"type":"array","items":{"description":"ISO 3166-1 alpha-2 country code of the recipient, e.g. DE, US, CH.","type":"string","minLength":2,"maxLength":2},"description":"One entry per card (recipient country)."},"currency":{"default":"EUR","type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"format":{"description":"Provide with mode for route-specific delivery estimates.","type":"string","enum":["a6","square"]},"mode":{"description":"Provide with format for route-specific delivery estimates.","type":"string","enum":["test","live"]}},"required":["countries"]},"example":{"countries":["NL"],"currency":"EUR","mode":"test","format":"a6"}}}},"responses":{"200":{"description":"Success","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"zone":{"type":"string","enum":["europe","world"]},"unitPrice":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"orderBy":{"type":"string","description":"ISO datetime: order before this for likely delivery before Christmas."},"estimatedDeliveryDays":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"[min, max] business days after the print run."},"likelyArrivesBeforeChristmas":{"type":"boolean"}},"required":["country","zone","unitPrice","orderBy","estimatedDeliveryDays","likelyArrivesBeforeChristmas"],"additionalProperties":false}},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"taxIncluded":{"type":"boolean","const":true},"nextPrintRun":{"type":"string","description":"ISO datetime of the next print run (06:00 Europe/Amsterdam, working days)."},"notes":{"type":"array","items":{"type":"string"}}},"required":["lines","total","taxIncluded","nextPrintRun","notes"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/uploads":{"post":{"operationId":"upload_photo","summary":"Upload a photo in an explicit mode","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"source":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"url"},"url":{"type":"string","maxLength":2048,"format":"uri","description":"Public https URL of a JPEG/PNG/WebP/HEIC image."}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"base64"},"data":{"type":"string","maxLength":21000000,"description":"Base64 image bytes (no data: prefix), max 15 MB decoded."},"filename":{"type":"string","maxLength":120}},"required":["type","data"]}]}},"required":["mode","source"]}},"multipart/form-data":{"schema":{"type":"object","required":["mode","file"],"properties":{"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"file":{"type":"string","format":"binary","description":"Photo, up to 15 MB."}}}}}},"responses":{"201":{"description":"Resource created","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string"},"width":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"previewUrl":{"type":"string","format":"uri"},"expiresAt":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["uploadId","width","height","previewUrl","expiresAt","warnings"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/uploads/{id}/preview":{"get":{"operationId":"get_upload_preview","summary":"View a private uploaded image","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^up_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Private image","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Image capability is expired or unknown"}}}},"/api/v1/previews/{id}":{"get":{"operationId":"get_order_preview","summary":"View a private prepared card preview","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}\\.png$"}}],"responses":{"200":{"description":"Private image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Image capability is expired or unknown"}}}},"/api/v1/orders":{"post":{"operationId":"prepare_postcard","summary":"Prepare an order with previews and Stripe Checkout","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"card":{"type":"object","properties":{"format":{"default":"a6","type":"string","enum":["a6","square"],"description":"\"a6\" = classic 148×105 mm postcard (default). \"square\" = 148×148 mm."},"orientation":{"default":"landscape","type":"string","enum":["landscape","portrait"],"description":"A6 only. Default landscape."},"front":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"design"},"designId":{"type":"string","minLength":1,"maxLength":64,"description":"Id from list_designs / GET /api/v1/designs."},"greetingLang":{"type":"string","enum":["en","fr","de","nl","pl","cs","es","pt","da","sv","it"],"description":"Language of the printed greeting on designs that have one."}},"required":["type","designId"]},{"type":"object","properties":{"type":{"type":"string","const":"photo"},"uploadId":{"type":"string","minLength":1,"maxLength":64,"description":"Id returned by upload_photo / POST /api/v1/uploads."},"fit":{"default":"frame","description":"\"frame\" = photo inside a festive frame (any aspect ratio, no cropping, no white bars). \"cover\" = fill the card, centre-crop. \"full\" = fill the card edge to edge, letterboxed with a blurred fill.","type":"string","enum":["frame","cover","full"]},"frameDesignId":{"description":"Frame style for fit=\"frame\". Defaults to a classic frame.","type":"string","maxLength":64},"greetingLang":{"description":"Adds a greeting banner to the frame.","type":"string","enum":["en","fr","de","nl","pl","cs","es","pt","da","sv","it"]}},"required":["type","uploadId"]}]},"message":{"type":"string","minLength":1,"maxLength":600,"description":"Message printed on the back (max 600 chars; must also fit the layout — prepare returns message_too_long otherwise)."},"from":{"description":"Optional sign-off line, e.g. 'Love, Anna & Tom'.","type":"string","maxLength":60},"font":{"default":"handwritten","type":"string","enum":["handwritten","script","serif","print"],"description":"Font for the message on the back."}},"required":["front","message"]},"recipients":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"address":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"Recipient full name as it should appear on the card."},"line1":{"type":"string","minLength":1,"maxLength":100,"description":"Street and house number."},"line2":{"description":"Apartment, floor, c/o, etc.","type":"string","maxLength":100},"postalCode":{"default":"","description":"Postal / ZIP code. Required where the country uses one.","type":"string","maxLength":20},"city":{"type":"string","minLength":1,"maxLength":60},"state":{"description":"State/province/region. Required for US, CA, AU.","type":"string","maxLength":60},"country":{"description":"ISO 3166-1 alpha-2 country code of the recipient, e.g. DE, US, CH.","type":"string","minLength":2,"maxLength":2}},"required":["name","line1","city","country"],"description":"Recipient postal address. Never guess fields — ask the user."},"message":{"description":"Optional per-recipient message overriding the card message.","type":"string","maxLength":600}},"required":["address"]}},"currency":{"default":"EUR","type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"buyerEmail":{"description":"Receipt + status emails. Optional.","type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","maxLength":16}},"required":["mode","card","recipients"]},"example":{"mode":"test","currency":"EUR","card":{"front":{"type":"design","designId":"gilded-greeting"},"message":"Merry Christmas!"},"recipients":[{"address":{"name":"Test Recipient","line1":"Dam 1","city":"Amsterdam","postalCode":"1012 JS","country":"NL"}}]}}}},"responses":{"201":{"description":"Resource created","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"order":{"type":"object","properties":{"ref":{"type":"string","description":"Private order reference. Treat like a password."},"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"status":{"type":"string","enum":["awaiting_payment","paid","held_for_review","submitted","printed","mailed","cancelled","refunded","failed","expired"]},"createdAt":{"type":"string"},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"country":{"type":"string"},"status":{"type":"string","enum":["pending","submitted","printed","mailed","rejected","cancelled","failed"]}},"required":["index","country","status"],"additionalProperties":false}},"statusUrl":{"type":"string","format":"uri"},"checkoutUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Stripe-hosted payment page (when awaiting payment)."},"frontPreviewUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"nextActions":{"type":"array","items":{"type":"string"},"description":"What the agent can do next, in order of preference."}},"required":["ref","mode","status","createdAt","total","cards","recipients","statusUrl","checkoutUrl","frontPreviewUrl","nextActions"],"additionalProperties":false},"quote":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"zone":{"type":"string","enum":["europe","world"]},"unitPrice":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"orderBy":{"type":"string","description":"ISO datetime: order before this for likely delivery before Christmas."},"estimatedDeliveryDays":{"minItems":2,"maxItems":2,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"[min, max] business days after the print run."},"likelyArrivesBeforeChristmas":{"type":"boolean"}},"required":["country","zone","unitPrice","orderBy","estimatedDeliveryDays","likelyArrivesBeforeChristmas"],"additionalProperties":false}},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"taxIncluded":{"type":"boolean","const":true},"nextPrintRun":{"type":"string","description":"ISO datetime of the next print run (06:00 Europe/Amsterdam, working days)."},"notes":{"type":"array","items":{"type":"string"}}},"required":["lines","total","taxIncluded","nextPrintRun","notes"],"additionalProperties":false},"previews":{"type":"object","properties":{"front":{"type":"string","format":"uri"},"backs":{"type":"array","items":{"type":"string","format":"uri"},"description":"One back preview per recipient (shows message + address)."}},"required":["front","backs"],"additionalProperties":false},"payment":{"type":"object","properties":{"checkoutUrl":{"type":"string","format":"uri","description":"Give this to the human to pay (card, Apple/Google Pay, BLIK, Link, Revolut, Klarna)."},"expiresAt":{"type":"string"},"mpp":{"anyOf":[{"type":"object","properties":{"endpoint":{"type":"string","format":"uri"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."}},"required":["endpoint","amount","currency"],"additionalProperties":false},{"type":"null"}],"description":"Machine Payments Protocol endpoint for agents that can pay (HTTP 402). Null when unavailable."}},"required":["checkoutUrl","expiresAt","mpp"],"additionalProperties":false},"payloadHash":{"type":"string","description":"sha256 of the canonical order payload; binds price and content."},"warnings":{"type":"array","items":{"type":"string"}}},"required":["order","quote","previews","payment","payloadHash","warnings"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/orders/{ref}":{"get":{"operationId":"get_order_status","summary":"Read status without recipient personal data","parameters":[{"name":"ref","in":"path","required":true,"description":"Private order capability, including its mode.","schema":{"type":"string","pattern":"^scp_(test|live)_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Success","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"ref":{"type":"string","description":"Private order reference. Treat like a password."},"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"status":{"type":"string","enum":["awaiting_payment","paid","held_for_review","submitted","printed","mailed","cancelled","refunded","failed","expired"]},"createdAt":{"type":"string"},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"country":{"type":"string"},"status":{"type":"string","enum":["pending","submitted","printed","mailed","rejected","cancelled","failed"]}},"required":["index","country","status"],"additionalProperties":false}},"statusUrl":{"type":"string","format":"uri"},"checkoutUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Stripe-hosted payment page (when awaiting payment)."},"frontPreviewUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"nextActions":{"type":"array","items":{"type":"string"},"description":"What the agent can do next, in order of preference."}},"required":["ref","mode","status","createdAt","total","cards","recipients","statusUrl","checkoutUrl","frontPreviewUrl","nextActions"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/orders/{ref}/checkout":{"post":{"operationId":"get_checkout_link","summary":"Return the hosted checkout link for a payable order","parameters":[{"name":"ref","in":"path","required":true,"description":"Private order capability, including its mode.","schema":{"type":"string","pattern":"^scp_(test|live)_[a-f0-9]{32}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"checkoutUrl":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["checkoutUrl","expiresAt"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/orders/{ref}/cancel":{"post":{"operationId":"cancel_order","summary":"Cancel cards that have not gone to print","parameters":[{"name":"ref","in":"path","required":true,"description":"Private order capability, including its mode.","schema":{"type":"string","pattern":"^scp_(test|live)_[a-f0-9]{32}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"Success","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"ref":{"type":"string","description":"Private order reference. Treat like a password."},"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"status":{"type":"string","enum":["awaiting_payment","paid","held_for_review","submitted","printed","mailed","cancelled","refunded","failed","expired"]},"createdAt":{"type":"string"},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"country":{"type":"string"},"status":{"type":"string","enum":["pending","submitted","printed","mailed","rejected","cancelled","failed"]}},"required":["index","country","status"],"additionalProperties":false}},"statusUrl":{"type":"string","format":"uri"},"checkoutUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Stripe-hosted payment page (when awaiting payment)."},"frontPreviewUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"nextActions":{"type":"array","items":{"type":"string"},"description":"What the agent can do next, in order of preference."}},"required":["ref","mode","status","createdAt","total","cards","recipients","statusUrl","checkoutUrl","frontPreviewUrl","nextActions"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}},"/api/v1/orders/{ref}/pay":{"post":{"operationId":"pay_with_mpp","summary":"Pay the prepared total using the Stripe Machine Payments Protocol offer when enabled","parameters":[{"name":"ref","in":"path","required":true,"description":"Private order capability, including its mode.","schema":{"type":"string","pattern":"^scp_(test|live)_[a-f0-9]{32}$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Choose a fresh key for a new operation. Reuse it for retries of the same operation.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","const":true},"maxAmount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["confirm","maxAmount"]},"example":{"confirm":true,"maxAmount":350}}}},"x-payment-info":{"offers":[{"protocol":"mpp","method":"stripe","intent":"charge","amount":"prepared order total","currency":"prepared order currency"}]},"responses":{"200":{"description":"Success","headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."}},"content":{"application/json":{"schema":{"type":"object","properties":{"order":{"type":"object","properties":{"ref":{"type":"string","description":"Private order reference. Treat like a password."},"mode":{"type":"string","enum":["test","live"],"description":"\"test\" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). \"live\" = real card, printed and mailed. Always explicit."},"status":{"type":"string","enum":["awaiting_payment","paid","held_for_review","submitted","printed","mailed","cancelled","refunded","failed","expired"]},"createdAt":{"type":"string"},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Minor units (cents)."},"currency":{"type":"string","enum":["EUR","USD","GBP","PLN","CHF","CZK","DKK","SEK"],"description":"Buyer currency. Fixed at prepare time; checkout charges exactly this."},"formatted":{"type":"string","description":"Human-readable, e.g. €3.25"}},"required":["amount","currency","formatted"],"additionalProperties":false},"cards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"country":{"type":"string"},"status":{"type":"string","enum":["pending","submitted","printed","mailed","rejected","cancelled","failed"]}},"required":["index","country","status"],"additionalProperties":false}},"statusUrl":{"type":"string","format":"uri"},"checkoutUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"description":"Stripe-hosted payment page (when awaiting payment)."},"frontPreviewUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"nextActions":{"type":"array","items":{"type":"string"},"description":"What the agent can do next, in order of preference."}},"required":["ref","mode","status","createdAt","total","cards","recipients","statusUrl","checkoutUrl","frontPreviewUrl","nextActions"],"additionalProperties":false},"receipt":{"type":"string"}},"required":["order","receipt"],"additionalProperties":false}}}},"402":{"description":"Payment challenge","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}},"409":{"description":"Machine payments unavailable or order not payable","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}},"headers":{"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the current window resets."},"Retry-After":{"schema":{"type":"integer"}}}},"default":{"description":"Structured API error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","enum":["validation_failed","unknown_design","unknown_upload","upload_too_large","upload_unsupported_type","upload_fetch_failed","message_too_long","country_not_supported","address_invalid","content_rejected","order_not_found","order_not_payable","order_not_cancellable","amount_exceeds_max","confirmation_required","live_mode_unavailable","mpp_unavailable","idempotency_conflict","rate_limited","payment_provider_error","fulfilment_error","internal_error"]},"message":{"type":"string"},"field":{"type":"string"},"hint":{"type":"string"},"retryable":{"type":"boolean"}},"required":["type","title","status","detail","code","message","retryable"],"additionalProperties":false}}}}}}}}}