{"openapi":"3.1.0","info":{"title":"Alyte API","description":"Secure agentic checkout for live-events ticketing. REST is the canonical surface; MCP/A2A are adapters over the same orchestrator.","version":"1.0.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{}},"paths":{"/v1/merchants":{"get":{"summary":"List merchants (tenant-scoped catalogue)","tags":["catalog"],"responses":{"200":{"description":"Default Response"}}}},"/v1/merchants/{id}":{"get":{"summary":"Fetch one merchant by id","tags":["catalog"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/instruments":{"get":{"summary":"List the vaulted instruments the agent may spend from","tags":["catalog"],"responses":{"200":{"description":"Default Response"}}}},"/v1/payments":{"post":{"summary":"One-shot authorize a payment (mandate-gated)","tags":["payments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"merchantId":{"type":"string","minLength":1},"amountMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","enum":["EUR","USD","GBP"]},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2,"maxLength":2},"instrumentToken":{"type":"string","minLength":1}},"required":["merchantId","amountMinor","currency","scheme","geo","instrumentToken"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/checkout":{"post":{"summary":"One-shot deterministic checkout by SKU (mandate-gated · 201 authorized · 402 refused)","tags":["payments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"merchantId":{"type":"string","minLength":1},"sku":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":999}},"required":["merchantId","sku"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/payments/{intentId}":{"get":{"summary":"Fetch a payment result (tenant-scoped)","tags":["payments"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"intentId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/merchants/{id}/events":{"get":{"summary":"A merchant's events + tiers (with availability)","tags":["catalog"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/quotes":{"post":{"summary":"Lock a price (price-locked quote, has a TTL)","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":999}},"required":["tierId","quantity"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/holds":{"post":{"summary":"Reserve (oversell-proof hold on a tier)","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":999},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2},"allowPartial":{"type":"boolean"}},"required":["tierId","quantity"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/holds/{holdId}/confirm":{"post":{"summary":"Confirm — pay the locked quote total, confirm the hold (201 settled · 202 payment/SCA pending · 402 refused)","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","minLength":1},"instrumentToken":{"type":"string","minLength":1},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2,"maxLength":2}},"required":["quoteId","instrumentToken","scheme","geo"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"holdId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations":{"post":{"summary":"Reserve a basket atomically, with optional minQuantity/required consent and linked-line, shared-stock and mandate enforcement","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":999},"minQuantity":{"type":"integer","exclusiveMinimum":0,"maximum":999},"required":{"type":"boolean"},"step":{"type":"integer","exclusiveMinimum":0,"maximum":999},"seats":{"minItems":1,"maxItems":999,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"seatRequest":{"type":"object","properties":{"limits":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"sections":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"rows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":60},"to":{"type":"string","minLength":1,"maxLength":60},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}}}},"traits":{"type":"object","properties":{"require":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"exclude":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"together":{"type":"boolean"},"allowSplit":{"type":"boolean"},"blockSize":{"type":"integer","minimum":2,"maximum":20}}},"preferences":{"type":"object","properties":{"zoneOrder":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"rowPosition":{"type":"string","enum":["front","middle","back"]},"traits":{"type":"object","properties":{"prefer":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"avoid":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"tradeoff":{"type":"string","enum":["cheaper","better_seats","balanced"]}}}},"required":["limits"]},"allowPartial":{"type":"boolean"}},"required":["tierId","quantity"]}},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2},"deferAllocation":{"type":"boolean"}},"required":["lines"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/{reservationId}/offers":{"post":{"summary":"BSR-4a · request held seat offers under an offer-mode basket reservation (max 5 offers, max 60s hold)","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maxOffers":{"type":"integer","minimum":1,"maximum":5},"maxHoldMs":{"type":"integer","minimum":1000,"maximum":60000}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/{reservationId}/offers/{offerId}/select":{"post":{"summary":"BSR-4a · select a held seat offer and promote its seats onto the reservation before quoting/confirming","tags":["ticketing"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true},{"schema":{"type":"string"},"in":"path","name":"offerId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/{reservationId}":{"get":{"summary":"Fetch a basket reservation and its lines (tenant-scoped)","tags":["ticketing"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Release a held basket reservation and return all lines to inventory","tags":["ticketing"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/{reservationId}/quotes":{"post":{"summary":"Lock a single price-lock quote across all held lines of a basket reservation","tags":["ticketing"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/{reservationId}/confirm":{"post":{"summary":"Confirm a basket reservation as one charge (201 settled · 202 payment/SCA pending · 402 refused)","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quoteId":{"type":"string","minLength":1},"instrumentToken":{"type":"string","minLength":1},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2,"maxLength":2}},"required":["quoteId","instrumentToken","scheme","geo"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"reservationId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/reservations/sca/{continueToken}/resolve":{"post":{"summary":"Resolve a pending SCA challenge and resume","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["approved","failed"]}},"required":["outcome"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"continueToken","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sca/{continueToken}/resolve":{"post":{"summary":"Resolve a pending SCA challenge and resume","tags":["ticketing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["approved","failed"]}},"required":["outcome"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"continueToken","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/a2a":{"post":{"summary":"A2A JSON-RPC message/send — invoke the Alyte agent as a peer-agent skill (agent JWT, agent:run)","tags":["protocols"],"responses":{"200":{"description":"Default Response"}}}},"/acp/checkout_sessions":{"post":{"summary":"Create a checkout session (quote + reserve a real held seat)","tags":["acp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","quantity"]}},"buyer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}}},"required":["items"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/acp/checkout_sessions/{id}":{"post":{"summary":"Update a session (change quantity → re-quote/reserve)","tags":["acp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","quantity"]}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Retrieve session state","tags":["acp"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/acp/checkout_sessions/{id}/complete":{"post":{"summary":"Complete — charge the shared payment token via the merchant PSP (confirm)","tags":["acp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"buyer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}},"payment_data":{"type":"object","properties":{"handler_id":{"type":"string"},"instrument":{"type":"object","properties":{"token":{"type":"string","minLength":1},"scheme":{"type":"string","enum":["visa","mastercard","amex"]}}},"billing_address":{"type":"object","properties":{"name":{"type":"string"},"line_one":{"type":"string"},"line_two":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string","minLength":2,"maxLength":2}}},"token":{"type":"string","minLength":1},"provider":{"type":"string"},"scheme":{"type":"string","enum":["visa","mastercard","amex"]},"geo":{"type":"string","minLength":2,"maxLength":2},"allowance":{"type":"object","properties":{"reason":{"type":"string","enum":["one_time"]},"max_amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","enum":["EUR","USD","GBP"]},"checkout_session_id":{"type":"string","minLength":1},"merchant_id":{"type":"string","minLength":1},"expires_at":{"type":"string"}},"required":["reason","max_amount","currency","checkout_session_id","merchant_id"]}}}},"required":["payment_data"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/acp/checkout_sessions/{id}/cancel":{"post":{"summary":"Cancel a session (release the hold)","tags":["acp"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/vic/purchase":{"post":{"summary":"VIC purchase-initiate: buy a tier under a Visa Intelligent Commerce mandate (mandate governs spend server-side)","tags":["vic"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":999},"instrumentToken":{"type":"string","minLength":1},"scheme":{"default":"visa","type":"string","enum":["visa","mastercard","amex"]},"geo":{"default":"DE","type":"string","minLength":2,"maxLength":2},"mandate":{"type":"object","properties":{"mandateId":{"type":"string","minLength":1},"preferredMerchantName":{"type":"string"},"declineThreshold":{"type":"object","properties":{"amount":{"type":"string","minLength":1},"currencyCode":{"type":"string","minLength":1}},"required":["amount","currencyCode"]},"effectiveUntilTime":{"type":"string"},"quantity":{"type":["integer","null"],"exclusiveMinimum":0,"maximum":9007199254740991},"description":{"type":"string"}},"required":["mandateId","declineThreshold"]},"occurrence":{"type":"string","enum":["DAILY","WEEKLY","MONTHLY","YEARLY"]},"assuranceVerified":{"type":"boolean"}},"required":["tierId","instrumentToken","mandate"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/mandate/signed/purchase":{"post":{"summary":"Network signed-mandate purchase: buy a tier under a signature-verified network mandate (VIC / Mastercard Agent Pay shape)","tags":["signed-mandate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":999},"instrumentToken":{"type":"string","minLength":1},"scheme":{"default":"visa","type":"string","enum":["visa","mastercard","amex"]},"geo":{"default":"DE","type":"string","minLength":2,"maxLength":2},"mandate":{"type":"object","properties":{"agentId":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"capMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"merchants":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"scaAtGrant":{"type":"boolean"}},"required":["agentId","subject","capMinor","currency"]},"signature":{"type":"object","properties":{"keyid":{"type":"string","minLength":1},"alg":{"type":"string","enum":["ed25519","ecdsa-p256-sha256"]},"signature":{"type":"string","minLength":1}},"required":["keyid","alg","signature"]}},"required":["tierId","instrumentToken","mandate","signature"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/purchases/{id}":{"get":{"tags":["buyer"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["purchaseId","status"],"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"purchaseId":{"type":"string"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","sca_required","settled","refused","cancelled","expired"]},"authenticationRetry":{"type":"boolean"},"challenge":{"type":"object","additionalProperties":false,"required":["expiresAt"],"properties":{"expiresAt":{"type":"string"}}},"result":{"type":"object","additionalProperties":false,"required":["intentId","status","pspId"],"properties":{"intentId":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"pspTransactionId":{"type":"string"},"paymentState":{"type":"string"},"holdStatus":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["provider","result","observedAt"],"properties":{"provider":{"type":"string"},"paymentIntentId":{"type":"string"},"pspReference":{"type":"string"},"chargeId":{"type":"string"},"result":{"type":"string"},"flow":{"type":"string"},"version":{"type":"string"},"eci":{"type":"string"},"transactionId":{"type":"string"},"observedAt":{"type":"string"}}}}}}}}}}}}},"/v1/buyer/purchases/{id}/action":{"post":{"tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{}},{"type":"object","properties":{"browserInfo":{"type":"object","properties":{"language":{"type":"string","minLength":1,"maxLength":64},"colorDepth":{"type":"integer","minimum":1,"maximum":64},"screenHeight":{"type":"integer","minimum":1,"maximum":65535},"screenWidth":{"type":"integer","minimum":1,"maximum":65535},"timeZoneOffset":{"type":"integer","minimum":-1440,"maximum":1440},"javaEnabled":{"type":"boolean"},"javaScriptEnabled":{"type":"boolean","enum":[true]}},"required":["language","colorDepth","screenHeight","screenWidth","timeZoneOffset","javaEnabled","javaScriptEnabled"]}},"required":["browserInfo"]}]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["purchaseId","status"],"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"purchaseId":{"type":"string"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","sca_required","settled","refused","cancelled","expired"]},"authenticationRetry":{"type":"boolean"},"challenge":{"type":"object","additionalProperties":false,"required":["expiresAt"],"properties":{"expiresAt":{"type":"string"}}},"result":{"type":"object","additionalProperties":false,"required":["intentId","status","pspId"],"properties":{"intentId":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"pspTransactionId":{"type":"string"},"paymentState":{"type":"string"},"holdStatus":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["provider","result","observedAt"],"properties":{"provider":{"type":"string"},"paymentIntentId":{"type":"string"},"pspReference":{"type":"string"},"chargeId":{"type":"string"},"result":{"type":"string"},"flow":{"type":"string"},"version":{"type":"string"},"eci":{"type":"string"},"transactionId":{"type":"string"},"observedAt":{"type":"string"}}}}},"action":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"publishableKey":{"type":"string"},"clientSecret":{"type":"string"},"clientKey":{"type":"string"},"environment":{"type":"string","enum":["test"]},"countryCode":{"type":"string"},"actionToken":{"type":"string"},"action":{"type":"object","additionalProperties":true}}}}}}}}}}},"/v1/buyer/purchases/{id}/resume":{"post":{"tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["purchaseId","status"],"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"purchaseId":{"type":"string"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","sca_required","settled","refused","cancelled","expired"]},"authenticationRetry":{"type":"boolean"},"challenge":{"type":"object","additionalProperties":false,"required":["expiresAt"],"properties":{"expiresAt":{"type":"string"}}},"result":{"type":"object","additionalProperties":false,"required":["intentId","status","pspId"],"properties":{"intentId":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"pspTransactionId":{"type":"string"},"paymentState":{"type":"string"},"holdStatus":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["provider","result","observedAt"],"properties":{"provider":{"type":"string"},"paymentIntentId":{"type":"string"},"pspReference":{"type":"string"},"chargeId":{"type":"string"},"result":{"type":"string"},"flow":{"type":"string"},"version":{"type":"string"},"eci":{"type":"string"},"transactionId":{"type":"string"},"observedAt":{"type":"string"}}}}}}}}}}}}},"/v1/buyer/purchases/{id}/cancel":{"post":{"tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["purchaseId","status"],"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"purchaseId":{"type":"string"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","sca_required","settled","refused","cancelled","expired"]},"authenticationRetry":{"type":"boolean"},"challenge":{"type":"object","additionalProperties":false,"required":["expiresAt"],"properties":{"expiresAt":{"type":"string"}}},"result":{"type":"object","additionalProperties":false,"required":["intentId","status","pspId"],"properties":{"intentId":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"pspTransactionId":{"type":"string"},"paymentState":{"type":"string"},"holdStatus":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["provider","result","observedAt"],"properties":{"provider":{"type":"string"},"paymentIntentId":{"type":"string"},"pspReference":{"type":"string"},"chargeId":{"type":"string"},"result":{"type":"string"},"flow":{"type":"string"},"version":{"type":"string"},"eci":{"type":"string"},"transactionId":{"type":"string"},"observedAt":{"type":"string"}}}}}}}}}}}}},"/v1/buyer/purchases/{id}/details":{"post":{"tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"actionToken":{"type":"string","minLength":1,"maxLength":256},"details":{"type":"object","properties":{"threeDSResult":{"type":"string","minLength":1,"maxLength":100000},"threeds2.fingerprint":{"type":"string","minLength":1,"maxLength":100000},"threeds2.challengeResult":{"type":"string","minLength":1,"maxLength":100000},"redirectResult":{"type":"string","minLength":1,"maxLength":100000}}}},"required":["actionToken","details"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["purchaseId","status"],"properties":{"provider":{"type":"string","enum":["stripe","adyen"]},"purchaseId":{"type":"string"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","sca_required","settled","refused","cancelled","expired"]},"authenticationRetry":{"type":"boolean"},"challenge":{"type":"object","additionalProperties":false,"required":["expiresAt"],"properties":{"expiresAt":{"type":"string"}}},"result":{"type":"object","additionalProperties":false,"required":["intentId","status","pspId"],"properties":{"intentId":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"pspTransactionId":{"type":"string"},"paymentState":{"type":"string"},"holdStatus":{"type":"string"},"authentication":{"type":"object","additionalProperties":false,"required":["provider","result","observedAt"],"properties":{"provider":{"type":"string"},"paymentIntentId":{"type":"string"},"pspReference":{"type":"string"},"chargeId":{"type":"string"},"result":{"type":"string"},"flow":{"type":"string"},"version":{"type":"string"},"eci":{"type":"string"},"transactionId":{"type":"string"},"observedAt":{"type":"string"}}}}}}}}}}}}},"/v1/buyer/login":{"post":{"summary":"Request a sign-in link for a shop — emails a single-use magic link (returned inline outside production)","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"merchantId":{"type":"string","minLength":1},"lang":{"type":"string","maxLength":35,"pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"}},"required":["email","merchantId"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/verify":{"post":{"summary":"Verify the emailed 6-digit sign-in code (WorkOS Magic Auth) — sets the buyer session cookie","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"merchantId":{"type":"string","minLength":1},"code":{"type":"string","minLength":4,"maxLength":10}},"required":["email","merchantId","code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/buyer-sessions":{"post":{"summary":"Mint a buyer session for YOUR authenticated user — returns a single-use redeem link to drop them into the shop's authorize page (API token, merchant:write; or merchantAttested: true on a mandates:attest key for staff-enabled merchants, within their ceilings)","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"merchantId":{"type":"string","minLength":1},"email":{"type":"string","format":"email"},"merchantAttested":{"description":"Attest the customer's consent (requires mandates:attest and staff-enabled merchant consent).","type":"boolean","enum":[true]},"tierId":{"type":"string","minLength":1},"quantity":{"description":"Checkout quantity hint; requires tierId.","type":"integer","minimum":1,"maximum":10},"eventId":{"description":"Event seed for the per-event instruction form.","type":"string","minLength":1,"maxLength":200},"lines":{"description":"Multi-line basket seed for one event (cannot combine with tierId/quantity).","minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10},"minQuantity":{"type":"integer","minimum":1,"maximum":10},"required":{"type":"boolean"}},"required":["tierId","quantity"]}},"lang":{"type":"string","maxLength":35,"pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},"returnUrl":{"type":"string","format":"uri"}},"required":["merchantId","email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/step-up/send":{"post":{"summary":"Send a 6-digit code to the session's email so a bounded session can become full (returned inline outside production)","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/step-up/verify":{"post":{"summary":"Verify the step-up code — returns a FULL buyer credential for the same buyer and shop (30 min); bearer only, never a cookie","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":10}},"required":["code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/session-token":{"post":{"summary":"Exchange a single-use sign-in token for a 30-minute buyer bearer (no cookie)","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":512}},"required":["token"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["bearer","buyerId","expiresAt"],"properties":{"bearer":{"type":"string"},"buyerId":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}}}}}}}},"/v1/buyer/me":{"get":{"summary":"The signed-in buyer + the shop their session is locked to","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/catalog":{"get":{"summary":"The session shop's events + tiers (buyer view)","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/setup":{"post":{"summary":"Begin adding a card — creates a setup on the SHOP'S OWN payment provider; returns the client secret + publishable key. No card data crosses this API.","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/setup/{reference}":{"get":{"summary":"Resume this buyer’s Adyen card setup after authentication","tags":["buyer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"reference","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/setup/{reference}/authorize":{"post":{"summary":"Submit opaque Unzer card token (s-crd-…) to run zero-amount 3DS UCoF setup","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"typeId":{"type":"string","pattern":"^s-crd-[a-zA-Z0-9_-]{1,200}$"}},"required":["typeId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"reference","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/confirm":{"post":{"summary":"Finish adding a card — re-verifies the capture session SERVER-SIDE with the provider and stores only the reference (scheme + last4), bound to this buyer","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":1024},"setupIntentId":{"type":"string","minLength":1,"maxLength":1024},"sessionResult":{"type":"string","minLength":1,"maxLength":65536}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/bank-checks":{"post":{"summary":"Start a bank check on one of your saved cards — returns what the browser needs to show the bank's screen. No money moves and no card is saved.","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrumentToken":{"type":"string","minLength":1,"maxLength":1024},"purpose":{"type":"string","enum":["permission","purchase"]}},"required":["instrumentToken","purpose"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/bank-checks/{id}/complete":{"post":{"summary":"Finish a bank check — Alyte reads the result from the payment provider, never from the browser","tags":["buyer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments":{"get":{"summary":"Saved payment methods usable by a created agent (opaque tokens, never card data)","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/registry":{"get":{"summary":"Active agents in this shop's registry (picker data) — names + keyids only","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/connect-options":{"get":{"summary":"How each agent platform can be used at this shop: connect (registry action) / available (platform lane live, act there) / not_yet","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/agents":{"post":{"summary":"Create an agent (with a saved payment method) or bring one (registry keyid; no instrument — its credential arrives per-charge)","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["create"]},"name":{"type":"string","minLength":1,"maxLength":80},"instrumentToken":{"type":"string","minLength":1},"spendCapMinor":{"type":"integer","exclusiveMinimum":0,"maximum":10000000},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":10}},"required":["mode","name","instrumentToken"]},{"type":"object","properties":{"mode":{"type":"string","enum":["bring"]},"keyid":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":80}},"required":["mode","keyid"]}]}}}},"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"MY agents with their mandates (owner-filtered server-side)","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/mandates":{"post":{"summary":"Grant a mandate to one of your agents — scope.merchants is locked server-side to the shop your session is for","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","minLength":1},"capMinor":{"type":"integer","exclusiveMinimum":0,"maximum":10000000},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3},"expiresAt":{"type":"string"},"recurring":{"default":false,"type":"boolean"},"cadence":{"type":"string"},"maxTransactions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"events":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"tierKinds":{"type":"array","items":{"type":"string","enum":["general","seated"]}},"quantity":{"type":"object","properties":{"min":{"type":"integer","minimum":1,"maximum":10},"max":{"type":"integer","minimum":1,"maximum":10},"step":{"type":"integer","minimum":1,"maximum":10}}},"addonPolicy":{"type":"string","enum":["none","allow_all","selected"]},"allowedAddonCategories":{"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,39}$"}},"allowedAddonTierIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"addonCapMinor":{"type":"integer","exclusiveMinimum":0,"maximum":10000000}},"required":["agentId","capMinor"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/agents/{id}/instrument":{"put":{"summary":"Point an agent at a different saved card (owner-bound; the agent's mandates are preserved)","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrumentToken":{"type":"string","minLength":1}},"required":["instrumentToken"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/cap":{"put":{"summary":"Set (or clear with capMinor: null) a spending ceiling on one of your payment methods — caps the TOTAL you can grant across all agents using it","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instrumentToken":{"type":"string","minLength":1},"capMinor":{"type":["integer","null"],"minimum":0,"maximum":100000000},"currency":{"default":"EUR","type":"string","minLength":3,"maxLength":3}},"required":["instrumentToken","capMinor"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/instruments/caps":{"get":{"summary":"Your instrument ceilings with how much of each is already granted","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/agents/{id}/buy":{"post":{"summary":"Buy NOW with one of your agents — one tier ({ tierId, quantity }) or a basket ({ lines }, one charge) under the agent's mandate","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":10},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":10},"minQuantity":{"type":"integer","exclusiveMinimum":0,"maximum":10},"required":{"type":"boolean"},"step":{"type":"integer","exclusiveMinimum":0,"maximum":10},"seats":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"seatRequest":{"type":"object","properties":{"limits":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"sections":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"rows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":60},"to":{"type":"string","minLength":1,"maxLength":60},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}}}},"traits":{"type":"object","properties":{"require":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"exclude":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"together":{"type":"boolean"},"allowSplit":{"type":"boolean"},"blockSize":{"type":"integer","minimum":2,"maximum":20}}},"preferences":{"type":"object","properties":{"zoneOrder":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"rowPosition":{"type":"string","enum":["front","middle","back"]},"traits":{"type":"object","properties":{"prefer":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"avoid":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"tradeoff":{"type":"string","enum":["cheaper","better_seats","balanced"]}}}},"required":["limits"]}},"required":["tierId","quantity"]}},"attemptId":{"type":"string","format":"uuid"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/watches":{"post":{"summary":"Queue one of your agents to buy a tier or basket the moment it goes on sale — fired under the agent's mandate","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","minLength":1},"tierId":{"type":"string","minLength":1},"quantity":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":10},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10},"minQuantity":{"type":"integer","minimum":1,"maximum":10},"required":{"type":"boolean"},"step":{"type":"integer","minimum":1,"maximum":10},"seats":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"seatRequest":{"type":"object","properties":{"limits":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"sections":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"rows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":60},"to":{"type":"string","minLength":1,"maxLength":60},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}}}},"traits":{"type":"object","properties":{"require":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"exclude":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"together":{"type":"boolean"},"allowSplit":{"type":"boolean"},"blockSize":{"type":"integer","minimum":2,"maximum":20}}},"preferences":{"type":"object","properties":{"zoneOrder":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"rowPosition":{"type":"string","enum":["front","middle","back"]},"traits":{"type":"object","properties":{"prefer":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"avoid":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"tradeoff":{"type":"string","enum":["cheaper","better_seats","balanced"]}}}},"required":["limits"]}},"required":["tierId","quantity"]}},"fillPolicy":{"default":"single","type":"string","enum":["single","keep_waiting"]},"minQuantity":{"type":"integer","minimum":1,"maximum":10},"expiresInDays":{"default":30,"type":"integer","exclusiveMinimum":0,"maximum":90}},"required":["agentId"]}}}},"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"Your queued/fired watches with their outcomes","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/watches/{id}":{"get":{"summary":"One of your watches with its current place in the queue","tags":["buyer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Cancel a queued watch (owner-bound; fired/failed are history)","tags":["buyer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"summary":"Edit a queued or paused watch; keeps queue place unless demand or price target expands (allowQueueReset required)","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":10},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10},"minQuantity":{"type":"integer","minimum":1,"maximum":10},"required":{"type":"boolean"},"step":{"type":"integer","minimum":1,"maximum":10},"seats":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"seatRequest":{"type":"object","properties":{"limits":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"sections":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"rows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":60},"to":{"type":"string","minLength":1,"maxLength":60},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}}}},"traits":{"type":"object","properties":{"require":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"exclude":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"together":{"type":"boolean"},"allowSplit":{"type":"boolean"},"blockSize":{"type":"integer","minimum":2,"maximum":20}}},"preferences":{"type":"object","properties":{"zoneOrder":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"rowPosition":{"type":"string","enum":["front","middle","back"]},"traits":{"type":"object","properties":{"prefer":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"avoid":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"tradeoff":{"type":"string","enum":["cheaper","better_seats","balanced"]}}}},"required":["limits"]}},"required":["tierId","quantity"]}},"condition":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["available"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["price_at_or_below"]},"maxChargeMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","enum":["EUR","GBP","USD"]}},"required":["kind","maxChargeMinor","currency"]}]},"expiresAt":{"type":"string","format":"date-time"},"agentId":{"type":"string","minLength":1,"maxLength":200},"allowQueueReset":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/watch-capabilities":{"get":{"summary":"Watch request kinds and conditions this deployment enforces","tags":["buyer"],"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/watch-requests":{"post":{"summary":"Queue an agent with an explicit condition (availability or an all-in price target); idempotent on requestId","tags":["buyer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"agentId":{"type":"string","minLength":1,"maxLength":200},"request":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["ticketing"]},"tierId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10},"minQuantity":{"type":"integer","minimum":1,"maximum":10}},"required":["kind","tierId","quantity"]},{"type":"object","properties":{"kind":{"type":"string","enum":["ticketing"]},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10},"minQuantity":{"type":"integer","minimum":1,"maximum":10},"required":{"type":"boolean"},"step":{"type":"integer","minimum":1,"maximum":10},"seats":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"seatRequest":{"type":"object","properties":{"limits":{"type":"object","properties":{"zones":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"sections":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"rows":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":60},"to":{"type":"string","minLength":1,"maxLength":60},"exclude":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}}}},"traits":{"type":"object","properties":{"require":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"exclude":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"together":{"type":"boolean"},"allowSplit":{"type":"boolean"},"blockSize":{"type":"integer","minimum":2,"maximum":20}}},"preferences":{"type":"object","properties":{"zoneOrder":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"rowPosition":{"type":"string","enum":["front","middle","back"]},"traits":{"type":"object","properties":{"prefer":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"avoid":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}}},"tradeoff":{"type":"string","enum":["cheaper","better_seats","balanced"]}}}},"required":["limits"]}},"required":["tierId","quantity"]}}},"required":["kind","lines"]}]},"condition":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["available"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["price_at_or_below"]},"maxChargeMinor":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","enum":["EUR","GBP","USD"]}},"required":["kind","maxChargeMinor","currency"]}]},"fillPolicy":{"type":"string","enum":["single","keep_waiting"]},"expiresAt":{"type":"string","format":"date-time"}},"required":["requestId","agentId","request","condition","expiresAt"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/buyer/mandates/{id}":{"delete":{"summary":"Revoke a mandate I granted (immediate, server-side)","tags":["buyer"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/discovery/merchants/{id}":{"get":{"summary":"Public shop window (no auth): events + tiers with price and live availability state. Only for shops that opted in (discoverable).","tags":["discovery"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/discovery/merchants/{id}/feed.jsonl":{"get":{"summary":"ACP product feed (JSONL, no auth) for an opted-in shop — one item per ticket tier. ETag/If-None-Match supported.","tags":["discovery"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/merchants/{id}/inventory":{"get":{"summary":"Read-only offers, slots and observed inventory for one shop; merchant:read","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"catalog":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"profile":{"type":"string","enum":["ticketing"]},"use":{"type":"string","enum":["inventory_observation"]},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"observedAt":{"type":"string"},"storePolicy":{"type":"object","properties":{"geo":{"type":"string"},"currency":{"type":"string"},"allowedSchemes":{"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}},"feeBearer":{"type":"string","enum":["merchant","buyer"]},"taxRateBps":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["geo","currency","feeBearer","taxRateBps"],"additionalProperties":false},"checkout":{"type":"object","properties":{"mode":{"type":"string","enum":["api","hosted"]},"url":{"type":["null","string"]}},"required":["mode","url"],"additionalProperties":false},"capabilities":{"type":"object","properties":{"reserve":{"type":"boolean","enum":[false]},"quote":{"type":"boolean","enum":[false]},"purchase":{"type":"boolean","enum":[false]}},"required":["reserve","quote","purchase"],"additionalProperties":false},"products":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"object","properties":{"kind":{"type":"string","enum":["product"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"title":{"type":"string"}},"required":["ref","title"],"additionalProperties":false}},"variants":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"object","properties":{"kind":{"type":"string","enum":["variant"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"product":{"type":"object","properties":{"kind":{"type":"string","enum":["product"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"title":{"type":"string"}},"required":["ref","product","title"],"additionalProperties":false}},"slots":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"object","properties":{"kind":{"type":"string","enum":["slot"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"startsAt":{"type":"string"},"endsAt":{"type":["null","string"]},"timeZone":{"type":["null","string"]},"metadataRevision":{"type":["null","integer"],"minimum":0,"maximum":9007199254740991},"location":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["location"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"}},"required":["kind","id","tenantId","storeId","revision","name"],"additionalProperties":false},{"type":"null"}]}},"required":["ref","startsAt","endsAt","timeZone","metadataRevision","location"],"additionalProperties":false}},"offers":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"object","properties":{"kind":{"type":"string","enum":["offer"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"variant":{"type":"object","properties":{"kind":{"type":"string","enum":["variant"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"slot":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["slot"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"price":{"type":"object","properties":{"kind":{"type":"string","enum":["unit_base"]},"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["kind","amountMinor","currency"],"additionalProperties":false},"termsVersion":{"type":"null"},"sellable":{"type":"boolean"},"quantity":{"type":"object","properties":{"unit":{"type":"string","enum":["item","admission_place"]},"maxPerPurchase":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["unit"],"additionalProperties":false},"salesWindow":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"startInclusive":{"type":"boolean"},"endInclusive":{"type":"boolean"}},"required":["startInclusive","endInclusive"],"additionalProperties":false},"eligibility":{"type":"object","properties":{"principalRestricted":{"type":"boolean"},"geos":{"type":"array","items":{"type":"string"}},"schemes":{"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["principalRestricted"],"additionalProperties":false},"inventory":{"type":"object","properties":{"source":{"type":"object","properties":{"kind":{"type":"string","enum":["ticketing.tier_counter","ticketing.pool","ticketing.seat_set"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"unitsPerItem":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["source","unitsPerItem"],"additionalProperties":false},"profile":{"type":"object","properties":{"tierKind":{"type":"string","enum":["general","seated"]}},"required":["tierKind"],"additionalProperties":false}},"required":["ref","variant","slot","title","price","termsVersion","sellable","quantity","salesWindow","eligibility","inventory","profile"],"additionalProperties":false}},"inventory":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"object","properties":{"kind":{"type":"string","enum":["ticketing.tier_counter","ticketing.pool","ticketing.seat_set"]},"id":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id","tenantId","storeId"],"additionalProperties":false},"availability":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["observed"]},"units":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["state","units"],"additionalProperties":false},{"type":"object","properties":{"state":{"type":"string","enum":["unknown"]}},"required":["state"],"additionalProperties":false}]}},"required":["ref","availability"],"additionalProperties":false}}},"required":["schemaVersion","profile","use","tenantId","storeId","observedAt","storePolicy","checkout","capabilities","products","variants","slots","offers","inventory"],"additionalProperties":false}},"required":["catalog"],"additionalProperties":false}}}}}}},"/v1/integration/merchants/{id}/locations":{"get":{"summary":"Shop location metadata; merchant:read","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locations":{"type":"array","items":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["tenantId","storeId","id","revision","name","timeZone"],"additionalProperties":false}}},"required":["locations"],"additionalProperties":false}}}}}},"post":{"summary":"Add optional shop location metadata with an IANA zone; merchant:write","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timeZone":{"type":"string","minLength":1,"maxLength":100}},"required":["name","timeZone"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"location":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["tenantId","storeId","id","revision","name","timeZone"],"additionalProperties":false}},"required":["location"],"additionalProperties":false}}}}}}},"/v1/integration/merchants/{id}/locations/{locationId}":{"patch":{"summary":"Version location metadata without changing existing bindings; merchant:write","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timeZone":{"type":"string","minLength":1,"maxLength":100},"expectedRevision":{"type":"integer","minimum":1,"maximum":2147483646}},"required":["name","timeZone","expectedRevision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"locationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"location":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["tenantId","storeId","id","revision","name","timeZone"],"additionalProperties":false}},"required":["location"],"additionalProperties":false}}}}}}},"/v1/integration/merchants/{id}/slots/{slotId}":{"get":{"summary":"Occurrence and its optional pinned location; merchant:read","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"slotId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"slot":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["occurrence"]},"source":{"type":"string","enum":["native","ticketing"]},"startsAt":{"type":"string"},"endsAt":{"type":["null","string"]},"metadataRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"location":{"anyOf":[{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["tenantId","storeId","id","revision","name","timeZone"],"additionalProperties":false},{"type":"null"}]}},"required":["tenantId","storeId","id","kind","source","startsAt","endsAt","metadataRevision","location"],"additionalProperties":false}},"required":["slot"],"additionalProperties":false}}}}}}},"/v1/integration/merchants/{id}/slots/{slotId}/location":{"put":{"summary":"Bind or clear optional location metadata without rescheduling; merchant:write","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locationId":{"type":["string","null"],"minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","minimum":1,"maximum":2147483646},"expectedLocationRevision":{"type":"integer","minimum":1,"maximum":2147483646}},"required":["locationId","expectedRevision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"slotId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"slot":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["occurrence"]},"source":{"type":"string","enum":["native","ticketing"]},"startsAt":{"type":"string"},"endsAt":{"type":["null","string"]},"metadataRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"location":{"anyOf":[{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"maxLength":200},"storeId":{"type":"string","minLength":1,"maxLength":200},"id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["tenantId","storeId","id","revision","name","timeZone"],"additionalProperties":false},{"type":"null"}]}},"required":["tenantId","storeId","id","kind","source","startsAt","endsAt","metadataRevision","location"],"additionalProperties":false}},"required":["slot"],"additionalProperties":false}}}}}}},"/v1/integration/merchants/{id}/access":{"get":{"summary":"Read access rules and registered membership programs","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"programs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"levels":{"type":"array","items":{"type":"string"}}},"required":["id","name","levels"]}}},"required":["rules","programs"]}}}}}}},"/v1/integration/merchants/{id}/access/rules/{ruleId}":{"get":{"tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"required":["rule"]}}}}}},"put":{"summary":"Replace an inactive draft at the expected revision","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"offerId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":80},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["requestId","offerId","name","expectedRevision"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"required":["rule"]}}}}}}},"/v1/integration/merchants/{id}/access/rules":{"post":{"summary":"Save an inactive access-rule draft","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"offerId":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":80},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["requestId","offerId","name"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"required":["rule"]}}}}}}},"/v1/integration/merchants/{id}/access/rules/{ruleId}/preview":{"post":{"summary":"Preview scheduling or cancellation against current evidence and queued requests","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["schedule","cancel"]}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]},"action":{"type":"string","enum":["schedule","cancel"]},"expiresAt":{"type":"string"},"observedAt":{"type":"string"},"impact":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"earlier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"later":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unchanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","earlier","later","unchanged"]},"timeZone":{"type":"string"},"generalSaleAt":{"type":["null","string"]}},"required":["id","rule","action","expiresAt","observedAt","impact","timeZone","generalSaleAt"]}}}}}}},"/v1/integration/merchants/{id}/access/rules/{ruleId}/schedule":{"post":{"summary":"schedule an access rule from an unchanged preview","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"previewId":{"type":"string","format":"uuid"}},"required":["requestId","expectedRevision","previewId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"required":["rule"]}}}}}}},"/v1/integration/merchants/{id}/access/rules/{ruleId}/cancel":{"post":{"summary":"cancel an access rule from an unchanged preview","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"expectedRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"previewId":{"type":"string","format":"uuid"}},"required":["requestId","expectedRevision","previewId"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"ruleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rule":{"type":"object","properties":{"id":{"type":"string"},"offerId":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","scheduled","cancelled","archived"]},"name":{"type":"string"},"audience":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["membership"]},"programId":{"type":"string","minLength":1,"maxLength":200},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["kind","programId","levels"]},{"type":"object","properties":{"kind":{"type":"string","enum":["scheme"]},"schemes":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["visa","mastercard","amex"]}}},"required":["kind","schemes"]}]},"opensAt":{"type":"string"},"closesAt":{"type":"string"}},"required":["id","offerId","revision","status","name"]}},"required":["rule"]}}}}}}},"/v1/integration/merchants/{id}/access/programs":{"post":{"summary":"Register a merchant-attested membership program and explicit levels","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":80},"levels":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["requestId","name","levels"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"levels":{"type":"array","items":{"type":"string"}}},"required":["id","name","levels"]}},"required":["program"]}}}}}}},"/v1/integration/merchants/{id}/access/programs/{programId}/members/{buyerId}":{"put":{"summary":"Attest or revoke membership; source revision must increase","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"sourceRevision":{"type":"integer","exclusiveMinimum":0,"maximum":2147483646},"level":{"type":"string","minLength":1,"maxLength":80},"validFrom":{"type":"string"},"validUntil":{"type":"string"},"evidenceRef":{"type":"string","minLength":1,"maxLength":200},"revoked":{"type":"boolean"}},"required":["requestId","sourceRevision","level","validFrom","validUntil","evidenceRef","revoked"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"programId","required":true},{"schema":{"type":"string"},"in":"path","name":"buyerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"programId":{"type":"string"},"buyerId":{"type":"string"},"sourceRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revoked":{"type":"boolean"}},"required":["programId","buyerId","sourceRevision","revoked"]}},"required":["membership"]}}}}}}},"/v1/integration/payments/{intentId}/dispute-evidence":{"get":{"summary":"Export recorded authority and purchase evidence for an Alyte payment","tags":["integration"],"description":"Read-only evidence for an authorised-purchase denial. Comparisons are reconstructed from records; transaction authentication is returned only when recorded and bound to this payment. Includes general PSP field guidance and explicit gaps, not case-specific requirements or a submission payload. The merchant assembles and submits its dispute response.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"intentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"string","enum":["alyte.dispute_evidence.v2"]},"observedAt":{"type":"string","format":"date-time"},"tenantId":{"type":"string"},"intentId":{"type":"string"},"merchantId":{"type":"string"},"agentId":{"type":"string"},"purpose":{"type":"string","enum":["authorised_purchase_denied"]},"payment":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"scheme":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["authorized","declined","error","pending","unavailable"]},"paymentState":{"type":["null","string"],"enum":["authorization_pending","capture_pending","requires_action","captured","declined","reconciliation_required"]},"pspId":{"type":["null","string"]},"pspTransactionId":{"type":["null","string"]},"captureEvidence":{"type":"string","enum":["recorded","unavailable"]}},"required":["amountMinor","currency","scheme","createdAt","status","paymentState","pspId","pspTransactionId","captureEvidence"]},"authority":{"type":"object","properties":{"binding":{"type":"string","enum":["exact_mandate","unavailable"]},"mandateId":{"type":["null","string"]}},"required":["binding","mandateId"]},"permission":{"anyOf":[{"type":"object","properties":{"mandateId":{"type":"string"},"grantedAt":{"type":"string","format":"date-time"},"eventSequence":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"capMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"expiresAt":{"type":["string","null"],"format":"date-time"},"expiryRecorded":{"type":"boolean"},"scope":{"type":"object","properties":{"merchants":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string"}},"tierKinds":{"type":"array","items":{"type":"string","enum":["general","seated"]}},"quantity":{"type":"object","properties":{"min":{"type":"integer","minimum":0,"maximum":9007199254740991},"max":{"type":"integer","minimum":0,"maximum":9007199254740991},"step":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}},"addonPolicy":{"type":"string","enum":["none","allow_all","selected"]},"allowedAddonCategories":{"type":"array","items":{"type":"string"}},"allowedAddonTierIds":{"type":"array","items":{"type":"string"}},"addonCapMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"consent":{"type":"object","properties":{"source":{"type":"string","enum":["buyer","merchant","unavailable"]},"surface":{"type":["string","null"]}},"required":["source","surface"]}},"required":["mandateId","grantedAt","eventSequence","capMinor","currency","expiresAt","expiryRecorded","scope","consent"]},{"type":"null"}]},"purchase":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"chargeMinor":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"lines":{"minItems":1,"type":"array","items":{"type":"object","properties":{"tierId":{"type":"string"},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unitPriceMinor":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991},"subtotalMinor":{"type":["integer","null"],"minimum":0,"maximum":9007199254740991}},"required":["tierId","quantity","unitPriceMinor","subtotalMinor"]}}},"required":["id","quantity","chargeMinor","currency","createdAt","expiresAt","lines"]},{"type":"null"}]},"comparisons":{"type":"object","properties":{"basis":{"type":"string","enum":["reconstructed_from_records"]},"timeBasis":{"type":"string","enum":["payment_created_at"]},"amountWithinRecordedCap":{"type":"string","enum":["match","mismatch","unknown"]},"currency":{"type":"string","enum":["match","mismatch","unknown"]},"merchant":{"type":"string","enum":["match","mismatch","unknown"]},"expiry":{"type":"string","enum":["match","mismatch","unknown"]},"quantity":{"type":"string","enum":["match","mismatch","unknown"]},"quoteAmount":{"type":"string","enum":["match","mismatch","unknown"]},"eventScope":{"type":"string","enum":["match","mismatch","unknown"]},"tierKindScope":{"type":"string","enum":["match","mismatch","unknown"]},"addonScope":{"type":"string","enum":["match","mismatch","unknown"]},"cumulativeAllowance":{"type":"string","enum":["unknown"]},"revocation":{"type":"string","enum":["no_recorded_revocation","mismatch","unknown"]}},"required":["basis","timeBasis","amountWithinRecordedCap","currency","merchant","expiry","quantity","quoteAmount","eventScope","tierKindScope","addonScope","cumulativeAllowance","revocation"]},"authentication":{"type":"object","properties":{"setup":{"type":"string","enum":["3ds_authenticated","not_supported","legacy_assumed","none","unavailable"]},"setupFlow":{"type":["null","string"],"enum":["challenge","frictionless"]},"transaction":{"type":"string","enum":["recorded","unavailable"]},"transactionDetails":{"anyOf":[{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["stripe"]},"paymentIntentId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"chargeId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"result":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"flow":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"version":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"eci":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"transactionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"observedAt":{"type":"string","format":"date-time"}},"required":["provider","paymentIntentId","result","observedAt"]},{"type":"object","properties":{"provider":{"type":"string","enum":["adyen"]},"pspReference":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"result":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"flow":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"version":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"eci":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"transactionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_.-]+$"},"observedAt":{"type":"string","format":"date-time"}},"required":["provider","pspReference","result","observedAt"]}]},{"type":"null"}]}},"required":["setup","setupFlow","transaction","transactionDetails"]},"pspRequirements":{"type":"object","properties":{"psp":{"type":["null","string"],"enum":["stripe","adyen"]},"profile":{"type":["null","string"]},"version":{"type":"string","enum":["2026-11-08"]},"sources":{"type":"array","items":{"type":"string","format":"uri"}},"caseRequirements":{"type":"string","enum":["not_retrieved"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"availability":{"type":"string","enum":["available","partial","unavailable","conflicting"]},"requirement":{"type":"string","enum":["supporting","conditional"]},"evidenceOwner":{"type":"string","enum":["alyte","merchant","psp"]},"targetFields":{"type":"array","items":{"type":"string"}},"dataPaths":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["id","availability","requirement","evidenceOwner","targetFields","dataPaths","note"]}}},"required":["psp","profile","version","sources","caseRequirements","items"]},"gaps":{"type":"array","items":{"type":"string"}}},"required":["schemaVersion","observedAt","tenantId","intentId","merchantId","agentId","purpose","payment","authority","permission","purchase","comparisons","authentication","pspRequirements","gaps"]}}}}}}},"/v1/integration/catalog":{"get":{"summary":"The tenant's full catalog — shops → events → tiers, with restriction fields (API token, merchant:read)","tags":["integration"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"catalog":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"events":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"title":{"type":"string"},"tiers":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer"},"currency":{"type":"string"},"kind":{"type":"string"},"availableCount":{"type":"integer","description":"Live availability. For a pooled tier this is the POOL's count (the tier has no counter of its own)."},"poolId":{"type":"string","description":"The shared inventory pool this tier draws on, when it does."},"maxQtyPerPurchase":{"type":"integer"},"sellable":{"type":"boolean"},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id","priceMinor","currency"]}}}}}}}}},"required":["catalog"]}}}}}}},"/v1/integration/merchants":{"post":{"summary":"Create a shop (API token, merchant:admin)","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","geo","currency"],"properties":{"name":{"type":"string"},"geo":{"type":"string"},"currency":{"type":"string"},"checkout":{"type":"string","enum":["api","hosted"]},"checkoutUrl":{"type":"string"},"allowedSchemes":{"type":"array","items":{"type":"string"}},"feeBearer":{"type":"string","enum":["buyer","merchant"]},"taxRateBps":{"type":"integer"},"shopType":{"type":"string","enum":["tickets","goods"],"description":"Buyer-facing wording style on the authorize page: tickets (default) or goods (retail items/products)."},"acceptExtraShopCharge":{"type":"boolean","description":"Card D: confirm the monthly charge for a shop beyond the plan allowance (Growth/Scale). Without it such a create is refused with 409 plan_extra_shop_charge_required."},"externalRef":{"type":"string","description":"YOUR stable id for this shop. Makes creation IDEMPOTENT: a repeat POST with the same externalRef returns the existing shop (200) instead of creating a duplicate. Recommended for every integrator."}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"merchant":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"geo":{"type":"string"},"currency":{"type":"string"},"shopType":{"type":"string","enum":["tickets","goods"]},"discoverable":{"type":"boolean"},"imageUrl":{"type":"string"},"purchaseAuthentication":{"type":"string","enum":["off_session","buyer_present"]},"approvalWindowSeconds":{"type":"integer","minimum":300,"maximum":1800}},"required":["id","name"]},"existing":{"type":"boolean"}},"required":["merchant"]}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"merchant":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"geo":{"type":"string"},"currency":{"type":"string"},"shopType":{"type":"string","enum":["tickets","goods"]},"discoverable":{"type":"boolean"},"imageUrl":{"type":"string"},"purchaseAuthentication":{"type":"string","enum":["off_session","buyer_present"]},"approvalWindowSeconds":{"type":"integer","minimum":300,"maximum":1800}},"required":["id","name"]}},"required":["merchant"]}}}}}}},"/v1/integration/merchants/{id}":{"patch":{"summary":"Update a shop's settings — discovery opt-in, shop image, embed origins, shop wording type, and purchase-time bank authentication (purchaseAuthentication, approvalWindowSeconds) (API token, merchant:write)","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"discoverable":{"type":"boolean"},"imageUrl":{"type":["string","null"]},"embedOrigin":{"type":["string","null"],"description":"Up to three bare https origins (no path), space- or comma-separated, e.g. \"https://fieldpass.shop https://staging.fieldpass.shop\"; http only for localhost. Drives the frame-ancestors allowlist, the postMessage targetOrigin and buyer-API CORS. null clears them."},"shopType":{"type":"string","enum":["tickets","goods"],"description":"Buyer-facing wording style: tickets (default) or goods."},"purchaseAuthentication":{"type":"string","enum":["off_session","buyer_present"],"description":"Whether agent purchases run off_session (default) or require buyer_present bank authentication at purchase. buyer_present is refused with 409 purchase_authentication_unsupported when the shop's default PSP cannot run the flow."},"approvalWindowSeconds":{"type":"integer","minimum":300,"maximum":1800,"description":"How long (seconds, 300–1800, default 600) a hold waits for the buyer under buyer_present."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"merchant":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"geo":{"type":"string"},"currency":{"type":"string"},"shopType":{"type":"string","enum":["tickets","goods"]},"discoverable":{"type":"boolean"},"imageUrl":{"type":"string"},"purchaseAuthentication":{"type":"string","enum":["off_session","buyer_present"]},"approvalWindowSeconds":{"type":"integer","minimum":300,"maximum":1800}},"required":["id","name"]}},"required":["merchant"]}}}}}},"delete":{"summary":"Delete a shop — cascades its events, tiers, and PSP links, and shreds the PSP secret refs (API token, merchant:admin). Irreversible.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/events":{"post":{"summary":"Publish an event (API token, merchant:write). With externalRef the create is idempotent: a repeat returns the existing event (200, existing: true).","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"merchantId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1},"kind":{"type":"string","enum":["dated","product"]},"startsAt":{"type":["string","null"],"format":"date-time"},"location":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"expectedRevision":{"type":"integer","minimum":1,"maximum":2147483646}},"required":["id","expectedRevision"],"additionalProperties":false},"externalRef":{"type":"string","minLength":1,"maxLength":200}},"required":["merchantId","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"event":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["dated","product"]},"startsAt":{"type":["null","string"]},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id"]},"existing":{"type":"boolean"}},"required":["event"]}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"event":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["dated","product"]},"startsAt":{"type":["null","string"]},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id"]}},"required":["event"]}}}}}}},"/v1/integration/tiers":{"post":{"summary":"Publish a ticket tier (API token, merchant:write). With externalRef the create is idempotent: a repeat returns the existing tier (200, existing: true).","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["eventId","title","priceMinor","currency","kind"],"properties":{"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer","description":"Integer MINOR units — never a float (invariant #1)."},"currency":{"type":"string"},"kind":{"type":"string","enum":["general","seated"]},"availableCount":{"type":"integer"},"maxQtyPerPurchase":{"type":["integer","null"],"minimum":1},"sellable":{"type":"boolean"},"onSaleStart":{"type":["string","null"],"format":"date-time"},"onSaleEnd":{"type":["string","null"],"format":"date-time"},"allowedGeos":{"type":["array","null"],"items":{"type":"string"}},"allowedSchemes":{"type":["array","null"],"items":{"type":"string","enum":["visa","mastercard","amex"]}},"poolId":{"type":["string","null"],"description":"Draw on a shared inventory pool (general tiers only; then omit availableCount — the pool is the counter). Adult and child prices sharing one room limit, early-bird and standard sharing the floor."},"allocation":{"type":["string","null"],"enum":["provider",null],"description":"SB-4 · 'provider' = seats come from the shop's seating provider (general tiers only; see docs/design/SEATING_PROVIDER.md). Purchases are refused (409 seating_unavailable) until Alyte's provider path ships. null = no seat allocation."},"externalRef":{"type":"string","minLength":1,"maxLength":200,"description":"YOUR stable id for this tier (per tenant, 1–200 chars). Makes creation IDEMPOTENT: a repeat POST with the same externalRef returns the existing tier (200, existing: true) untouched, instead of creating a duplicate. Resend a create whose reply you lost; never create one you cannot recognise."},"role":{"type":"string","enum":["primary","addon"],"description":"Basket role: primary (standalone admission/table) or addon (parking, shuttle, hospitality)."},"category":{"type":["string","null"],"description":"Merchant-defined category slug (e.g. parking, vip-table, shuttle). Validated to ^[a-z0-9][a-z0-9_-]{0,39}$."},"categoryLabel":{"type":["string","null"],"description":"Human-readable label for category."},"countsTowardPartySize":{"type":["boolean","null"],"description":"Override whether units of this tier count toward the buyer party-size cap (defaults to role !== \"addon\")."},"linkRule":{"type":["object","null"],"additionalProperties":false,"required":["parentScope","scaling"],"properties":{"parentScope":{"type":"string","enum":["any_primary_in_event","specific_tiers"]},"parentTierIds":{"type":"array","items":{"type":"string"}},"scaling":{"type":"string","enum":["per_basket","per_parent_unit"]},"minQty":{"type":"integer","minimum":1},"maxQty":{"type":"integer","minimum":1},"minPerParent":{"type":"integer","minimum":0},"maxPerParent":{"type":"integer","minimum":1},"parentGroupSize":{"type":"integer","minimum":1}},"description":"Cross-line basket composition rule enforced server-side at reserve and confirm."}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"tier":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer"},"currency":{"type":"string"},"kind":{"type":"string"},"availableCount":{"type":"integer","description":"Live availability. For a pooled tier this is the POOL's count (the tier has no counter of its own)."},"poolId":{"type":"string","description":"The shared inventory pool this tier draws on, when it does."},"maxQtyPerPurchase":{"type":"integer"},"sellable":{"type":"boolean"},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id","priceMinor","currency"]},"existing":{"type":"boolean"}},"required":["tier"]}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"tier":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer"},"currency":{"type":"string"},"kind":{"type":"string"},"availableCount":{"type":"integer","description":"Live availability. For a pooled tier this is the POOL's count (the tier has no counter of its own)."},"poolId":{"type":"string","description":"The shared inventory pool this tier draws on, when it does."},"maxQtyPerPurchase":{"type":"integer"},"sellable":{"type":"boolean"},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id","priceMinor","currency"]}},"required":["tier"]}}}}}}},"/v1/integration/tiers/{id}":{"patch":{"summary":"Update a tier — price/stock + the server-enforced restrictions (API token, merchant:write)","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceMinor":{"type":"integer","description":"Integer MINOR units — never a float (invariant #1)."},"availableCount":{"type":"integer","description":"Restock a tier that has its own counter. A pooled tier refuses this — restock its pool (PATCH /pools/{id})."},"expectedOccurrenceRevision":{"type":"integer","minimum":1,"maximum":2147483646,"description":"Optional version of the location binding used to interpret sale-window input; stale edits return 409."},"poolId":{"type":["string","null"],"description":"Attach the tier to a shared pool (its own counter goes away), or null to detach it — then also send availableCount for its own counter. Refused while the tier has a live hold."},"maxQtyPerPurchase":{"type":["integer","null"]},"sellable":{"type":"boolean"},"onSaleStart":{"type":["string","null"],"format":"date-time","description":"RFC 3339 with an explicit offset; null clears."},"onSaleEnd":{"type":["string","null"],"format":"date-time","description":"RFC 3339 with an explicit offset; null clears."},"allowedGeos":{"type":["array","null"],"items":{"type":"string"}},"allowedSchemes":{"type":["array","null"],"items":{"type":"string"}},"role":{"type":"string","enum":["primary","addon"]},"category":{"type":["string","null"]},"categoryLabel":{"type":["string","null"]},"countsTowardPartySize":{"type":["boolean","null"]},"allocation":{"type":["string","null"],"enum":["provider",null],"description":"SB-4 · 'provider' = seats come from the shop's seating provider (general tiers only; see docs/design/SEATING_PROVIDER.md). Purchases are refused (409 seating_unavailable) until Alyte's provider path ships. null = no seat allocation."},"linkRule":{"type":["object","null"],"additionalProperties":false,"required":["parentScope","scaling"],"properties":{"parentScope":{"type":"string","enum":["any_primary_in_event","specific_tiers"]},"parentTierIds":{"type":"array","items":{"type":"string"}},"scaling":{"type":"string","enum":["per_basket","per_parent_unit"]},"minQty":{"type":"integer","minimum":1},"maxQty":{"type":"integer","minimum":1},"minPerParent":{"type":"integer","minimum":0},"maxPerParent":{"type":"integer","minimum":1},"parentGroupSize":{"type":"integer","minimum":1}}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"tier":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer"},"currency":{"type":"string"},"kind":{"type":"string"},"availableCount":{"type":"integer","description":"Live availability. For a pooled tier this is the POOL's count (the tier has no counter of its own)."},"poolId":{"type":"string","description":"The shared inventory pool this tier draws on, when it does."},"maxQtyPerPurchase":{"type":"integer"},"sellable":{"type":"boolean"},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id","priceMinor","currency"]}},"required":["tier"]}}}}}},"delete":{"summary":"Delete a tier (API token, merchant:write)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/tiers/{id}/stock":{"post":{"summary":"Atomically adjust a tier's available stock by a signed non-zero delta (API token, merchant:write). Runs a single guarded UPDATE (available_count + delta >= 0, invariant #7); for a pooled tier, adjusts its shared pool (refusing with 409 pool_capacity_exceeded if a positive delta would exceed the pool's declared capacity). Short stock returns a terminal 409 stock_insufficient ({ tierId, delta, availableCount }). Idempotent on requestId (scoped per tenant): a replayed request (same requestId, tier, and delta) returns replayed: true with the tier's current stock, not the stock right after the original adjustment.","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["requestId","delta"],"properties":{"requestId":{"type":"string","minLength":1,"maxLength":200,"description":"Caller-supplied idempotency key for this adjustment, scoped per tenant."},"delta":{"type":"integer","minimum":-100000,"maximum":100000,"description":"Non-zero signed integer stock change between -100000 and 100000 (negative for sales on your own checkout, positive for returns/additions)."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"tier":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"title":{"type":"string"},"priceMinor":{"type":"integer"},"currency":{"type":"string"},"kind":{"type":"string"},"availableCount":{"type":"integer","description":"Live availability. For a pooled tier this is the POOL's count (the tier has no counter of its own)."},"poolId":{"type":"string","description":"The shared inventory pool this tier draws on, when it does."},"maxQtyPerPurchase":{"type":"integer"},"sellable":{"type":"boolean"},"externalRef":{"type":"string","description":"The integrator's stable id, when it gave one at creation."}},"required":["id","priceMinor","currency"]},"replayed":{"type":"boolean"}},"required":["tier"]}}}}}}},"/v1/integration/pools":{"post":{"summary":"Create a SHARED inventory pool — one capacity several tiers draw on (API token, merchant:write). Adult and child prices sharing one room limit; early-bird and standard sharing the floor. The pool is the oversell arbiter for every tier attached to it.","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["merchantId","title","capacity"],"properties":{"merchantId":{"type":"string"},"eventId":{"type":["string","null"],"description":"Scope the pool to one event (its tiers must belong to that event). Omit for a shop-wide pool, e.g. camping across festival days."},"title":{"type":"string"},"capacity":{"type":"integer","minimum":0,"description":"The declared capacity; also the opening availability."},"externalRef":{"type":"string","minLength":1,"maxLength":200,"description":"YOUR stable id for this pool (per tenant, 1–200 chars). Makes creation IDEMPOTENT: a repeat POST with the same externalRef returns the existing pool untouched (200, existing: true) instead of a second capacity for the same zone."}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"pool":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"eventId":{"type":"string"},"externalRef":{"type":"string","description":"The integrator's stable id, when given at creation."},"title":{"type":"string"},"capacity":{"type":"integer","description":"The declared capacity."},"availableCount":{"type":"integer","description":"Live remaining places — the oversell arbiter for every tier on the pool."},"authority":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","merchantId","capacity","availableCount"]},"existing":{"type":"boolean"}},"required":["pool"]}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"pool":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"eventId":{"type":"string"},"externalRef":{"type":"string","description":"The integrator's stable id, when given at creation."},"title":{"type":"string"},"capacity":{"type":"integer","description":"The declared capacity."},"availableCount":{"type":"integer","description":"Live remaining places — the oversell arbiter for every tier on the pool."},"authority":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","merchantId","capacity","availableCount"]}},"required":["pool"]}}}}}},"get":{"summary":"A shop's inventory pools with live availability (API token, merchant:read)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"merchantId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"pools":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"eventId":{"type":"string"},"externalRef":{"type":"string","description":"The integrator's stable id, when given at creation."},"title":{"type":"string"},"capacity":{"type":"integer","description":"The declared capacity."},"availableCount":{"type":"integer","description":"Live remaining places — the oversell arbiter for every tier on the pool."},"authority":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","merchantId","capacity","availableCount"]}}},"required":["pools"]}}}}}}},"/v1/integration/pools/{id}":{"patch":{"summary":"Rename, re-declare capacity, or RESTOCK a pool (API token, merchant:write). availableCount sets the live remaining places for every tier on the pool; it can never exceed capacity, and capacity must also cover places still held, so raise both together when restocking past the declared number.","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string"},"capacity":{"type":"integer","minimum":0},"availableCount":{"type":"integer","minimum":0}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"pool":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"merchantId":{"type":"string"},"eventId":{"type":"string"},"externalRef":{"type":"string","description":"The integrator's stable id, when given at creation."},"title":{"type":"string"},"capacity":{"type":"integer","description":"The declared capacity."},"availableCount":{"type":"integer","description":"Live remaining places — the oversell arbiter for every tier on the pool."},"authority":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","merchantId","capacity","availableCount"]}},"required":["pool"]}}}}}}},"/v1/integration/events/{id}/purchase-limit":{"put":{"summary":"Set the per-customer ticket limit for an event (API token, merchant:write). maxPerCustomer caps the tickets one customer can have for the event, held or bought; maxHeldPerCustomer optionally caps the unpaid tickets one customer can hold at once; policy optionally configures per-identifier actions. PUT replaces the whole limit. The first PUT also counts the event's earlier sales: a customer already over the limit keeps their tickets but cannot buy more. Clear with DELETE.","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["maxPerCustomer"],"properties":{"maxPerCustomer":{"type":"integer","minimum":1,"maximum":1000},"maxHeldPerCustomer":{"type":"integer","minimum":1,"maximum":1000,"description":"At most maxPerCustomer. Omit for no separate cap on unpaid tickets."},"countWaitingWatches":{"type":"boolean","description":"Whether queued purchases count toward the limit while they wait. Omit to leave it unset, which counts; a queue request over the limit is then refused."},"policy":{"type":"object","additionalProperties":false,"description":"Optional per-identifier policy actions (account is immutable direct; card_masked never allows direct).","properties":{"account":{"type":"string","enum":["direct"]},"card_fingerprint":{"type":"string","enum":["direct","off"]},"card_masked":{"type":"string","enum":["corroborated","flag_only","off"]},"email_verified":{"type":"string","enum":["direct","off"]},"email_unverified":{"type":"string","enum":["direct","corroborated","flag_only","off"]},"customer_id":{"type":"string","enum":["direct","off"]},"address":{"type":"string","enum":["direct","corroborated","flag_only","off"]}}}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"purchaseLimit":{"type":"object","additionalProperties":true,"properties":{"eventId":{"type":"string"},"merchantId":{"type":"string"},"maxPerCustomer":{"type":"integer"},"maxHeldPerCustomer":{"type":"integer"},"countWaitingWatches":{"type":["null","boolean"],"description":"Whether queued purchases count toward the limit while they wait; null when the merchant has not chosen, which counts."},"policy":{"type":"object","additionalProperties":true,"properties":{"account":{"type":"string","enum":["direct"]},"card_fingerprint":{"type":"string","enum":["direct","off"]},"card_masked":{"type":"string","enum":["corroborated","flag_only","off"]},"email_verified":{"type":"string","enum":["direct","off"]},"email_unverified":{"type":"string","enum":["direct","corroborated","flag_only","off"]},"customer_id":{"type":"string","enum":["direct","off"]},"address":{"type":"string","enum":["direct","corroborated","flag_only","off"]}}},"countingEpoch":{"type":"integer","minimum":1,"description":"Active counting epoch (default 1). Incremented only by sandbox reset; confirmed sales of earlier epochs stay in history and do not count against the active epoch."},"revision":{"type":"integer"},"updatedAt":{"type":"string"}},"required":["eventId","maxPerCustomer","countWaitingWatches","countingEpoch","revision"]},"readiness":{"type":"object","additionalProperties":true,"properties":{"identifiers":{"type":"array","items":{"type":"string"},"description":"What a customer is recognised by: account (the buyer behind the agent) and card (Stripe's card fingerprint, or Adyen's card alias when the merchant's Adyen account returns it). Cards saved before card recognition, Adyen cards saved without an alias, and delegated payment tokens count by account only."},"ticketsCounted":{"type":"integer","description":"Held or sold tickets the limit counts against a customer."},"ticketsNotCounted":{"type":"integer","description":"Held or sold tickets it cannot tie to a customer, e.g. bought before the buyer could be identified."}},"required":["identifiers","ticketsCounted","ticketsNotCounted"]}},"required":["purchaseLimit","readiness"]}}}}}},"get":{"summary":"An event's per-customer ticket limit (null when it has none) and how many of its tickets the limit can count against a customer (API token, merchant:read)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"purchaseLimit":{"anyOf":[{"type":"object","additionalProperties":true,"properties":{"eventId":{"type":"string"},"merchantId":{"type":"string"},"maxPerCustomer":{"type":"integer"},"maxHeldPerCustomer":{"type":"integer"},"countWaitingWatches":{"type":["null","boolean"],"description":"Whether queued purchases count toward the limit while they wait; null when the merchant has not chosen, which counts."},"policy":{"type":"object","additionalProperties":true,"properties":{"account":{"type":"string","enum":["direct"]},"card_fingerprint":{"type":"string","enum":["direct","off"]},"card_masked":{"type":"string","enum":["corroborated","flag_only","off"]},"email_verified":{"type":"string","enum":["direct","off"]},"email_unverified":{"type":"string","enum":["direct","corroborated","flag_only","off"]},"customer_id":{"type":"string","enum":["direct","off"]},"address":{"type":"string","enum":["direct","corroborated","flag_only","off"]}}},"countingEpoch":{"type":"integer","minimum":1,"description":"Active counting epoch (default 1). Incremented only by sandbox reset; confirmed sales of earlier epochs stay in history and do not count against the active epoch."},"revision":{"type":"integer"},"updatedAt":{"type":"string"}},"required":["eventId","maxPerCustomer","countWaitingWatches","countingEpoch","revision"]},{"type":"null"}]},"readiness":{"type":"object","additionalProperties":true,"properties":{"identifiers":{"type":"array","items":{"type":"string"},"description":"What a customer is recognised by: account (the buyer behind the agent) and card (Stripe's card fingerprint, or Adyen's card alias when the merchant's Adyen account returns it). Cards saved before card recognition, Adyen cards saved without an alias, and delegated payment tokens count by account only."},"ticketsCounted":{"type":"integer","description":"Held or sold tickets the limit counts against a customer."},"ticketsNotCounted":{"type":"integer","description":"Held or sold tickets it cannot tie to a customer, e.g. bought before the buyer could be identified."}},"required":["identifiers","ticketsCounted","ticketsNotCounted"]}},"required":["purchaseLimit","readiness"]}}}}}},"delete":{"summary":"Remove an event's per-customer ticket limit (API token, merchant:write). Setting one again counts the event's sales from the start.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"cleared":{"type":"boolean"}},"required":["cleared"]}}}}}}},"/v1/integration/events/{id}/purchase-limit/flags":{"get":{"summary":"Read deduplicated non-enforcing purchase-limit match flags for an event (API token, merchant:read). Exposes the matched identifier family only, never raw values or hashes.","tags":["integration"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"eventId":{"type":"string"},"flags":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventId":{"type":"string"},"subjectKind":{"type":"string","enum":["hold","watch"]},"subjectId":{"type":"string"},"family":{"type":"string","enum":["account","card","email","customer","address"]},"policyAction":{"type":"string","enum":["flag_only","corroborated"]},"policyRevision":{"type":"integer"},"epoch":{"type":"integer"},"matchedCount":{"type":"integer"},"limitMax":{"type":"integer"},"createdAt":{"type":"string"}},"required":["id","eventId","subjectKind","subjectId","family","policyAction","policyRevision","epoch","matchedCount","limitMax","createdAt"]}}},"required":["eventId","flags"]}}}}}}},"/v1/integration/events/{id}/purchase-limit/reset":{"post":{"summary":"QF-13 · Sandbox-only: advance an event's purchase-limit counting epoch so confirmed sales of earlier epochs stop counting against the active limit while keeping historical claims intact and carrying unpaid holds/watches forward (API token, owner-minted merchant:admin; refused in production with 409).","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"purchaseLimit":{"type":"object","additionalProperties":true,"properties":{"eventId":{"type":"string"},"merchantId":{"type":"string"},"maxPerCustomer":{"type":"integer"},"maxHeldPerCustomer":{"type":"integer"},"countWaitingWatches":{"type":["null","boolean"],"description":"Whether queued purchases count toward the limit while they wait; null when the merchant has not chosen, which counts."},"policy":{"type":"object","additionalProperties":true,"properties":{"account":{"type":"string","enum":["direct"]},"card_fingerprint":{"type":"string","enum":["direct","off"]},"card_masked":{"type":"string","enum":["corroborated","flag_only","off"]},"email_verified":{"type":"string","enum":["direct","off"]},"email_unverified":{"type":"string","enum":["direct","corroborated","flag_only","off"]},"customer_id":{"type":"string","enum":["direct","off"]},"address":{"type":"string","enum":["direct","corroborated","flag_only","off"]}}},"countingEpoch":{"type":"integer","minimum":1,"description":"Active counting epoch (default 1). Incremented only by sandbox reset; confirmed sales of earlier epochs stay in history and do not count against the active epoch."},"revision":{"type":"integer"},"updatedAt":{"type":"string"}},"required":["eventId","maxPerCustomer","countWaitingWatches","countingEpoch","revision"]},"previousEpoch":{"type":"integer","minimum":1},"countingEpoch":{"type":"integer","minimum":2},"carriedClaims":{"type":"integer","minimum":0},"carriedUnits":{"type":"integer","minimum":0},"readiness":{"type":"object","additionalProperties":true,"properties":{"identifiers":{"type":"array","items":{"type":"string"},"description":"What a customer is recognised by: account (the buyer behind the agent) and card (Stripe's card fingerprint, or Adyen's card alias when the merchant's Adyen account returns it). Cards saved before card recognition, Adyen cards saved without an alias, and delegated payment tokens count by account only."},"ticketsCounted":{"type":"integer","description":"Held or sold tickets the limit counts against a customer."},"ticketsNotCounted":{"type":"integer","description":"Held or sold tickets it cannot tie to a customer, e.g. bought before the buyer could be identified."}},"required":["identifiers","ticketsCounted","ticketsNotCounted"]}},"required":["purchaseLimit","previousEpoch","countingEpoch","carriedClaims","carriedUnits","readiness"]}}}}}}},"/v1/integration/events/{id}":{"delete":{"summary":"Delete an event and its tiers (API token, merchant:write)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/merchants/{id}/psps":{"get":{"summary":"A shop's PSP links — refs and public fields only, never a secret (API token, merchant:read)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"psps":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"pspId":{"type":"string"},"name":{"type":"string"},"isDefault":{"type":"boolean"},"rateBps":{"type":"integer"},"credentialRef":{"type":"string"},"publishableKey":{"type":"string"}},"required":["pspId"]}}},"required":["psps"]}}}}}},"post":{"summary":"Link a PSP to a shop — captures the API key to the secret store, ref only persisted (API token, merchant:write)","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["psp"],"properties":{"psp":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"rateBps":{"type":"integer"},"isDefault":{"type":"boolean"},"secret":{"type":"string","description":"Plaintext PSP secret key — captured to the secret store, never persisted or logged."},"publishableKey":{"type":"string","description":"The PSP publishable key (pk_…) — public material for the card-capture iframe."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"ok":{"type":"boolean"},"pspId":{"type":"string"},"credentialCheck":{"type":"object","description":"Adyen only, when a secret was sent: Adyen's verdict on the key taken before vaulting — { status: 'verified' } or { status: 'unverified', cause, httpStatus?, errorCode? }. A key Adyen refuses is not saved (422 psp_credentials_rejected)."},"credentialRef":{"type":"string","description":"Opaque reference to the vaulted secret — the secret itself is NEVER returned."}},"required":["ok","pspId"]}}}}}}},"/v1/integration/merchants/{id}/seating-provider":{"put":{"summary":"SB-4 / BSR-3 · connect the shop's seating provider (API token, merchant:admin). Returns the signing secret ONCE on the first PUT or with rotateSecret; a changed URL, secret, or enabling partialAllocate needs a new test","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["allocateUrl","releaseUrl"],"properties":{"allocateUrl":{"type":"string","description":"HTTPS URL Alyte POSTs a signed allocate request to at reserve time."},"releaseUrl":{"type":"string","description":"HTTPS URL Alyte POSTs a signed release to (from a durable outbox) for every allocation that does not end sold."},"chartUrl":{"type":["string","null"],"description":"Optional HTTPS URL Alyte POSTs signed chart requests to (enables seat requests and buyer catalog pickers)."},"offersUrl":{"type":["string","null"],"description":"Optional HTTPS URL Alyte POSTs signed offers requests to (contract v2)."},"partialAllocate":{"type":"boolean","description":"Whether the seating provider supports partial allocate (reduced/dropped lines on seated baskets)."},"rotateSecret":{"type":"boolean","description":"Mint a new signing secret (returned once); the connection must be tested again."}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"get":{"summary":"SB-4 · the shop's seating-provider connection (API token, merchant:read); the secret is never returned","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/merchants/{id}/seating-provider/test":{"post":{"summary":"SB-4 · ping both provider URLs with a signed {\"type\":\"ping\"}; 200 only when both answer 2xx (then verified), otherwise 409 seating_provider_unverified","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/allocations/{allocationId}":{"get":{"summary":"SB-4 · an allocation's state (held | paying | sold | released) for the seating provider (API token, merchant:read). 404 allocation_not_found means Alyte never had it and will never charge it","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"allocationId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/payments":{"get":{"summary":"The tenant's payments, newest first by createdAt (API token, merchant:read). Poll with ?since=<ISO timestamp of the newest payment you have> to fetch only newer rows; dedupe by intentId.","tags":["integration"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Max rows (default 50, cap 200)."},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"since","required":false,"description":"Only payments created strictly AFTER this instant."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"payments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"intentId":{"type":"string"},"merchantId":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"scheme":{"type":"string"},"source":{"type":"string"},"status":{"type":"string"},"pspId":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"},"tierId":{"type":"string","description":"The paid ticket tier — fulfil on THIS, never by price-matching."},"quantity":{"type":"integer"},"reservationId":{"type":"string","description":"Set on a basket payment (one charge for several ticket types). On a basket, tierId/quantity describe only the lead line: fulfil each entry of lines."},"lines":{"type":"array","description":"The priced lines a basket payment paid for, from the quote the charge matched. A seated purchase (single-tier too) carries its lines with seats.","items":{"type":"object","additionalProperties":true,"properties":{"lineNo":{"type":"integer"},"tierId":{"type":"string"},"quantity":{"type":"integer"},"unitPriceMinor":{"type":"integer"},"subtotalMinor":{"type":"integer"},"seats":{"type":"array","description":"SB-4 · the seats the shop seating provider allocated to this line.","items":{"type":"object","additionalProperties":true,"properties":{"seatId":{"type":"string"},"section":{"type":"string"},"row":{"type":"string"},"number":{"type":"string"},"label":{"type":"string"}},"required":["seatId"]}}},"required":["lineNo","tierId","quantity"]}},"allocationId":{"type":"string","description":"SB-4 · set when a seating provider allocated seats: Alyte's reservation id, the provider's allocation key."},"buyerRef":{"type":"string","description":"Stable opaque buyer reference (byr_…) — never an email."}},"required":["intentId","status"]}}},"required":["payments"]}}}}}}},"/v1/integration/payments/{intentId}":{"get":{"summary":"One payment with its full durable event trail (API token, merchant:read)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"intentId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/webhooks":{"post":{"summary":"Register a webhook endpoint for payment.settled push (API token, merchant:write). Idempotent by active URL: re-registering an active URL returns the existing endpoint (HTTP 200, without re-exposing the secret). On first creation (HTTP 201), the signing secret is returned ONCE — store it like a password. Delivery is at-least-once; dedupe by eventId (the intentId). Verify: alyte-signature: t=<unix>,v1=hex(hmac_sha256(secret, \"<t>.<rawBody>\")).","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"HTTPS endpoint (plain http localhost allowed on sandbox rings only). At most 3 active endpoints per tenant."},"description":{"type":"string"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"webhook":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","url"]},"existing":{"type":"boolean","description":"True when an active endpoint for this URL already existed."}},"required":["webhook","existing"]}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"webhook":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","url"]},"secret":{"type":"string","description":"The signing secret (whsec_…). Shown ONLY in this response."}},"required":["webhook","secret"]}}}}}},"get":{"summary":"List webhook endpoints — never includes secrets (API token, merchant:read)","tags":["integration"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"webhooks":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"description":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","url"]}}},"required":["webhooks"]}}}}}}},"/v1/integration/webhooks/{id}":{"delete":{"summary":"Disable an active webhook endpoint (delivery stops immediately), or remove an already-disabled endpoint (API token, merchant:write)","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/webhooks/{id}/rotate-secret":{"post":{"summary":"Rotate an endpoint's signing secret — the new secret is returned ONCE; the old one stops verifying immediately (API token, merchant:write). Use after a secret is exposed; the endpoint id and any queued retries are preserved.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"webhook":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"}},"required":["id"]},"secret":{"type":"string","description":"The NEW signing secret (whsec_…). Shown ONLY in this response."}},"required":["secret"]}}}}}}},"/v1/integration/webhooks/{id}/test":{"post":{"summary":"Send a TEST delivery to this endpoint — same signed pipeline as a real event, so you can verify your signature check before a live purchase (API token, merchant:write). Event type is `webhook.test` and carries NO payment data: never fulfil on it.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"ok":{"type":"boolean"},"deliveryId":{"type":"string"}},"required":["ok"]}}}}}}},"/v1/integration/watches":{"get":{"summary":"ONE buyer's queued purchases at your shops (API token, merchant:read). `buyerRef` is the buyer id you received when you minted their session (`byr_…`). Lists only watches in YOUR account, never the same buyer's watches at another merchant. `status=active` (default) returns waiting, paused, being-bought (`firing`) and awaiting-approval (`awaiting_sca`) watches; `status=all` adds the history (fired, failed, cancelled, expired). Newest first; pass `nextCursor` back as `cursor` for the next page. Read only: cancelling stays with the buyer on Alyte's page.","tags":["integration"],"parameters":[{"schema":{"type":"string","pattern":"^byr_[0-9a-f]{16}$"},"in":"query","name":"buyerRef","required":true,"description":"The buyer id from the session mint (byr_ + 16 hex)."},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"merchantId","required":false,"description":"Only this shop (it must be in your account)."},{"schema":{"type":"string","enum":["active","all"],"default":"active"},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"cursor","required":false,"description":"The previous page's nextCursor."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"watches":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string"},"merchantId":{"type":"string"},"tierId":{"type":"string"},"tierTitle":{"type":"string"},"eventTitle":{"type":"string"},"quantity":{"type":"integer"},"fillPolicy":{"type":"string"},"minQuantity":{"type":"integer"},"filledQuantity":{"type":"integer"},"remainingQuantity":{"type":"integer"},"cumulativeChargeMinor":{"type":"integer"},"agentId":{"type":"string"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"waitingReason":{"type":"string"},"nextEligibleAt":{"type":"string"}},"required":["id","status","tierId","quantity","createdAt"]}},"nextCursor":{"type":"string"}},"required":["watches"]}}}}}}},"/v1/integration/watches/{watchId}":{"get":{"summary":"What happened to a queued purchase (API token, merchant:read). Answers the case GET /payments/{intentId} cannot: most refusals happen BEFORE a payment exists, so a failed watch has no intentId. Returns the watch, a plain-language outcome, the typed refusal reason, and the linked payment when one was produced. `deliveries` lists every webhook attempt for this watch (status/attempts/lastError), so you can tell a never-sent event from one your endpoint rejected. Note merchantFulfilment/buyerNotified are always `unknown` — Alyte records webhook DELIVERY, not whether you issued a ticket.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"watchId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"watch":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string"},"tierId":{"type":"string"},"tierTitle":{"type":"string"},"eventTitle":{"type":"string"},"quantity":{"type":"integer"},"fillPolicy":{"type":"string"},"minQuantity":{"type":"integer"},"filledQuantity":{"type":"integer"},"remainingQuantity":{"type":"integer"},"cumulativeChargeMinor":{"type":"integer"},"fills":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"fillNo":{"type":"integer"},"intentId":{"type":"string"},"quantity":{"type":"integer"},"chargeMinor":{"type":"integer"},"currency":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string"},"settledAt":{"type":"string"}},"required":["fillNo","intentId","quantity","chargeMinor","currency","status"]}},"agentId":{"type":"string"},"buyerRef":{"type":"string"}},"required":["id","status"]},"outcome":{"type":"object","additionalProperties":true,"properties":{"summary":{"type":"string"},"terminal":{"type":"boolean"}},"required":["summary"]},"payment":{"type":"object","additionalProperties":true,"properties":{"intentId":{"type":"string"},"status":{"type":"string"}}},"deliveries":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"eventType":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"attempts":{"type":"integer"},"lastError":{"type":"string"},"createdAt":{"type":"string"},"deliveredAt":{"type":"string"}},"required":["id","status"]}}},"required":["watch","outcome"]}}}}}}},"/v1/integration/merchants/{id}/attempts":{"get":{"summary":"DRILL-DOWN behind the purchase-outcome counts (API token, merchant:read). The insights tiles say how many attempts succeeded or were refused; this says WHICH, with the tier, quantity, typed refusal reason and timestamp — so \"Failed or refused: 3\" can be investigated without asking us to query the database. Optional ?outcome=successful|failed|pending filters. Reporting only: no buyer identity, no agent id, no card data. A `pending` row with resolvedWithoutPayment=true is NOT still in flight — its hold expired or was released and no payment was ever created.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"attempts":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string"},"outcome":{"type":"string"},"reason":{"type":"string"},"at":{"type":"string"},"tierId":{"type":"string"},"tierTitle":{"type":"string"},"eventTitle":{"type":"string"},"quantity":{"type":"integer"},"unitPriceMinor":{"type":"integer"},"resolvedWithoutPayment":{"type":"boolean"},"holdStatus":{"type":"string"}},"required":["key","outcome","at"]}}},"required":["attempts"]}}}}}}},"/v1/integration/merchants/{id}/selftest":{"post":{"summary":"SELF-TEST your integration (API token, merchant:write) — answers \"is my wiring correct?\" without clicking through the buyer page in a frame. Checks the shop, that a payment provider is linked AND its stored credential resolves, that something is buyable, that a webhook endpoint is registered, and sends one REAL signed test delivery to confirm your endpoint accepts it. NO purchase is attempted: a synthetic buy would bill you on the append-only event log and consume real ticket stock, so this proves the wiring a charge depends on, not that a charge will authorize. Each failing check carries a concrete remediation.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"merchantId":{"type":"string"},"ranAt":{"type":"string"},"ok":{"type":"boolean"},"scope":{"type":"string"},"checks":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"detail":{"type":"string"},"remediation":{"type":"string"}},"required":["id","status","detail"]}}},"required":["merchantId","ok","checks"]}}}}}}},"/v1/integration/merchants/{id}/insights":{"get":{"summary":"Agent adoption + watch demand for a shop (API token, merchant:read): agents created under your account (total / by kind / ready-to-buy) and per-tier watch queue counts — how many buyers are in line or waiting for a drop. Counts only, never buyer identities.","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"agents":{"type":"object","additionalProperties":true,"properties":{"total":{"type":"integer"},"alyte":{"type":"integer"},"byoa":{"type":"integer"},"readyToBuy":{"type":"integer"}},"required":["total"]},"watches":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"tierId":{"type":"string"},"tierTitle":{"type":"string"},"eventTitle":{"type":"string"},"queued":{"type":"integer"},"fired":{"type":"integer"},"failed":{"type":"integer"},"cancelled":{"type":"integer"},"expired":{"type":"integer"}},"required":["tierId","queued"]}}},"required":["agents","watches"]}}}}}}},"/v1/integration/merchants/{id}/demand-book":{"get":{"summary":"Shop-wide queued demand book (API token, merchant:read): waits per tier split into list-price waits (`available`) and descending integer minor-unit `priceTargets` bands with cumulative units, plus a separate `basketPriceTargets` summary for multi-line basket price watches. Queued demand is NOT committed funds or spend authority. Counts only — zero buyer identities; production applies a k = 3 band threshold.","tags":["integration"],"parameters":[{"schema":{"type":"boolean","default":false},"in":"query","name":"includePaused","required":false,"description":"Include paused watches alongside queued watches (default false)."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"eventId","required":false,"description":"Filter to tiers belonging to one event."},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"tierId","required":false,"description":"Filter to one tier."},{"schema":{"type":"integer","minimum":100,"maximum":100000},"in":"query","name":"bandMinor","required":false,"description":"Override price-band width in integer minor units (100–100000)."},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"merchantId":{"type":"string"},"asOf":{"type":"string"},"kMin":{"type":"integer"},"includePaused":{"type":"boolean"},"truncated":{"type":"boolean"},"basketPriceTargets":{"type":"object","additionalProperties":true,"properties":{"watches":{"type":"integer"},"units":{"type":"integer"}},"required":["watches","units"]},"tiers":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"tierId":{"type":"string"},"eventId":{"type":"string"},"eventTitle":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string"},"currentPriceMinor":{"type":"integer"},"available":{"type":"object","additionalProperties":true,"properties":{"watches":{"type":"integer"},"units":{"type":"integer"},"byReason":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["watches","units","byReason"]},"priceTargets":{"type":"object","additionalProperties":true,"properties":{"watches":{"type":"integer"},"units":{"type":"integer"},"bandWidthMinor":{"type":"integer"},"bands":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"minMinor":{"type":"integer"},"maxMinor":{"type":"integer"},"watches":{"type":"integer"},"units":{"type":"integer"},"cumulativeUnits":{"type":"integer"}},"required":["minMinor","maxMinor","watches","units","cumulativeUnits"]}}},"required":["watches","units","bands"]}},"required":["tierId","eventId","title","currency","currentPriceMinor","available","priceTargets"]}}},"required":["merchantId","asOf","tiers","basketPriceTargets"]}}}}}}},"/v1/integration/merchants/{id}/offers":{"get":{"summary":"List private agent offers for a shop","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Create a private agent offer for waiting agents on one tier","tags":["integration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1,"maxLength":200},"offerPriceMinor":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"currency":{"type":"string","minLength":3,"maxLength":3},"maxUnits":{"type":"integer","minimum":1,"maximum":100000},"audience":{"type":"string","enum":["waiting_only"]},"includeAvailable":{"type":"boolean"},"startsAt":{"type":"string","minLength":1,"maxLength":100},"expiresAt":{"type":"string","minLength":1,"maxLength":100}},"required":["tierId","offerPriceMinor","maxUnits","expiresAt"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integration/merchants/{id}/offers/{offerId}":{"get":{"summary":"Inspect one private agent offer for a shop","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"offerId","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Cancel an active private agent offer","tags":["integration"],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"offerId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/ap2/purchase":{"post":{"summary":"Unsupported legacy AP2 purchase — verified checkout authorization is not available","tags":["ap2"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","minLength":1},"quantity":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":999},"instrumentToken":{"type":"string","minLength":1},"scheme":{"default":"visa","type":"string","enum":["visa","mastercard","amex"]},"geo":{"default":"DE","type":"string","minLength":2,"maxLength":2},"intentMandate":{"type":"object","properties":{"user_cart_confirmation_required":{"type":"boolean"},"natural_language_description":{"type":"string"},"merchants":{"type":"array","items":{"type":"string"}},"skus":{"type":"array","items":{"type":"string"}},"requires_refundability":{"type":"boolean"},"intent_expiry":{"type":"string","minLength":1}},"required":["user_cart_confirmation_required","natural_language_description","intent_expiry"]},"cartMandate":{"type":"object","properties":{"contents":{"type":"object","properties":{"id":{"type":"string","minLength":1},"user_cart_confirmation_required":{"type":"boolean"},"payment_request":{"type":"object","properties":{"details":{"type":"object","properties":{"id":{"type":"string"},"total":{"type":"object","properties":{"label":{"type":"string"},"amount":{"type":"object","properties":{"currency":{"type":"string"},"value":{"type":"string"}}}}}}}}},"cart_expiry":{"type":"string","minLength":1},"merchant_name":{"type":"string"}},"required":["id","payment_request","cart_expiry","merchant_name"]},"merchant_authorization":{"type":"string"}},"required":["contents"]},"userAuthorization":{"type":"string"}},"required":["tierId","instrumentToken","intentMandate","cartMandate"]}}}},"deprecated":true,"responses":{"200":{"description":"Default Response"}}}},"/mcp":{"post":{"summary":"MCP endpoint (Streamable HTTP) — the same buy-path tools over the Model Context Protocol (agent JWT, agent:run)","tags":["protocols"],"responses":{"200":{"description":"Default Response"}}}},"/v1/agent/run":{"post":{"summary":"Run the in-process Alyte agent over a natural-language goal (needs ANTHROPIC_API_KEY)","tags":["payments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string","minLength":1,"maxLength":2000}},"required":["goal"]}}}},"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"/","description":"this instance"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"catalog","description":"Shop / event / tier discovery"},{"name":"ticketing","description":"The purchase spine: quote → reserve → confirm"},{"name":"payments","description":"One-shot authorize + result reads"},{"name":"acp","description":"Agentic Commerce Protocol — checkout sessions (OpenAI ACP conformance)"},{"name":"vic","description":"Visa Intelligent Commerce — mandate-governed purchase-initiate (the VIC mandate is the spend authority)"},{"name":"signed-mandate","description":"Network signed-mandate (VIC / Mastercard Agent Pay shape) — a detached network signature over the mandate artefact is verified with real crypto before the spend authority is granted"},{"name":"ap2","description":"Legacy AP2 purchase — unsupported pending verified checkout authorization"},{"name":"buyer","description":"Buyer surface — magic-link identity, bring/create agents, card capture (PSP iframe), and mandates whose scope is locked server-side to the shop the session is for"},{"name":"discovery","description":"PUBLIC discovery (no auth) — the opt-in shop window + the ACP product feed. Only shops that flipped `discoverable` appear; everything else 404s."},{"name":"protocols","description":"Protocol adapters (MCP / A2A) over the same orchestrator as REST"},{"name":"integration","description":"Server-to-server merchant integration (API token) — e.g. minting buyer sessions for users the MERCHANT'S own auth has already verified"}]}