{"openapi":"3.1.0","info":{"title":"Fungies API","version":"2026-10-28"},"servers":[{"url":"https://api.stage.fungies.net","description":"The API. The key sets the workspace and whether it acts in live or test mode."}],"tags":[{"name":"Account","description":"What the key you send can do."},{"name":"Products","description":"The products of your catalogue."},{"name":"Variants","description":"The variants of a product."},{"name":"Offers","description":"What a buyer can buy: a variant at a price, one-off or recurring."},{"name":"Offer keys","description":"The key stock of an offer that sells keys."},{"name":"Tags","description":"Tags you put on products."},{"name":"Media","description":"Image uploads for products and variants."},{"name":"Discounts","description":"Sales and discount codes."},{"name":"Checkout sessions","description":"Hosted checkout links over your offers."},{"name":"Orders","description":"Orders and the files a buyer bought."},{"name":"Customers","description":"The buyers of your settled orders."},{"name":"Subscriptions","description":"Recurring offers a buyer subscribed to."},{"name":"Charges","description":"Off-session charges on a subscription, priced from your offers."},{"name":"Charge schedules","description":"Charges that run on a date or a cadence."},{"name":"Tax","description":"Tax quotes."},{"name":"Usage meters","description":"Meters that count your usage events."},{"name":"Usage events","description":"Usage you report, counted by your meters."},{"name":"Webhooks","description":"Test events and delivery retries for your webhook endpoints."},{"name":"Test helpers","description":"Test-mode acts that let you see your integration work end to end."}],"paths":{"/v1/charge-schedules":{"get":{"operationId":"chargeSchedules.list","tags":["Charge schedules"],"summary":"List charge schedules","description":"Charge schedules, a page at a time, filtered by subscription.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"subscriptionId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeSchedulePage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:read"]}]},"post":{"operationId":"chargeSchedules.create","tags":["Charge schedules"],"summary":"Create a charge schedule","description":"Schedules charges on a subscription: once at `oneShotAt`, or on a `cadence`, never both.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeScheduleCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeSchedule"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]}},"/v1/charge-schedules/{scheduleId}":{"get":{"operationId":"chargeSchedules.read","tags":["Charge schedules"],"summary":"Read a charge schedule","description":"One schedule with its newest runs, newest first.","parameters":[{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeScheduleDetail"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:read"]}]}},"/v1/charge-schedules/{scheduleId}/cancel":{"post":{"operationId":"chargeSchedules.cancel","tags":["Charge schedules"],"summary":"Cancel a charge schedule","description":"Ends the schedule; it runs no more.","parameters":[{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeSchedule"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]}},"/v1/charge-schedules/{scheduleId}/pause":{"post":{"operationId":"chargeSchedules.pause","tags":["Charge schedules"],"summary":"Pause a charge schedule","description":"Stops runs until the schedule is resumed.","parameters":[{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeSchedule"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]}},"/v1/charge-schedules/{scheduleId}/resume":{"post":{"operationId":"chargeSchedules.resume","tags":["Charge schedules"],"summary":"Resume a charge schedule","description":"Restarts runs of a paused schedule.","parameters":[{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeSchedule"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]}},"/v1/charges":{"post":{"operationId":"charges.create","tags":["Charges"],"summary":"Charge a subscription","description":"Charges the subscription’s payment method off-session for offer lines of your catalogue, never a free amount. A failure is a state of the charge, not an error.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargeCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Charge"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]}},"/v1/charges/{chargeId}":{"get":{"operationId":"charges.read","tags":["Charges"],"summary":"Read a charge","description":"One charge with its lines, tax and status.","parameters":[{"name":"chargeId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Charge"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:read"]}]}},"/v1/checkout-sessions":{"post":{"operationId":"checkoutSessions.create","tags":["Checkout sessions"],"summary":"Create a checkout session","description":"Creates a hosted checkout link over the offers named, each once. It is created active.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSession"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:write"]}]},"get":{"operationId":"checkoutSessions.list","tags":["Checkout sessions"],"summary":"List checkout sessions","description":"The workspace’s checkout sessions, a page at a time.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:read"]}]}},"/v1/customers":{"get":{"operationId":"customers.list","tags":["Customers"],"summary":"List customers","description":"Buyers of the workspace’s settled orders, a page at a time; `email` matches exactly.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceCustomerPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["customers:read"]}]}},"/v1/customers/{customerId}":{"get":{"operationId":"customers.read","tags":["Customers"],"summary":"Read a customer","description":"One customer by its id.","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceCustomer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["customers:read"]}]}},"/v1/customers/{customerId}/inventory":{"get":{"operationId":"customers.inventory","tags":["Customers"],"summary":"List a customer’s purchases","description":"What the customer holds: each purchased offer with its order, a page at a time.","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"productKind","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceInventoryPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["customers:read"]}]}},"/v1/discounts":{"get":{"operationId":"discounts.list","tags":["Discounts"],"summary":"List discounts","description":"Discounts, a page at a time, filtered by the query fields listed; a repeated field matches any of its values.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"archived","in":"query","required":false,"schema":{"type":"string"}},{"name":"expired","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["discounts:read"]}]},"post":{"operationId":"discounts.create","tags":["Discounts"],"summary":"Create a discount","description":"Creates a sale or a code discount, a percentage or a fixed amount, over all offers or the ones named, valid in a window.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["discounts:write"]}]}},"/v1/discounts/{discountId}":{"get":{"operationId":"discounts.read","tags":["Discounts"],"summary":"Read a discount","description":"One discount by its id.","parameters":[{"name":"discountId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["discounts:read"]}]},"patch":{"operationId":"discounts.update","tags":["Discounts"],"summary":"Update a discount","description":"Changes the fields sent and leaves the rest. Send `expectedUpdatedAt` as the `updatedAt` you last read; a row changed since is refused with `STALE_WRITE` and the current row.","parameters":[{"name":"discountId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountUpdate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["discounts:write"]}]}},"/v1/discounts/{discountId}/archive":{"post":{"operationId":"discounts.archive","tags":["Discounts"],"summary":"Archive a discount","description":"Archives the discount.","parameters":[{"name":"discountId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["discounts:write"]}]}},"/v1/media-uploads":{"post":{"operationId":"media.sign","tags":["Media"],"summary":"Start an image upload","description":"Returns a signed upload: POST the file to `uploadUrl` with `uploadFields`, then set `mediaKey` on the product or variant. PNG, JPEG or WebP, at most 10 MiB.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUpload"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/meters":{"post":{"operationId":"meters.create","tags":["Usage meters"],"summary":"Create a meter","description":"Creates a meter that counts events of one name with one aggregation.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeterCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeter"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:write"]}]},"get":{"operationId":"meters.list","tags":["Usage meters"],"summary":"List meters","description":"Meters, a page at a time; archived ones only with `includeArchived`.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"includeArchived","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeterList"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:read"]}]}},"/v1/meters/{meterId}":{"get":{"operationId":"meters.read","tags":["Usage meters"],"summary":"Read a meter","description":"One meter by its id.","parameters":[{"name":"meterId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeter"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:read"]}]}},"/v1/meters/{meterId}/archive":{"post":{"operationId":"meters.archive","tags":["Usage meters"],"summary":"Archive a meter","description":"Archives the meter.","parameters":[{"name":"meterId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeter"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:write"]}]}},"/v1/meters/{meterId}/restore":{"post":{"operationId":"meters.restore","tags":["Usage meters"],"summary":"Restore a meter","description":"Brings an archived meter back.","parameters":[{"name":"meterId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageMeter"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:write"]}]}},"/v1/offers":{"post":{"operationId":"offers.create","tags":["Offers"],"summary":"Create an offer","description":"Creates an offer of a variant at a price in the workspace’s currency.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/offers/{offerId}":{"patch":{"operationId":"offers.update","tags":["Offers"],"summary":"Update an offer","description":"Changes the fields sent and leaves the rest. Send `expectedUpdatedAt` as the `updatedAt` you last read; a row changed since is refused with `STALE_WRITE` and the current row.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferUpdate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]},"get":{"operationId":"offers.read","tags":["Offers"],"summary":"Read an offer","description":"One offer by its id.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]}]}},"/v1/offers/{offerId}/archive":{"post":{"operationId":"offers.archive","tags":["Offers"],"summary":"Archive an offer","description":"Takes the offer off sale. Repeating it returns the row as it stands.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/offers/{offerId}/keys":{"post":{"operationId":"offerKeys.add","tags":["Offer keys"],"summary":"Add keys","description":"Adds keys to the offer’s stock. The answer counts each key sent by what became of it; key text never comes back.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferKeysAdd"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferKeysAdded"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/offers/{offerId}/keys/remove-unsold":{"post":{"operationId":"offerKeys.removeUnsold","tags":["Offer keys"],"summary":"Remove unsold keys","description":"Removes every unsold key from the offer’s stock.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferKeysRemoved"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/offers/{offerId}/keys/{keyId}/remove":{"post":{"operationId":"offerKeys.remove","tags":["Offer keys"],"summary":"Remove a key","description":"Removes one key from the stock. A sold key is never removed, so `removed` may be 0.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferKeysRemoved"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/offers/{offerId}/restore":{"post":{"operationId":"offers.restore","tags":["Offers"],"summary":"Restore an offer","description":"Brings an archived offer back. Repeating it returns the row as it stands.","parameters":[{"name":"offerId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/orders":{"get":{"operationId":"orders.list","tags":["Orders"],"summary":"List orders","description":"Orders, a page at a time. Filters match exactly; `status` repeats as any of, and `createdFrom` (inclusive) to `createdTo` (exclusive) is the one range.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"number","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"country","in":"query","required":false,"schema":{"type":"string"}},{"name":"disputed","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdFrom","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdTo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceOrderPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/orders/{orderId}":{"get":{"operationId":"orders.read","tags":["Orders"],"summary":"Read an order","description":"One order with its lines and its buyer.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceOrder"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/orders/{orderId}/breakdown":{"get":{"operationId":"orders.breakdown","tags":["Orders"],"summary":"Explain an order’s money","description":"Each charge, refund, chargeback and transfer of the order, oldest first, with the Fungies fee, the tax remitted and your net. `absent` names what the legs cannot state.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceOrderBreakdown"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/orders/{orderId}/disputes":{"get":{"operationId":"orders.disputes","tags":["Orders"],"summary":"List an order’s disputes","description":"The order’s chargebacks, newest first: the amount disputed, what the reversal took and what it left owing.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceOrderDisputes"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/orders/{orderId}/documents":{"get":{"operationId":"orders.documents","tags":["Orders"],"summary":"Read an order’s documents","description":"The order’s invoice and its credit notes as issued, with the buyer’s billing as printed.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceOrderDocuments"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/orders/{orderId}/items/{itemId}/download":{"post":{"operationId":"orders.downloadItem","tags":["Orders"],"summary":"Get an item’s download link","description":"A short-lived link to the file of one line of a paid order. `itemId` is the line’s `items[].id`.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDownloadRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDownload"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:write"]}]}},"/v1/orders/{orderId}/refund-preview":{"get":{"operationId":"orders.refundPreview","tags":["Orders"],"summary":"Preview a refund","description":"What a refund of the order would move, before you ask for one, and why it would be refused now. Leave out `amount` for the rest of the order; every figure is in the order’s currency.","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"amount","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceRefundPreview"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/payments":{"get":{"operationId":"payments.list","tags":["Orders"],"summary":"List payments","description":"Payments of the workspace, a page at a time, filtered by the query fields listed.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"number","in":"query","required":false,"schema":{"type":"string"}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}},{"name":"disputed","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdFrom","in":"query","required":false,"schema":{"type":"string"}},{"name":"createdTo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercePaymentPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/payments/{paymentId}":{"get":{"operationId":"payments.read","tags":["Orders"],"summary":"Read a payment","description":"One payment by its id. A payment this workspace does not hold is refused with `PAYMENT_NOT_FOUND`.","parameters":[{"name":"paymentId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommercePayment"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["orders:read"]}]}},"/v1/products":{"get":{"operationId":"products.list","tags":["Products"],"summary":"List products","description":"Products of the catalogue, a page at a time, filtered by the query fields listed.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"archived","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]}]},"post":{"operationId":"products.create","tags":["Products"],"summary":"Create a product","description":"Creates a product. Add its variants and offers with their own operations.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}":{"get":{"operationId":"products.read","tags":["Products"],"summary":"Read a product","description":"One product with its variants and offers.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"includeArchived","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDetail"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]}]},"patch":{"operationId":"products.update","tags":["Products"],"summary":"Update a product","description":"Changes the fields sent and leaves the rest. Send `expectedUpdatedAt` as the `updatedAt` you last read; a row changed since is refused with `STALE_WRITE` and the current row.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/archive":{"post":{"operationId":"products.archive","tags":["Products"],"summary":"Archive a product","description":"Archives the product. Send `archiveOffers: true` to archive the offers that name it in the same write. Repeating it returns the row as it stands.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/duplicate":{"post":{"operationId":"products.duplicate","tags":["Products"],"summary":"Duplicate a product","description":"Creates a new product copied from this one, with its tags, and copies its cover and gallery images onto it.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/reorder-variants":{"post":{"operationId":"variants.reorder","tags":["Variants"],"summary":"Reorder variants","description":"Sets the order of the product’s variants. Name every live variant once, each with its `expectedUpdatedAt`.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantReorder"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantList"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/restore":{"post":{"operationId":"products.restore","tags":["Products"],"summary":"Restore a product","description":"Brings an archived product back. Repeating it returns the row as it stands.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/status":{"post":{"operationId":"products.setStatus","tags":["Products"],"summary":"Set a product’s status","description":"Sets the product’s status to the one sent.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductStatusRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/products/{productId}/variants":{"post":{"operationId":"variants.create","tags":["Variants"],"summary":"Create a variant","description":"Adds a variant to the product.","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variant"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/readiness":{"get":{"operationId":"readiness.read","tags":["Account"],"summary":"Read what keeps the workspace from selling","description":"The codes that say whether the workspace can sell, and whether each one blocks it. Any scope can read it.","parameters":[],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Readiness"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]},{"bearer":["catalogue:write"]},{"bearer":["orders:read"]},{"bearer":["orders:write"]},{"bearer":["customers:read"]},{"bearer":["customers:write"]},{"bearer":["subscriptions:read"]},{"bearer":["subscriptions:write"]},{"bearer":["charges:read"]},{"bearer":["charges:write"]},{"bearer":["usage:read"]},{"bearer":["usage:write"]},{"bearer":["webhooks:read"]},{"bearer":["webhooks:write"]},{"bearer":["discounts:read"]},{"bearer":["discounts:write"]},{"bearer":["test-helpers:write"]}]}},"/v1/subscriptions":{"get":{"operationId":"subscriptions.list","tags":["Subscriptions"],"summary":"List subscriptions","description":"Subscriptions, a page at a time, filtered by status or customer.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"customerId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceSubscriptionPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["subscriptions:read"]}]}},"/v1/subscriptions/{subscriptionId}":{"get":{"operationId":"subscriptions.read","tags":["Subscriptions"],"summary":"Read a subscription","description":"One subscription by its id.","parameters":[{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommerceSubscription"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["subscriptions:read"]}]}},"/v1/subscriptions/{subscriptionId}/cancel":{"post":{"operationId":"subscriptions.cancel","tags":["Subscriptions"],"summary":"Cancel a subscription","description":"Cancels now, or at the end of the period with `atPeriodEnd: true`. A cancel refunds nothing.","parameters":[{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCancel"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionAnswer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["subscriptions:write"]}]}},"/v1/subscriptions/{subscriptionId}/end-trial":{"post":{"operationId":"subscriptions.endTrial","tags":["Subscriptions"],"summary":"End a trial","description":"Ends the subscription’s trial now.","parameters":[{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionEndTrial"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionAnswer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["subscriptions:write"]}]}},"/v1/subscriptions/{subscriptionId}/pause":{"post":{"operationId":"subscriptions.pause","tags":["Subscriptions"],"summary":"Pause a subscription","description":"Pauses collection, until `resumeAt` when sent, else until a later write.","parameters":[{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPause"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionAnswer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["subscriptions:write"]}]}},"/v1/tags":{"get":{"operationId":"tags.list","tags":["Tags"],"summary":"List tags","description":"The workspace’s tags, a page at a time.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]}]},"post":{"operationId":"tags.create","tags":["Tags"],"summary":"Create a tag","description":"Creates a tag. A name a live tag holds is refused with that tag.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tag"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/tax-calculations":{"post":{"operationId":"taxCalculations.create","tags":["Tax"],"summary":"Calculate tax","description":"Quotes the tax on an offer for a buyer’s location and, for a company, its tax number. Nothing is written.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxCalculationRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxCalculation"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["charges:read"]}]}},"/v1/test-helpers/purchases":{"post":{"operationId":"testPurchases.create","tags":["Test helpers"],"summary":"Make a test purchase","description":"Buys a published checkout in test mode with a test card, end to end: the order, its tax and its invoice, and the buyer’s receipt. Takes a test-mode key with `test-helpers:write`, a scope only a test-mode key can hold.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPurchaseCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPurchase"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["test-helpers:write"]}]}},"/v1/usage-events":{"post":{"operationId":"usageEvents.create","tags":["Usage events"],"summary":"Report usage events","description":"Takes a batch of events. `202` means the batch is queued, not yet counted; a retry of the same batch under the same key answers the same id.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEventsIngest"}}}},"responses":{"202":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEventsAccepted"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:write"]}]},"get":{"operationId":"usageEvents.list","tags":["Usage events"],"summary":"List usage events","description":"Events one meter counted, a page at a time; `meterId` is required.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}},{"name":"meterId","in":"query","required":false,"schema":{"type":"string"}},{"name":"occurredFrom","in":"query","required":false,"schema":{"type":"string"}},{"name":"occurredTo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEventList"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:read"]}]}},"/v1/usage-events/{eventId}":{"get":{"operationId":"usageEvents.read","tags":["Usage events"],"summary":"Read a usage event","description":"One usage event by its id.","parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEvent"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["usage:read"]}]}},"/v1/variants/{variantId}":{"patch":{"operationId":"variants.update","tags":["Variants"],"summary":"Update a variant","description":"Changes the fields sent and leaves the rest. Send `expectedUpdatedAt` as the `updatedAt` you last read; a row changed since is refused with `STALE_WRITE` and the current row.","parameters":[{"name":"variantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantUpdate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variant"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]},"get":{"operationId":"variants.read","tags":["Variants"],"summary":"Read a variant","description":"One variant by its id.","parameters":[{"name":"variantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variant"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]}]}},"/v1/variants/{variantId}/archive":{"post":{"operationId":"variants.archive","tags":["Variants"],"summary":"Archive a variant","description":"Archives the variant. Send `archiveOffers: true` to archive the offers that name it in the same write. Repeating it returns the row as it stands.","parameters":[{"name":"variantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variant"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/variants/{variantId}/restore":{"post":{"operationId":"variants.restore","tags":["Variants"],"summary":"Restore a variant","description":"Brings an archived variant back. Repeating it returns the row as it stands.","parameters":[{"name":"variantId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variant"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:write"]}]}},"/v1/webhook-deliveries/{deliveryId}/retry":{"post":{"operationId":"webhookDeliveries.retry","tags":["Webhooks"],"summary":"Retry a delivery","description":"Sends a settled delivery again, inside its replay window.","parameters":[{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]}},"/v1/webhook-endpoints":{"get":{"operationId":"webhookEndpoints.list","tags":["Webhooks"],"summary":"List webhook endpoints","description":"The workspace’s webhook endpoints, a page at a time.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointPage"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]},"post":{"operationId":"webhookEndpoints.create","tags":["Webhooks"],"summary":"Create a webhook endpoint","description":"Adds an endpoint that receives the event types it subscribes to. The URL must be HTTPS on port 443 to a public host.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreated"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]}},"/v1/webhook-endpoints/{endpointId}":{"get":{"operationId":"webhookEndpoints.read","tags":["Webhooks"],"summary":"Read a webhook endpoint","description":"One endpoint by its id.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}}],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]},"patch":{"operationId":"webhookEndpoints.update","tags":["Webhooks"],"summary":"Update a webhook endpoint","description":"Changes the URL, the subscribed event types or the description of an endpoint.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]}},"/v1/webhook-endpoints/{endpointId}/remove":{"post":{"operationId":"webhookEndpoints.remove","tags":["Webhooks"],"summary":"Remove a webhook endpoint","description":"Removes the endpoint; it receives no more events.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyRequest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointRemoved"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]}},"/v1/webhook-endpoints/{endpointId}/test":{"post":{"operationId":"webhookEndpoints.test","tags":["Webhooks"],"summary":"Send a test event","description":"Sends the endpoint one sample event of a type it subscribes to, with `liveMode: false`.","parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]{1,64}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255},"description":"Names the act so a retry under it lands on the stored answer (idempotency-key)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTest"}}}},"responses":{"2XX":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestAnswer"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["webhooks:write"]}]}},"/v1/whoami":{"get":{"operationId":"whoami.read","tags":["Account"],"summary":"Read the key","description":"The workspace and mode the key acts in and the scopes it holds. Any scope can read it.","parameters":[],"responses":{"200":{"description":"Success","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Whoami"}}}},"default":{"description":"An error. Branch on `code`; `type` links its page in the error reference.","headers":{"Fungies-Version":{"description":"The key's pinned API version; before a key is verified, the newest.","schema":{"type":"string","enum":["2026-10-28"]}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"security":[{"bearer":["catalogue:read"]},{"bearer":["catalogue:write"]},{"bearer":["orders:read"]},{"bearer":["orders:write"]},{"bearer":["customers:read"]},{"bearer":["customers:write"]},{"bearer":["subscriptions:read"]},{"bearer":["subscriptions:write"]},{"bearer":["charges:read"]},{"bearer":["charges:write"]},{"bearer":["usage:read"]},{"bearer":["usage:write"]},{"bearer":["webhooks:read"]},{"bearer":["webhooks:write"]},{"bearer":["discounts:read"]},{"bearer":["discounts:write"]},{"bearer":["test-helpers:write"]}]}}},"components":{"schemas":{"ArchiveRequest":{"type":"object","properties":{"archiveOffers":{"type":"boolean"}},"additionalProperties":false},"ChargeCreate":{"type":"object","properties":{"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999}},"required":["offerId","quantity"],"additionalProperties":false}}},"required":["subscriptionId","lines"],"additionalProperties":false},"ChargeScheduleCreate":{"type":"object","properties":{"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"instrument":{"type":"string","minLength":1,"maxLength":128},"amountSource":{"type":"string","minLength":1,"maxLength":64},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999}},"required":["offerId","quantity"],"additionalProperties":false}},"oneShotAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"cadence":{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":12},"anchorAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["unit","count","anchorAt"],"additionalProperties":false},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"maxRuns":{"type":"integer","minimum":1,"maximum":1000}},"required":["subscriptionId"],"additionalProperties":false},"CheckoutSessionCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"offerIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"}}},"required":["name","offerIds"],"additionalProperties":false},"DiscountCreate":{"type":"object","properties":{"type":{"type":"string","enum":["code","sale"]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"value":{"type":"integer","minimum":1,"maximum":9007199254740991},"valueType":{"type":"string","enum":["fixed","percentage"]},"code":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"validFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"validUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"purchaseLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"includedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"excludedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"appliesToAllOffers":{"type":"boolean"},"active":{"type":"boolean"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["type","value","valueType","currency","validFrom","timezone"],"additionalProperties":false},"DiscountUpdate":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"value":{"type":"integer","minimum":1,"maximum":9007199254740991},"valueType":{"type":"string","enum":["fixed","percentage"]},"code":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"validFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"validUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"purchaseLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"includedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"excludedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"appliesToAllOffers":{"type":"boolean"},"active":{"type":"boolean"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["expectedUpdatedAt"],"additionalProperties":false},"EmptyRequest":{"type":"object","properties":{},"additionalProperties":false},"ItemDownloadRequest":{"type":"object","properties":{"expiresIn":{"type":"integer","minimum":1,"maximum":86400}},"additionalProperties":false},"MediaUploadRequest":{"type":"object","properties":{"target":{"type":"string","enum":["product","variant","offer"]},"targetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slot":{"type":"string","enum":["cover","gallery"]},"contentType":{"type":"string","minLength":1,"maxLength":100},"byteSize":{"type":"integer","minimum":1,"maximum":2147483647}},"required":["target","targetId","slot","contentType","byteSize"],"additionalProperties":false},"OfferCreate":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variantId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"platform":{"type":"string","enum":["global","meta_quest","tv","music","tidal","tinder","zalando","razer","netflix","spotify","walmart","amazon","food","prepaid","steam","xbox_live","origin","psn","ubisoft_connect","nintendo","official_website","gog_com","epic_games","windows_store","battle_net","riot_games","steam_gift_card","roblox","green_gift","ea_app","rockstar_games_launcher","arenanet","pubg","app_store","google_play","mobile","other","rockstar"]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":150},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"originalPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"recurringInterval":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}]},"recurringIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":1095},{"type":"null"}]},"trialInterval":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}]},"trialIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":1095},{"type":"null"}]},"stockLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"region":{"anyOf":[{"type":"string","enum":["global","europe","argentina","united_states","turkey","united_kingdom","latin_america","brazil","canada","mexico","germany","colombia","france","saudi_arabia","australia","spain","india","italy","netherlands","united_arab_emirates","north_america","poland","belgium","asia","egypt","austria","singapore","emea","ireland","ru_cis","sweden","portugal","switzerland","new_zealand","malaysia","finland","greece","norway","denmark","japan","hong_kong","philippines","middle_east","indonesia","czech_republic","south_africa","south_korea","luxembourg","slovakia","romania","slovenia","hungary","chile","nigeria","thailand","kuwait","vietnam","rest_of_the_world","bahrain","qatar"]},{"type":"null"}]},"gtin":{"anyOf":[{"type":"string","pattern":"^(?:\\d{8}|\\d{12,14})$"},{"type":"null"}]},"warningMessage":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"mutableQuantity":{"type":["boolean","null"]}},"required":["productId","price"],"additionalProperties":false},"OfferKeysAdd":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1,"maxLength":1024}}},"required":["keys"],"additionalProperties":false},"OfferUpdate":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"price":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"platform":{"anyOf":[{"type":"string","enum":["global","meta_quest","tv","music","tidal","tinder","zalando","razer","netflix","spotify","walmart","amazon","food","prepaid","steam","xbox_live","origin","psn","ubisoft_connect","nintendo","official_website","gog_com","epic_games","windows_store","battle_net","riot_games","steam_gift_card","roblox","green_gift","ea_app","rockstar_games_launcher","arenanet","pubg","app_store","google_play","mobile","other","rockstar"]},{"type":"null"}]},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"name":{"anyOf":[{"type":"string","minLength":1,"maxLength":150},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"originalPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"recurringInterval":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}]},"recurringIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":1095},{"type":"null"}]},"trialInterval":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}]},"trialIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":1095},{"type":"null"}]},"stockLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"region":{"anyOf":[{"type":"string","enum":["global","europe","argentina","united_states","turkey","united_kingdom","latin_america","brazil","canada","mexico","germany","colombia","france","saudi_arabia","australia","spain","india","italy","netherlands","united_arab_emirates","north_america","poland","belgium","asia","egypt","austria","singapore","emea","ireland","ru_cis","sweden","portugal","switzerland","new_zealand","malaysia","finland","greece","norway","denmark","japan","hong_kong","philippines","middle_east","indonesia","czech_republic","south_africa","south_korea","luxembourg","slovakia","romania","slovenia","hungary","chile","nigeria","thailand","kuwait","vietnam","rest_of_the_world","bahrain","qatar"]},{"type":"null"}]},"gtin":{"anyOf":[{"type":"string","pattern":"^(?:\\d{8}|\\d{12,14})$"},{"type":"null"}]},"warningMessage":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"mutableQuantity":{"type":["boolean","null"]},"tagIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["expectedUpdatedAt"],"additionalProperties":false},"ProductCreate":{"type":"object","properties":{"kind":{"type":"string","enum":["digital_download","game","gift_card","software_key","virtual_currency","virtual_item","subscription","one_time_payment"]},"name":{"type":"string","minLength":1,"maxLength":150},"status":{"type":"string","enum":["draft","active","hidden"]},"description":{"type":"string","maxLength":16384},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"redeemMessage":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"genres":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","enum":["action","action_rpg","adventure","arcade","arcade_racing","battle_royale","beat_em_up","board_game","card_game","casual","co_op","educational","fighting","fps","horror","indie","interactive_story","japanese_rpg","logic_game","mmo","management","metroidvania","mini_games","multiplayer","open_world","party","platformer","puzzle","rpg","racing","real_time_strategy","roguelike","rhythm","sandbox","shooter","simulation","simulation_racing","sports","strategy","survival","tactical_rpg","tps","turn_based_strategy","visual_novel","point_and_click","interactive_fiction","hidden_object"]}},{"type":"null"}]},"systems":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]}},{"type":"null"}]},"requirements":{"anyOf":[{"type":"object","properties":{"minimum":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]},"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["system","name","value"],"additionalProperties":false}},"recommended":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]},"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["system","name","value"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},"developer":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"publisher":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"pegiRating":{"anyOf":[{"type":"string","enum":["pegi_3","pegi_7","pegi_12","pegi_16","pegi_18","parental_guidance"]},{"type":"null"}]},"releasedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"features":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256}},"required":["value"],"additionalProperties":false}},{"type":"null"}]}},"required":["kind","name"],"additionalProperties":false},"ProductStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["draft","active","hidden"]}},"required":["status"],"additionalProperties":false},"ProductUpdate":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"name":{"type":"string","minLength":1,"maxLength":150},"description":{"type":"string","maxLength":16384},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"redeemMessage":{"anyOf":[{"type":"string","minLength":1,"maxLength":4096},{"type":"null"}]},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"gallery":{"anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":1024},"blurHash":{"anyOf":[{"type":"string","pattern":"^[0-9A-Za-z#$%*+,\\-.:;=?@[\\]^_{|}~]{6,64}$"},{"type":"null"}]}},"required":["key"],"additionalProperties":false}},{"type":"null"}]},"coverVideoUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"featureCoverVideo":{"type":["boolean","null"]},"genres":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","enum":["action","action_rpg","adventure","arcade","arcade_racing","battle_royale","beat_em_up","board_game","card_game","casual","co_op","educational","fighting","fps","horror","indie","interactive_story","japanese_rpg","logic_game","mmo","management","metroidvania","mini_games","multiplayer","open_world","party","platformer","puzzle","rpg","racing","real_time_strategy","roguelike","rhythm","sandbox","shooter","simulation","simulation_racing","sports","strategy","survival","tactical_rpg","tps","turn_based_strategy","visual_novel","point_and_click","interactive_fiction","hidden_object"]}},{"type":"null"}]},"systems":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]}},{"type":"null"}]},"requirements":{"anyOf":[{"type":"object","properties":{"minimum":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]},"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["system","name","value"],"additionalProperties":false}},"recommended":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","enum":["windows","macos","linux","playstation_4","playstation_5","xbox_one","xbox_series_x_s","ios","android","nintendo_switch","nintendo_3ds"]},"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","minLength":1,"maxLength":512}},"required":["system","name","value"],"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},"developer":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"publisher":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"pegiRating":{"anyOf":[{"type":"string","enum":["pegi_3","pegi_7","pegi_12","pegi_16","pegi_18","parental_guidance"]},{"type":"null"}]},"releasedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"features":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256}},"required":["value"],"additionalProperties":false}},{"type":"null"}]},"tagIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["expectedUpdatedAt"],"additionalProperties":false},"SubscriptionCancel":{"type":"object","properties":{"atPeriodEnd":{"type":"boolean"}},"additionalProperties":false},"TestPurchaseCreate":{"type":"object","properties":{"workspaceSlug":{"type":"string","minLength":1,"maxLength":64},"checkoutId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"snapshot":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"key":{"type":"string","minLength":1},"contentHash":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["version","key","contentHash"],"additionalProperties":false},"lines":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"pricePointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999}},"required":["offerId","pricePointId","quantity"],"additionalProperties":false}},"customer":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"firstName":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"companyName":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"taxId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"taxIdType":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"line2":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"state":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]}},"required":["line1","line2","city","state","postalCode","country"]},{"type":"null"}]},"taxDeclaration":{"type":"object","properties":{"textVersion":{"type":"string","enum":["b2b-2026-11-01"]},"acceptedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["textVersion","acceptedAt"],"additionalProperties":false}},"required":["email","name","companyName","taxId","taxIdType","address"],"additionalProperties":false},"discountCode":{"anyOf":[{"type":"string","minLength":1,"maxLength":64,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}]},"paymentMethod":{"type":"string","enum":["test_card_succeeds","test_card_declined"]},"returnUrl":{"type":"string","maxLength":2048,"format":"uri"},"withdrawalWaiverAccepted":{"type":"boolean","const":true}},"required":["workspaceSlug","checkoutId","snapshot","lines","customer","paymentMethod","returnUrl"],"additionalProperties":false},"SubscriptionEndTrial":{"type":"object","properties":{},"additionalProperties":false},"SubscriptionPause":{"type":"object","properties":{"invoicing":{"type":"string","enum":["void","keep_as_draft","mark_uncollectible"]},"resumeAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"additionalProperties":false},"TagCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"],"additionalProperties":false},"TaxCalculationRequest":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"state":{"type":"string","minLength":1,"maxLength":10},"postalCode":{"type":"string","minLength":1,"maxLength":20},"customerType":{"type":"string","enum":["individual","company"]},"taxNumber":{"type":"string","minLength":1,"maxLength":64},"taxNumberType":{"type":"string","minLength":1,"maxLength":32}},"required":["offerId","country"],"additionalProperties":false},"UsageEventsIngest":{"type":"object","properties":{"events":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"eventId":{"type":"string","pattern":"^(?=.*[\\x21-\\x7E])[\\x20-\\x7E]{1,128}$"},"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"eventName":{"type":"string","pattern":"^[\\x21-\\x7E]{1,128}$"},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"customerLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}}},"required":["eventId","subscriptionId","eventName","timestamp"],"additionalProperties":false}}},"required":["events"],"additionalProperties":false},"UsageMeterCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"description":{"default":null,"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"eventName":{"type":"string","pattern":"^[\\x21-\\x7E]{1,128}$"},"aggregation":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"count"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sum","max","last"]},"key":{"type":"string","minLength":1,"maxLength":100}},"required":["type","key"],"additionalProperties":false}]},"unit":{"type":"string","minLength":1,"maxLength":32},"filter":{"default":null,"anyOf":[{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}}},"required":["conjunction","clauses"],"additionalProperties":false}}]}},"required":["conjunction","clauses"],"additionalProperties":false}}]}},"required":["conjunction","clauses"],"additionalProperties":false},{"type":"null"}]}},"required":["name","eventName","aggregation","unit"],"additionalProperties":false},"VariantCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":150},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"features":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256}},"required":["value"],"additionalProperties":false}},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"VariantReorder":{"type":"object","properties":{"order":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["variantId","expectedUpdatedAt"],"additionalProperties":false}}},"required":["order"],"additionalProperties":false},"VariantUpdate":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"name":{"type":"string","minLength":1,"maxLength":150},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"null"}]},"features":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":256}},"required":["value"],"additionalProperties":false}},{"type":"null"}]},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]}},"required":["expectedUpdatedAt"],"additionalProperties":false},"WebhookEndpointCreate":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"subscribedTypes":{"minItems":1,"maxItems":128,"type":"array","items":{"type":"string","enum":["order.paid","order.payment_failed","order.authentication_requested","order.refunded","order.partially_refunded","order.refund_failed","order.cancelled","order.fulfilled","order.fulfilment_revoked","checkout.completed","checkout.expired","dispute.created","dispute.evidence_submitted","dispute.updated","dispute.funds_withdrawn","dispute.funds_reinstated","dispute.closed","subscription.created","subscription.renewed","subscription.trial_ended","subscription.updated","subscription.cancelled","subscription.resumed","subscription.paused","subscription.payment_failed","subscription.expired","subscription.trial_ending","subscription.renewal_due","subscription.cancellation_scheduled","subscription.cancellation_withdrawn","subscription.payment_method_updated","payout.scheduled","payout.paid","payout.failed","customer.created","customer.updated","customer.deleted","workspace.capabilities_updated","activation.approved","activation.rejected","activation.info_requested","workspace.banned","workspace.archived","workspace.suspended","workspace.purge_scheduled","workspace.payments_disabled","workspace.payments_recovered","workspace.subscription_collection_paused","workspace.subscription_collection_resumed","workspace.checkout_paused","workspace.checkout_resumed","webhook_endpoint.enabled","webhook_endpoint.disabled","webhook_endpoint.pinged","webhook_endpoint.failing","webhook_endpoint.blocked","webhook_endpoint.recovered","charge_schedule.created","charge_schedule.paused","charge_schedule.resumed","charge_schedule.cancelled","charge_schedule.ended","charge_schedule.completed","charge_schedule.run_skipped","charge_schedule.run_exhausted"]}},"apiVersion":{"default":"2026-09-08","type":"string","pattern":"^(v1|\\d{4}-\\d{2}-\\d{2})$"},"description":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]}},"required":["url","subscribedTypes"],"additionalProperties":false},"WebhookEndpointUpdate":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"subscribedTypes":{"minItems":1,"maxItems":128,"type":"array","items":{"type":"string","enum":["order.paid","order.payment_failed","order.authentication_requested","order.refunded","order.partially_refunded","order.refund_failed","order.cancelled","order.fulfilled","order.fulfilment_revoked","checkout.completed","checkout.expired","dispute.created","dispute.evidence_submitted","dispute.updated","dispute.funds_withdrawn","dispute.funds_reinstated","dispute.closed","subscription.created","subscription.renewed","subscription.trial_ended","subscription.updated","subscription.cancelled","subscription.resumed","subscription.paused","subscription.payment_failed","subscription.expired","subscription.trial_ending","subscription.renewal_due","subscription.cancellation_scheduled","subscription.cancellation_withdrawn","subscription.payment_method_updated","payout.scheduled","payout.paid","payout.failed","customer.created","customer.updated","customer.deleted","workspace.capabilities_updated","activation.approved","activation.rejected","activation.info_requested","workspace.banned","workspace.archived","workspace.suspended","workspace.purge_scheduled","workspace.payments_disabled","workspace.payments_recovered","workspace.subscription_collection_paused","workspace.subscription_collection_resumed","workspace.checkout_paused","workspace.checkout_resumed","webhook_endpoint.enabled","webhook_endpoint.disabled","webhook_endpoint.pinged","webhook_endpoint.failing","webhook_endpoint.blocked","webhook_endpoint.recovered","charge_schedule.created","charge_schedule.paused","charge_schedule.resumed","charge_schedule.cancelled","charge_schedule.ended","charge_schedule.completed","charge_schedule.run_skipped","charge_schedule.run_exhausted"]}},"status":{"type":"string","enum":["active","disabled"]},"description":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]}},"additionalProperties":false},"WebhookTest":{"type":"object","properties":{"type":{"type":"string","enum":["order.paid","order.payment_failed","order.authentication_requested","order.refunded","order.partially_refunded","order.refund_failed","order.cancelled","order.fulfilled","order.fulfilment_revoked","checkout.completed","checkout.expired","dispute.created","dispute.evidence_submitted","dispute.updated","dispute.funds_withdrawn","dispute.funds_reinstated","dispute.closed","subscription.created","subscription.renewed","subscription.trial_ended","subscription.updated","subscription.cancelled","subscription.resumed","subscription.paused","subscription.payment_failed","subscription.expired","subscription.trial_ending","subscription.renewal_due","subscription.cancellation_scheduled","subscription.cancellation_withdrawn","subscription.payment_method_updated","payout.scheduled","payout.paid","payout.failed","customer.created","customer.updated","customer.deleted","workspace.capabilities_updated","activation.approved","activation.rejected","activation.info_requested","workspace.banned","workspace.archived","workspace.suspended","workspace.purge_scheduled","workspace.payments_disabled","workspace.payments_recovered","workspace.subscription_collection_paused","workspace.subscription_collection_resumed","workspace.checkout_paused","workspace.checkout_resumed","webhook_endpoint.enabled","webhook_endpoint.disabled","webhook_endpoint.pinged","webhook_endpoint.failing","webhook_endpoint.blocked","webhook_endpoint.recovered","charge_schedule.created","charge_schedule.paused","charge_schedule.resumed","charge_schedule.cancelled","charge_schedule.ended","charge_schedule.completed","charge_schedule.run_skipped","charge_schedule.run_exhausted"]}},"required":["type"],"additionalProperties":false},"Charge":{"type":"object","properties":{"id":{"type":"string","pattern":"^chg_[0-9A-HJKMNP-TV-Z]{26}$"},"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"offer"},"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999},"unitAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false}},"required":["kind","offerId","quantity","unitAmount","amount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"usage"},"meterId":{"type":"string","pattern":"^mtr_[0-9A-HJKMNP-TV-Z]{26}$"},"meterName":{"type":"string","minLength":1,"maxLength":150},"unit":{"type":"string","minLength":1,"maxLength":32},"units":{"type":"number","minimum":0,"maximum":90000000000},"freeThreshold":{"type":"integer","minimum":0,"maximum":2147483647},"chargeableUnits":{"type":"number","minimum":0,"maximum":90000000000},"pricePerUnit":{"type":"string","pattern":"^\\d{1,5}(\\.\\d{1,12})?$"},"periodStartsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"periodEndsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false}},"required":["kind","meterId","meterName","unit","units","freeThreshold","chargeableUnits","pricePerUnit","periodStartsAt","periodEndsAt","amount"],"additionalProperties":false}]}},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"invoiceNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"failureCode":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"liveMode":{"type":"boolean"}},"required":["id","subscriptionId","status","amount","tax","lines","orderId","invoiceNumber","failureCode","createdAt","liveMode"],"additionalProperties":false},"ChargeSchedule":{"type":"object","properties":{"id":{"type":"string","pattern":"^chs_[0-9A-HJKMNP-TV-Z]{26}$"},"liveMode":{"type":"boolean"},"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"pauseReason":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"instrument":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"amountSource":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"lines":{"minItems":0,"maxItems":20,"type":"array","items":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999}},"required":["offerId","quantity"],"additionalProperties":false}},"usageTerms":{"anyOf":[{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"meters":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"meterId":{"type":"string","pattern":"^mtr_[0-9A-HJKMNP-TV-Z]{26}$"},"pricePerUnit":{"type":"string","pattern":"^\\d{1,5}(\\.\\d{1,12})?$"},"freeThreshold":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["meterId","pricePerUnit","freeThreshold"],"additionalProperties":false}}},"required":["offerId","meters"],"additionalProperties":false},{"type":"null"}]},"oneShotAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":12},"anchorAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["unit","count","anchorAt"],"additionalProperties":false},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"maxRuns":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","subscriptionId","status","pauseReason","instrument","amountSource","lines","usageTerms","oneShotAt","cadence","endsAt","maxRuns","currency","nextRunAt","createdAt"],"additionalProperties":false},"ChargeScheduleDetail":{"type":"object","properties":{"id":{"type":"string","pattern":"^chs_[0-9A-HJKMNP-TV-Z]{26}$"},"liveMode":{"type":"boolean"},"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"pauseReason":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"instrument":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"amountSource":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"lines":{"minItems":0,"maxItems":20,"type":"array","items":{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":999}},"required":["offerId","quantity"],"additionalProperties":false}},"usageTerms":{"anyOf":[{"type":"object","properties":{"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"meters":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"meterId":{"type":"string","pattern":"^mtr_[0-9A-HJKMNP-TV-Z]{26}$"},"pricePerUnit":{"type":"string","pattern":"^\\d{1,5}(\\.\\d{1,12})?$"},"freeThreshold":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["meterId","pricePerUnit","freeThreshold"],"additionalProperties":false}}},"required":["offerId","meters"],"additionalProperties":false},{"type":"null"}]},"oneShotAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cadence":{"anyOf":[{"type":"object","properties":{"unit":{"type":"string","enum":["day","week","month","year"]},"count":{"type":"integer","minimum":1,"maximum":12},"anchorAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["unit","count","anchorAt"],"additionalProperties":false},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"maxRuns":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"runs":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"occurrence":{"type":"integer","minimum":0,"maximum":9007199254740991},"scheduledAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"attempts":{"type":"integer","minimum":0,"maximum":4},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"chargeId":{"anyOf":[{"type":"string","pattern":"^chg_[0-9A-HJKMNP-TV-Z]{26}$"},{"type":"null"}]},"orderId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"failureCode":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["occurrence","scheduledAt","state","attempts","nextAttemptAt","chargeId","orderId","failureCode"],"additionalProperties":false}}},"required":["id","liveMode","subscriptionId","status","pauseReason","instrument","amountSource","lines","usageTerms","oneShotAt","cadence","endsAt","maxRuns","currency","nextRunAt","createdAt","runs"],"additionalProperties":false},"ChargeSchedulePage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ChargeSchedule"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CheckoutSession":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"url":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"offerIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","name","url","offerIds","status","createdAt"],"additionalProperties":false},"CheckoutSessionPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CheckoutSession"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CommerceCustomer":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"companyName":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"taxNumber":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"taxNumberType":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"line2":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"state":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]}},"required":["line1","line2","city","state","postalCode","country"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"username":{"default":null,"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"reference":{"default":null,"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"type":{"default":null,"anyOf":[{"type":"string","enum":["individual","company"]},{"type":"null"}]},"firstName":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"lastName":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"phoneDialCode":{"default":null,"anyOf":[{"type":"string","maxLength":8},{"type":"null"}]},"phoneNumber":{"default":null,"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]}},"required":["id","email","name","companyName","taxNumber","taxNumberType","address","createdAt","username","reference","type","firstName","lastName","phoneDialCode","phoneNumber"],"additionalProperties":false},"CommerceCustomerPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CommerceCustomer"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CommerceInventoryPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":128},"offerId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"productId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"productKind":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"acquiredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["orderId","offerId","productId","productKind","name","quantity","status","acquiredAt"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CommerceOrder":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"number":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"status":{"type":"string","enum":["created","pending","paid","failed","refunded","partially_refunded","cancelled"]},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"subtotal":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"tax":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"fee":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"discountCode":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"taxBreakdown":{"default":null,"anyOf":[{"maxItems":64,"type":"array","items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"taxType":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"taxRatePercent":{"type":"string","pattern":"^\\d{1,3}(?:\\.\\d{1,4})?$"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive"]},"taxable":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false}},"required":["country","region","taxType","taxRatePercent","taxBehavior","taxable","tax"],"additionalProperties":false}},{"type":"null"}]},"reverseCharge":{"default":null,"type":["boolean","null"]},"totalItems":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]},"checkoutId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"subscriptionId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"lastPaymentId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"lastPaymentNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"invoiceNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"customer":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"companyName":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"taxNumber":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"taxNumberType":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"line2":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"state":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]}},"required":["line1","line2","city","state","postalCode","country"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"username":{"default":null,"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"reference":{"default":null,"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"type":{"default":null,"anyOf":[{"type":"string","enum":["individual","company"]},{"type":"null"}]},"firstName":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"lastName":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"phoneDialCode":{"default":null,"anyOf":[{"type":"string","maxLength":8},{"type":"null"}]},"phoneNumber":{"default":null,"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]}},"required":["id","email","name","companyName","taxNumber","taxNumberType","address","createdAt","username","reference","type","firstName","lastName","phoneDialCode","phoneNumber"],"additionalProperties":false},{"type":"null"}]},"items":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"productId":{"type":"string","minLength":1,"maxLength":128},"priceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"unitPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"listTotal":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"net":{"default":null,"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"tax":{"default":null,"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"gross":{"default":null,"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"taxRatePercent":{"default":null,"anyOf":[{"type":"string","pattern":"^\\d{1,3}(?:\\.\\d{1,4})?$"},{"type":"null"}]},"taxBehavior":{"default":null,"anyOf":[{"type":"string","enum":["inclusive","exclusive"]},{"type":"null"}]},"taxType":{"default":null,"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"discount":{"default":null,"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"variant":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"variantReference":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"productReference":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"priceReference":{"default":null,"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"plan":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"productType":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"customFields":{"default":null,"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"type":"string","maxLength":500}},{"type":"null"}]}},"required":["id","productId","priceId","quantity","unitPrice","listTotal","net","tax","gross","taxRatePercent","taxBehavior","taxType","discount","name","variant","variantReference","productReference","priceReference","plan","productType","customFields"],"additionalProperties":false}}},"required":["id","number","status","total","subtotal","tax","fee","discount","discountCode","taxBreakdown","reverseCharge","totalItems","country","checkoutId","subscriptionId","lastPaymentId","lastPaymentNumber","invoiceNumber","createdAt","customer","items"],"additionalProperties":false},"CommerceOrderBreakdown":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":128},"legs":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"direction":{"anyOf":[{"type":"string","enum":["credit","debit"]},{"type":"null"}]},"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"fee":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"tax":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"net":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","kind","status","direction","amount","fee","tax","net","occurredAt"],"additionalProperties":false}},"absent":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":64},"reason":{"type":"string","maxLength":64,"pattern":"^[A-Z][A-Z0-9_]*$"}},"required":["field","reason"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["orderId","legs","absent","nextCursor"],"additionalProperties":false},"CommerceRefundPreview":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":128},"arm":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"refundable":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"taxReversed":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"feeKept":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"merchantDebit":{"anyOf":[{"type":"object","properties":{"transfer":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"transferEstimated":{"type":"boolean"},"feeShare":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false}},"required":["transfer","transferEstimated","feeShare","total"],"additionalProperties":false},{"type":"null"}]},"settlementCurrency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"refusal":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","maxLength":64,"pattern":"^[A-Z][A-Z0-9_]*$"},"retryable":{"type":"boolean"}},"required":["code","retryable"],"additionalProperties":false},{"type":"null"}]}},"required":["orderId","arm","refundable","amount","taxReversed","feeKept","merchantDebit","settlementCurrency","refusal"],"additionalProperties":false},"CommerceOrderDocuments":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":128},"invoice":{"anyOf":[{"type":"object","properties":{"plane":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"number":{"type":"string","minLength":1,"maxLength":64},"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"issuedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"sellerEntity":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"billing":{"anyOf":[{"type":"object","properties":{"state":{"type":"string","enum":["shown","erased","restricted"]},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"line2":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"state":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]}},"required":["line1","line2","city","state","postalCode","country"],"additionalProperties":false},{"type":"null"}]},"vatId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"nip":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]}},"required":["state","name","address","vatId","nip","country"],"additionalProperties":false},{"type":"null"}]}},"required":["plane","number","status","issuedAt","sellerEntity","total","billing"],"additionalProperties":false},{"type":"null"}]},"creditNotes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"number":{"type":"string","minLength":1,"maxLength":64},"kind":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"correctsInvoice":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"net":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"tax":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"gross":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]}},"required":["number","kind","correctsInvoice","issuedAt","net","tax","gross","reason"],"additionalProperties":false}}},"required":["orderId","invoice","creditNotes"],"additionalProperties":false},"CommerceOrderDisputes":{"type":"object","properties":{"orderId":{"type":"string","minLength":1,"maxLength":128},"data":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"state":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"disputed":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"collectible":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"reversed":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"debts":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"leg":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"state":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"}},"required":["leg","amount","state"],"additionalProperties":false}},"evidenceDueAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"reservedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"closedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","state","disputed","collectible","reversed","debts","evidenceDueAt","reservedAt","closedAt","createdAt"],"additionalProperties":false}}},"required":["orderId","data"],"additionalProperties":false},"CommerceOrderPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CommerceOrder"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CommercePayment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"status":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"method":{"anyOf":[{"type":"object","properties":{"kind":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"type":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"brand":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}]},"last4":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}$"},{"type":"null"}]},"wallet":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"issuerCountry":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}]},"network":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]}},"required":["kind","type","brand","last4","wallet","issuerCountry","network"],"additionalProperties":false},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"message":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]}},"required":["code","message"],"additionalProperties":false},{"type":"null"}]},"disputed":{"type":"boolean"},"order":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"number":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"type":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"subtotal":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"tax":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"fee":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"total":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","number","type","subtotal","tax","fee","total","createdAt"],"additionalProperties":false},"customer":{"anyOf":[{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":320}},"required":["email"],"additionalProperties":false},{"type":"null"}]},"invoiceNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"refund":{"type":"object","properties":{"state":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"refunded":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]}},"required":["state","refunded"],"additionalProperties":false}},"required":["id","kind","status","amount","occurredAt","method","failure","disputed","order","customer","invoiceNumber","refund"],"additionalProperties":false},"CommercePaymentPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CommercePayment"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"CommerceSubscription":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"orderId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"orderNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"orderStatus":{"default":null,"anyOf":[{"type":"string","enum":["created","pending","paid","failed","refunded","partially_refunded","cancelled"]},{"type":"null"}]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled","expired"]},"productId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"priceId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"amount":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Amount in the currency minor unit; see minorUnitExponent"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"currentPeriodStart":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"currentPeriodEnd":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"cancelAtPeriodEnd":{"type":"boolean"},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"trialStart":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"trialEnd":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"lastPaymentId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"lastPaymentNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"invoiceNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","orderId","orderNumber","orderStatus","status","productId","priceId","amount","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","cancelledAt","trialStart","trialEnd","lastPaymentId","lastPaymentNumber","invoiceNumber","createdAt"],"additionalProperties":false},"CommerceSubscriptionPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CommerceSubscription"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"Discount":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"type":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"value":{"type":"number","minimum":0},"valueType":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"code":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"currency":{"anyOf":[{"type":"string","pattern":"^[A-Z]{3}$"},{"type":"null"}]},"validFrom":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"validUntil":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"purchaseLimit":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"timesUsed":{"type":"integer","minimum":0,"maximum":9007199254740991},"includedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"excludedOfferIds":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"appliesToAllOffers":{"type":"boolean"},"active":{"type":"boolean"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","type","name","value","valueType","code","currency","validFrom","validUntil","timezone","purchaseLimit","timesUsed","includedOfferIds","excludedOfferIds","appliesToAllOffers","active","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"DiscountPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Discount"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"ItemDownload":{"type":"object","properties":{"downloadUrl":{"type":"string","maxLength":4096,"format":"uri"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"contentType":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"fileName":{"type":"string","minLength":1,"maxLength":1024},"fileSize":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["downloadUrl","expiresAt","contentType","fileName","fileSize"],"additionalProperties":false},"MediaUpload":{"type":"object","properties":{"uploadUrl":{"type":"string","format":"uri"},"uploadFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"mediaKey":{"type":"string","minLength":1,"maxLength":1024},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["uploadUrl","uploadFields","mediaKey","expiresAt"],"additionalProperties":false},"Offer":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"productId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"variantId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"price":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"originalPrice":{"anyOf":[{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},{"type":"null"}]},"recurringInterval":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"recurringIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"trialInterval":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"trialIntervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"stockLimit":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"stockAvailable":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"region":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"platform":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"gtin":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"warningMessage":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"mutableQuantity":{"type":["boolean","null"]},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"coverImageUrl":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"download":{"anyOf":[{"type":"object","properties":{"fileName":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"fileSize":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":65536},{"type":"null"}]},"sha256Composite":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]}},"required":["fileName","fileSize","contentType","description","sha256Composite"],"additionalProperties":false},{"type":"null"}]},"tags":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","maxLength":512}},"required":["id","name"],"additionalProperties":false}},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","productId","variantId","name","description","status","price","originalPrice","recurringInterval","recurringIntervalCount","trialInterval","trialIntervalCount","stockLimit","stockAvailable","externalId","region","platform","gtin","warningMessage","mutableQuantity","coverImageKey","coverImageUrl","download","tags","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"OfferKeysAdded":{"type":"object","properties":{"offerId":{"type":"string","minLength":1,"maxLength":128},"received":{"type":"integer","minimum":0,"maximum":9007199254740991},"imported":{"type":"integer","minimum":0,"maximum":9007199254740991},"duplicatesInBatch":{"type":"integer","minimum":0,"maximum":9007199254740991},"duplicatesInPool":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["offerId","received","imported","duplicatesInBatch","duplicatesInPool"],"additionalProperties":false},"OfferKeysRemoved":{"type":"object","properties":{"offerId":{"type":"string","minLength":1,"maxLength":128},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991},"stockAvailable":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["offerId","removed","stockAvailable"],"additionalProperties":false},"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"integer","minimum":400,"maximum":599},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$"},"requestId":{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$"},"retryable":{"type":"boolean"},"detail":{"type":"string","maxLength":512},"errors":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","maxLength":512},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$"}},"required":["path","code"],"additionalProperties":false}},"current":{}},"required":["type","title","status","code","requestId","retryable"],"additionalProperties":false},"Product":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"kind":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"name":{"type":"string","maxLength":512},"description":{"anyOf":[{"type":"string","maxLength":16384},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"redeemMessage":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"redeemMessageClipped":{"type":"boolean"},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"coverImageUrl":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"coverBlurHash":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"gallery":{"maxItems":64,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":1024},"url":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"blurHash":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]}},"required":["key","url","blurHash"],"additionalProperties":false}},"coverVideoUrl":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"featureCoverVideo":{"type":["boolean","null"]},"genres":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"}},{"type":"null"}]},"systems":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"}},{"type":"null"}]},"requirements":{"anyOf":[{"type":"object","properties":{"minimum":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"name":{"type":"string","maxLength":256},"value":{"type":"string","maxLength":1024}},"required":["system","name","value"],"additionalProperties":false}},"recommended":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"name":{"type":"string","maxLength":256},"value":{"type":"string","maxLength":1024}},"required":["system","name","value"],"additionalProperties":false}}},"required":["minimum","recommended"],"additionalProperties":false},{"type":"null"}]},"developer":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"publisher":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"pegiRating":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"releasedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"features":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":1024}},"required":["value"],"additionalProperties":false}},"tags":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","maxLength":512}},"required":["id","name"],"additionalProperties":false}},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","kind","status","name","description","externalId","redeemMessage","redeemMessageClipped","coverImageKey","coverImageUrl","coverBlurHash","gallery","coverVideoUrl","featureCoverVideo","genres","systems","requirements","developer","publisher","pegiRating","releasedAt","features","tags","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"ProductDetail":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"kind":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"name":{"type":"string","maxLength":512},"description":{"anyOf":[{"type":"string","maxLength":16384},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"redeemMessage":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"redeemMessageClipped":{"type":"boolean"},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"coverImageUrl":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"coverBlurHash":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"gallery":{"maxItems":64,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":1024},"url":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"blurHash":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]}},"required":["key","url","blurHash"],"additionalProperties":false}},"coverVideoUrl":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"featureCoverVideo":{"type":["boolean","null"]},"genres":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"}},{"type":"null"}]},"systems":{"anyOf":[{"maxItems":64,"type":"array","items":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"}},{"type":"null"}]},"requirements":{"anyOf":[{"type":"object","properties":{"minimum":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"name":{"type":"string","maxLength":256},"value":{"type":"string","maxLength":1024}},"required":["system","name","value"],"additionalProperties":false}},"recommended":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"system":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"name":{"type":"string","maxLength":256},"value":{"type":"string","maxLength":1024}},"required":["system","name","value"],"additionalProperties":false}}},"required":["minimum","recommended"],"additionalProperties":false},{"type":"null"}]},"developer":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"publisher":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}]},"pegiRating":{"anyOf":[{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}]},"releasedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"features":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":1024}},"required":["value"],"additionalProperties":false}},"tags":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","maxLength":512}},"required":["id","name"],"additionalProperties":false}},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"variants":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"offers":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Offer"}}},"required":["id","liveMode","kind","status","name","description","externalId","redeemMessage","redeemMessageClipped","coverImageKey","coverImageUrl","coverBlurHash","gallery","coverVideoUrl","featureCoverVideo","genres","systems","requirements","developer","publisher","pegiRating","releasedAt","features","tags","archivedAt","createdAt","updatedAt","variants","offers"],"additionalProperties":false},"ProductPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Product"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"Readiness":{"type":"object","properties":{"ready":{"type":"boolean"},"codes":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["activation_required","activation_in_review","activation_info_requested","activation_rejected","payments_disabled","workspace_suspended","workspace_unavailable","payouts_restricted"]},"blocking":{"type":"boolean"}},"required":["code","blocking"],"additionalProperties":false}},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["ready","codes","checkedAt"],"additionalProperties":false},"SubscriptionActionAnswer":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"cancelAtPeriodEnd":{"type":"boolean"},"currentPeriodEnd":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"endedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"pause":{"anyOf":[{"type":"object","properties":{"invoicing":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"resumeAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["invoicing","resumeAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","liveMode","cancelAtPeriodEnd","currentPeriodEnd","endedAt","pause"],"additionalProperties":false},"TestPurchase":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^cks_[0-9A-HJKMNP-TV-Z]{26}$"},"orderId":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"invoiceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"state":{"type":"string","minLength":1,"maxLength":64},"liveMode":{"type":"boolean","const":false}},"required":["sessionId","orderId","invoiceId","state","liveMode"],"additionalProperties":false},"Tag":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"name":{"type":"string","maxLength":512},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","name","createdAt","updatedAt"],"additionalProperties":false},"TagPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"TaxCalculation":{"type":"object","properties":{"liveMode":{"type":"boolean"},"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991},"customerType":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive"]},"subtotal":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"total":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"reverseChargeEligible":{"type":"boolean"},"reverseChargeApplied":{"type":"boolean"},"taxNumberCheck":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"reason":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]}},"required":["status","reason"],"additionalProperties":false},{"type":"null"}]},"breakdown":{"maxItems":64,"type":"array","items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"taxType":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"taxRatePercent":{"type":"string","pattern":"^\\d{1,3}(?:\\.\\d{1,4})?$"},"taxBehavior":{"type":"string","enum":["inclusive","exclusive"]},"taxable":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"tax":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false}},"required":["country","region","taxType","taxRatePercent","taxBehavior","taxable","tax"],"additionalProperties":false}}},"required":["liveMode","offerId","quantity","customerType","taxBehavior","subtotal","tax","total","reverseChargeEligible","reverseChargeApplied","taxNumberCheck","breakdown"],"additionalProperties":false},"UsageEvent":{"type":"object","properties":{"eventId":{"type":"string","pattern":"^(?=.*[\\x21-\\x7E])[\\x20-\\x7E]{1,128}$"},"subscriptionId":{"type":"string","pattern":"^sbs_[0-9A-HJKMNP-TV-Z]{26}$"},"eventName":{"type":"string","pattern":"^[\\x21-\\x7E]{1,128}$"},"customerLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"metadata":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["eventId","subscriptionId","eventName","customerLabel","metadata","occurredAt"],"additionalProperties":false},"UsageEventList":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/UsageEvent"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"UsageEventsAccepted":{"type":"object","properties":{"id":{"type":"string","pattern":"^uin_[0-9a-f]{32}$"},"liveMode":{"type":"boolean"},"events":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","liveMode","events"],"additionalProperties":false},"UsageMeter":{"type":"object","properties":{"id":{"type":"string","pattern":"^mtr_[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":150},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"eventName":{"type":"string","pattern":"^[\\x21-\\x7E]{1,128}$"},"aggregation":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"count"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sum","max","last"]},"key":{"type":"string","minLength":1,"maxLength":100}},"required":["type","key"],"additionalProperties":false}]},"unit":{"type":"string","minLength":1,"maxLength":32},"filter":{"anyOf":[{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"conjunction":{"type":"string","enum":["and","or"]},"clauses":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"operator":{"type":"string","enum":["equals","not_equals","greater_than","greater_than_or_equals","less_than","less_than_or_equals","contains","does_not_contain"]},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"}]}},"required":["key","operator","value"],"additionalProperties":false}}},"required":["conjunction","clauses"],"additionalProperties":false}}]}},"required":["conjunction","clauses"],"additionalProperties":false}}]}},"required":["conjunction","clauses"],"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["active","archived"]},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"hasEvents":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"liveMode":{"type":"boolean"}},"required":["id","name","description","eventName","aggregation","unit","filter","status","archivedAt","hasEvents","createdAt","updatedAt","liveMode"],"additionalProperties":false},"UsageMeterList":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/UsageMeter"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"Variant":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"liveMode":{"type":"boolean"},"productId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"name":{"type":"string","maxLength":512},"description":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"features":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":1024}},"required":["value"],"additionalProperties":false}},"coverImageKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}]},"coverImageUrl":{"anyOf":[{"type":"string","maxLength":4096,"format":"uri"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","productId","name","description","externalId","features","coverImageKey","coverImageUrl","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"VariantList":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$"},"endpointId":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$"},"eventType":{"type":"string","enum":["order.paid","order.payment_failed","order.authentication_requested","order.refunded","order.partially_refunded","order.refund_failed","order.cancelled","order.fulfilled","order.fulfilment_revoked","checkout.completed","checkout.expired","dispute.created","dispute.evidence_submitted","dispute.updated","dispute.funds_withdrawn","dispute.funds_reinstated","dispute.closed","subscription.created","subscription.renewed","subscription.trial_ended","subscription.updated","subscription.cancelled","subscription.resumed","subscription.paused","subscription.payment_failed","subscription.expired","subscription.trial_ending","subscription.renewal_due","subscription.cancellation_scheduled","subscription.cancellation_withdrawn","subscription.payment_method_updated","payout.scheduled","payout.paid","payout.failed","customer.created","customer.updated","customer.deleted","workspace.capabilities_updated","activation.approved","activation.rejected","activation.info_requested","workspace.banned","workspace.archived","workspace.suspended","workspace.purge_scheduled","workspace.payments_disabled","workspace.payments_recovered","workspace.subscription_collection_paused","workspace.subscription_collection_resumed","workspace.checkout_paused","workspace.checkout_resumed","webhook_endpoint.enabled","webhook_endpoint.disabled","webhook_endpoint.pinged","webhook_endpoint.failing","webhook_endpoint.blocked","webhook_endpoint.recovered","charge_schedule.created","charge_schedule.paused","charge_schedule.resumed","charge_schedule.cancelled","charge_schedule.ended","charge_schedule.completed","charge_schedule.run_skipped","charge_schedule.run_exhausted"]},"apiVersion":{"type":"string","pattern":"^(v1|\\d{4}-\\d{2}-\\d{2})$"},"liveMode":{"type":"boolean"},"aggregate":{"type":"object","properties":{"type":{"type":"string","maxLength":64},"id":{"type":"string","maxLength":128}},"required":["type","id"],"additionalProperties":false},"sequence":{"type":"integer","minimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["pending","delivering","delivered","dead"]},"attempt":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"deadReason":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","eventId","endpointId","eventType","apiVersion","liveMode","aggregate","sequence","state","attempt","nextAttemptAt","deadReason","occurredAt","createdAt","updatedAt"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$"},"liveMode":{"type":"boolean"},"url":{"type":"string","maxLength":2048,"format":"uri"},"apiVersion":{"type":"string","pattern":"^(v1|\\d{4}-\\d{2}-\\d{2})$"},"status":{"type":"string","enum":["active","disabled"]},"subscribedTypes":{"type":"array","items":{"type":"string","enum":["order.paid","order.payment_failed","order.authentication_requested","order.refunded","order.partially_refunded","order.refund_failed","order.cancelled","order.fulfilled","order.fulfilment_revoked","checkout.completed","checkout.expired","dispute.created","dispute.evidence_submitted","dispute.updated","dispute.funds_withdrawn","dispute.funds_reinstated","dispute.closed","subscription.created","subscription.renewed","subscription.trial_ended","subscription.updated","subscription.cancelled","subscription.resumed","subscription.paused","subscription.payment_failed","subscription.expired","subscription.trial_ending","subscription.renewal_due","subscription.cancellation_scheduled","subscription.cancellation_withdrawn","subscription.payment_method_updated","payout.scheduled","payout.paid","payout.failed","customer.created","customer.updated","customer.deleted","workspace.capabilities_updated","activation.approved","activation.rejected","activation.info_requested","workspace.banned","workspace.archived","workspace.suspended","workspace.purge_scheduled","workspace.payments_disabled","workspace.payments_recovered","workspace.subscription_collection_paused","workspace.subscription_collection_resumed","workspace.checkout_paused","workspace.checkout_resumed","webhook_endpoint.enabled","webhook_endpoint.disabled","webhook_endpoint.pinged","webhook_endpoint.failing","webhook_endpoint.blocked","webhook_endpoint.recovered","charge_schedule.created","charge_schedule.paused","charge_schedule.resumed","charge_schedule.cancelled","charge_schedule.ended","charge_schedule.completed","charge_schedule.run_skipped","charge_schedule.run_exhausted"]}},"description":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}]},"consecutiveFailures":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastSuccessAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"lastFailureAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledReason":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","liveMode","url","apiVersion","status","subscribedTypes","description","consecutiveFailures","lastSuccessAt","lastFailureAt","disabledReason","createdAt","updatedAt"],"additionalProperties":false},"WebhookEndpointCreated":{"type":"object","properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","minLength":32}},"required":["endpoint"],"additionalProperties":false},"WebhookEndpointPage":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},{"type":"null"}]}},"required":["data","nextCursor"],"additionalProperties":false},"WebhookEndpointRemoved":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$"},"removed":{"type":"boolean","const":true}},"required":["id","removed"],"additionalProperties":false},"WebhookTestAnswer":{"type":"object","properties":{"eventId":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$"},"delivered":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["eventId","delivered"],"additionalProperties":false},"Whoami":{"type":"object","properties":{"keyId":{"type":"string"},"workspaceId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"scopes":{"type":"array","items":{"type":"string","enum":["catalogue:read","catalogue:write","orders:read","orders:write","customers:read","customers:write","subscriptions:read","subscriptions:write","charges:read","charges:write","usage:read","usage:write","webhooks:read","webhooks:write","discounts:read","discounts:write","test-helpers:write"]}},"apiVersion":{"type":"string","enum":["2026-10-28"]},"liveMode":{"type":"boolean"}},"required":["keyId","workspaceId","mode","scopes"],"additionalProperties":false}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A v1 API key; the scope named is the one the route needs."}}}}