{"openapi":"3.1.0","info":{"title":"StrataSim Shop API","version":"v1","description":"Read your studio’s sales, payouts and products from your own systems. Read-only: no key can move money or change anything. Money is integer cents in US dollars; timestamps are RFC 3339 in UTC. Inside v1 changes are additive only."},"servers":[{"url":"https://api.stratasim.shop/v1"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A studio API key, ssv_..., made in the vendor console."}},"schemas":{"ProductRef":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},"ApiKey":{"type":"object","properties":{"object":{"type":"string","const":"api_key"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["sales:read","payouts:read","products:read"]}},"hint":{"type":"string","description":"The key’s last four characters."},"created_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"expires_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}]}},"required":["object","id","name","scopes","hint","created_at","expires_at"],"additionalProperties":false,"description":"The key making the request. Never the key itself."},"Studio":{"type":"object","properties":{"object":{"type":"string","const":"studio"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"slug":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["approved","suspended"]},"currency":{"type":"string","const":"usd"},"time_zone":{"type":"string","const":"UTC"},"commission_rate_bps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The rate on new sales. Each sale keeps the rate it was sold at."},"payout_hold_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minimum_payout_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"key":{"$ref":"#/components/schemas/ApiKey"}},"required":["object","id","slug","name","status","currency","time_zone","commission_rate_bps","payout_hold_days","minimum_payout_cents","key"],"additionalProperties":false},"LicenceKeyRef":{"type":"object","properties":{"masked":{"type":"string","description":"The key with its middle hidden, such as ABCD...WXYZ: four characters at each end for a key of 16 or more, two for 12 to 15, none for a shorter one. Never the whole key."},"status":{"type":"string","enum":["issued","void"],"description":"void: the sale was refunded and the key must stop working. A chargeback does not void a key: act on the sale’s charged_back status too."}},"required":["masked","status"],"additionalProperties":false},"Sale":{"type":"object","properties":{"object":{"type":"string","const":"sale"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"order":{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},"sold_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"When the order was paid, to the minute."},"product":{"$ref":"#/components/schemas/ProductRef"},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"The buyer’s billing country, ISO 3166-1 alpha-2."},"customer":{"description":"This buyer’s customer number at your studio. The same buyer has a different number at every studio. Null on an order that also bought from another studio (so two studios can never match their numbers through one order), and when the account no longer exists.","type":["string","null"]},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the buyer paid for the line, after discount and before tax."},"commission_rate_bps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Your share."},"reversed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refunds and chargebacks against your share, less any chargeback a won dispute gave back."},"currency":{"type":"string","const":"usd"},"status":{"type":"string","enum":["on_hold","available","in_payout","paid_out","payout_reversed","refunded","charged_back"],"description":"First match wins: refunded or charged_back once the share is all taken back; paid_out, payout_reversed or in_payout once a payout holds it; on_hold until available_at; then available."},"available_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}],"description":"When your share leaves the refund hold."},"payout":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},{"type":"null"}]},"licence_key":{"anyOf":[{"$ref":"#/components/schemas/LicenceKeyRef"},{"type":"null"}]}},"required":["object","id","order","sold_at","product","country","customer","gross_cents","commission_rate_bps","commission_cents","net_cents","reversed_cents","currency","status","available_at","payout","licence_key"],"additionalProperties":false},"LedgerEntry":{"type":"object","properties":{"object":{"type":"string","const":"ledger_entry"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"kind":{"type":"string","enum":["sale","refund","chargeback","chargeback_reversal","adjustment"]},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Signed, from your side: a sale is positive, a refund or chargeback negative."},"currency":{"type":"string","const":"usd"},"created_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"available_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"sale":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},{"type":"null"}]},"order":{"anyOf":[{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},{"type":"null"}]},"product":{"anyOf":[{"$ref":"#/components/schemas/ProductRef"},{"type":"null"}]}},"required":["object","id","kind","amount_cents","currency","created_at","available_at","sale","order","product"],"additionalProperties":false},"SaleDetail":{"type":"object","properties":{"object":{"type":"string","const":"sale"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"order":{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},"sold_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"When the order was paid, to the minute."},"product":{"$ref":"#/components/schemas/ProductRef"},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"The buyer’s billing country, ISO 3166-1 alpha-2."},"customer":{"description":"This buyer’s customer number at your studio. The same buyer has a different number at every studio. Null on an order that also bought from another studio (so two studios can never match their numbers through one order), and when the account no longer exists.","type":["string","null"]},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What the buyer paid for the line, after discount and before tax."},"commission_rate_bps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Your share."},"reversed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refunds and chargebacks against your share, less any chargeback a won dispute gave back."},"currency":{"type":"string","const":"usd"},"status":{"type":"string","enum":["on_hold","available","in_payout","paid_out","payout_reversed","refunded","charged_back"],"description":"First match wins: refunded or charged_back once the share is all taken back; paid_out, payout_reversed or in_payout once a payout holds it; on_hold until available_at; then available."},"available_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}],"description":"When your share leaves the refund hold."},"payout":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},{"type":"null"}]},"licence_key":{"anyOf":[{"$ref":"#/components/schemas/LicenceKeyRef"},{"type":"null"}]},"entries":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntry"}}},"required":["object","id","order","sold_at","product","country","customer","gross_cents","commission_rate_bps","commission_cents","net_cents","reversed_cents","currency","status","available_at","payout","licence_key","entries"],"additionalProperties":false},"SalesSummary":{"type":"object","properties":{"object":{"type":"string","const":"sales_summary"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$","description":"RFC 3339, UTC."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$","description":"RFC 3339, UTC."},"currency":{"type":"string","const":"usd"},"group_by":{"anyOf":[{"type":"string","enum":["day","month","product","country"]},{"type":"null"}]},"totals":{"type":"object","properties":{"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reversed_sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"reversed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["sales","reversed_sales","gross_cents","commission_cents","net_cents","reversed_cents"],"additionalProperties":false},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reversed_sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"reversed_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["key","label","sales","reversed_sales","gross_cents","commission_cents","net_cents","reversed_cents"],"additionalProperties":false}}},"required":["object","from","to","currency","group_by","totals","groups"],"additionalProperties":false},"Balance":{"type":"object","properties":{"object":{"type":"string","const":"balance"},"currency":{"type":"string","const":"usd"},"available_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Out of the refund hold and not yet paid. Can be negative after a refund of money already paid out; it nets off future sales."},"on_hold_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"in_payout_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"paid_out_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"next_release":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["date","amount_cents"],"additionalProperties":false},{"type":"null"}]},"fully_available_on":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},{"type":"null"}]},"releases":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["date","amount_cents","sales"],"additionalProperties":false}},"payouts_enabled":{"type":"boolean"},"schedule":{"type":"object","properties":{"mode":{"type":"string","enum":["manual","automatic"]},"threshold_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"minimum_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"next_request_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}]}},"required":["mode","threshold_cents","minimum_cents","next_request_at"],"additionalProperties":false}},"required":["object","currency","available_cents","on_hold_cents","in_payout_cents","paid_out_cents","next_release","fully_available_on","releases","payouts_enabled","schedule"],"additionalProperties":false},"Payout":{"type":"object","properties":{"object":{"type":"string","const":"payout"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"status":{"type":"string","enum":["processing","paid","failed","reversed"],"description":"reversed: some or all of the transfer was pulled back in Stripe."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"currency":{"type":"string","const":"usd"},"requested_by":{"type":"string","enum":["studio","staff","schedule"]},"created_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"paid_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}],"description":"When Stripe accepted the transfer into your Stripe account. Not the bank arrival."},"period":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."}},"required":["from","to"],"additionalProperties":false},{"type":"null"}],"description":"The release dates of the entries it settled, earliest and latest: when each left the refund hold, not when each sale was made."},"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"earned_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"deducted_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refunds, chargebacks and adjustments it settled, signed: a chargeback given back by a won dispute adds."},"transfer":{"description":"The Stripe transfer to your Stripe account, as Stripe names it.","type":["string","null"]},"invoice":{"anyOf":[{"type":"object","properties":{"number":{"type":"string"},"issued_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."}},"required":["number","issued_at"],"additionalProperties":false},{"type":"null"}]}},"required":["object","id","status","amount_cents","currency","requested_by","created_at","paid_at","period","sales","earned_cents","deducted_cents","transfer","invoice"],"additionalProperties":false},"PayoutLine":{"type":"object","properties":{"object":{"type":"string","const":"payout_line"},"ledger_entry":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"kind":{"type":"string","enum":["sale","refund","chargeback","chargeback_reversal","adjustment"]},"order":{"anyOf":[{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},{"type":"null"}]},"product":{"type":["string","null"]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"The buyer’s billing country, ISO 3166-1 alpha-2."},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["object","ledger_entry","date","kind","order","product","country","gross_cents","commission_cents","amount_cents"],"additionalProperties":false},"PayoutDetail":{"type":"object","properties":{"object":{"type":"string","const":"payout"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"status":{"type":"string","enum":["processing","paid","failed","reversed"],"description":"reversed: some or all of the transfer was pulled back in Stripe."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"currency":{"type":"string","const":"usd"},"requested_by":{"type":"string","enum":["studio","staff","schedule"]},"created_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"paid_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}],"description":"When Stripe accepted the transfer into your Stripe account. Not the bank arrival."},"period":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."}},"required":["from","to"],"additionalProperties":false},{"type":"null"}],"description":"The release dates of the entries it settled, earliest and latest: when each left the refund hold, not when each sale was made."},"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"earned_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"deducted_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Refunds, chargebacks and adjustments it settled, signed: a chargeback given back by a won dispute adds."},"transfer":{"description":"The Stripe transfer to your Stripe account, as Stripe names it.","type":["string","null"]},"invoice":{"anyOf":[{"type":"object","properties":{"number":{"type":"string"},"issued_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."}},"required":["number","issued_at"],"additionalProperties":false},{"type":"null"}]},"totals":{"type":"object","properties":{"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"earned_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"reversal_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"adjustment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["sales","gross_cents","commission_cents","earned_cents","reversal_cents","adjustment_cents","net_cents"],"additionalProperties":false},"balanced":{"description":"Whether the settled entries add up to the amount, and every sale to its gross less commission. Null for a failed payout, whose entries went back to your balance.","type":["boolean","null"]}},"required":["object","id","status","amount_cents","currency","requested_by","created_at","paid_at","period","sales","earned_cents","deducted_cents","transfer","invoice","totals","balanced"],"additionalProperties":false},"ReverseInvoice":{"type":"object","properties":{"object":{"type":"string","const":"reverse_invoice"},"number":{"type":"string"},"issued_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"payout":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"studio_name":{"type":"string"},"issuer":{"type":"object","properties":{"name":{"type":"string"},"address_lines":{"type":"array","items":{"type":"string"}},"country":{"type":["string","null"]},"registration":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"number":{"type":"string"}},"required":["label","number"],"additionalProperties":false},{"type":"null"}]},"description":{"type":["string","null"]},"contact":{"type":["string","null"]}},"required":["name","address_lines","country","registration","description","contact"],"additionalProperties":false},"buyer":{"type":"object","properties":{"name":{"type":"string"},"address_lines":{"type":"array","items":{"type":"string"}},"country":{"type":["string","null"]},"registration":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"number":{"type":"string"}},"required":["label","number"],"additionalProperties":false},{"type":"null"}]},"description":{"type":["string","null"]},"contact":{"type":["string","null"]}},"required":["name","address_lines","country","registration","description","contact"],"additionalProperties":false},"note":{"type":["string","null"]},"period":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A UTC calendar day, YYYY-MM-DD."}},"required":["from","to"],"additionalProperties":false},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"ledger_entry":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"kind":{"type":"string","enum":["sale","refund","chargeback","chargeback_reversal","adjustment"]},"order":{"anyOf":[{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},{"type":"null"}]},"product":{"type":["string","null"]},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"The buyer’s billing country, ISO 3166-1 alpha-2."},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"amount_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["ledger_entry","date","kind","order","product","country","gross_cents","commission_cents","amount_cents"],"additionalProperties":false}},"totals":{"type":"object","properties":{"sales":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gross_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"commission_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"earned_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"reversal_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"adjustment_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"net_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."}},"required":["sales","gross_cents","commission_cents","earned_cents","reversal_cents","adjustment_cents","net_cents"],"additionalProperties":false},"balanced":{"type":"boolean"},"currency":{"type":"string","const":"usd"}},"required":["object","number","issued_at","payout","studio_name","issuer","buyer","note","period","lines","totals","balanced","currency"],"additionalProperties":false},"ProductSummary":{"type":"object","properties":{"object":{"type":"string","const":"product"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"slug":{"type":"string"},"url":{"type":["string","null"]},"title":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"currency":{"type":"string","const":"usd"},"sales_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Copies sold, less any refunded in full."},"rating":{"type":"object","properties":{"average":{"type":"number"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["average","count"],"additionalProperties":false},"key_delivery":{"type":"string"},"keys_available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current_version":{"type":["string","null"]},"file_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Files uploaded, across all of its versions."},"updated_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."}},"required":["object","id","slug","url","title","kind","status","price_cents","currency","sales_count","rating","key_delivery","keys_available","current_version","file_count","updated_at"],"additionalProperties":false},"ProductDetail":{"type":"object","properties":{"object":{"type":"string","const":"product"},"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"slug":{"type":"string"},"url":{"type":["string","null"]},"title":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"price_cents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},"currency":{"type":"string","const":"usd"},"sales_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Copies sold, less any refunded in full."},"rating":{"type":"object","properties":{"average":{"type":"number"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["average","count"],"additionalProperties":false},"key_delivery":{"type":"string"},"keys_available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"current_version":{"type":["string","null"]},"file_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Files uploaded, across all of its versions."},"updated_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"subtitle":{"type":["string","null"]},"description_md":{"type":"string"},"sims":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"note":{"type":["string","null"]}},"required":["code","note"],"additionalProperties":false}},"sku":{"type":["string","null"]},"compare_at_cents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Integer cents in US dollars."},{"type":"null"}]},"is_free":{"type":"boolean"},"cover_url":{"type":["string","null"]},"submitted_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}]},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"version":{"type":"string"},"status":{"type":"string"},"is_current":{"type":"boolean"},"released_at":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},{"type":"null"}]},"file_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total_bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changelog_md":{"type":"string"}},"required":["id","version","status","is_current","released_at","file_count","total_bytes","changelog_md"],"additionalProperties":false}}},"required":["object","id","slug","url","title","kind","status","price_cents","currency","sales_count","rating","key_delivery","keys_available","current_version","file_count","updated_at","subtitle","description_md","sims","sku","compare_at_cents","is_free","cover_url","submitted_at","published_at","versions"],"additionalProperties":false},"KeyStock":{"type":"object","properties":{"object":{"type":"string","const":"key_stock"},"product":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"delivery":{"type":"string"},"available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"void":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pools":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"label":{"type":"string"},"available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"void":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","label","available","sold","void"],"additionalProperties":false}}},"required":["object","product","delivery","available","sold","void","pools"],"additionalProperties":false},"LicenceKeyLookup":{"type":"object","properties":{"object":{"type":"string","const":"licence_key_lookup"},"masked":{"type":"string"},"found":{"type":"boolean","description":"The key is one of yours, matched exactly, letter case included (spaces at either end are ignored)."},"status":{"anyOf":[{"type":"string","enum":["available","issued","void"]},{"type":"null"}]},"product":{"anyOf":[{"$ref":"#/components/schemas/ProductRef"},{"type":"null"}]},"sale":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"An id as the API returns it."},"order":{"type":"string","description":"The order reference a buyer quotes, such as SS-7K2M-9QXB."},"sold_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"RFC 3339, UTC, to the second."},"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"The buyer’s billing country, ISO 3166-1 alpha-2."},"customer":{"type":["string","null"]}},"required":["id","order","sold_at","country","customer"],"additionalProperties":false},{"type":"null"}]}},"required":["object","masked","found","status","product","sale"],"additionalProperties":false},"ApiIndex":{"type":"object","properties":{"object":{"type":"string","const":"api"},"version":{"type":"string","const":"v1"},"docs":{"type":"string"},"openapi":{"type":"string"}},"required":["object","version","docs","openapi"],"additionalProperties":false},"SaleList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Sale"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false},"LedgerFeed":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LedgerEntry"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"settled_through":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","description":"Entries are served once they are five minutes old: everything written before this instant is in this page, an earlier one, or the pages after it."}},"required":["object","data","has_more","next_cursor","settled_through"],"additionalProperties":false},"PayoutList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Payout"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false},"PayoutLineList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PayoutLine"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false},"ProductList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ProductSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false},"LicenceKeyLookupList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LicenceKeyLookup"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request","authentication","permission","not_found","rate_limited","server_error","unavailable"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"string"},"scope":{"type":"string"},"request_id":{"type":"string"}},"required":["type","code","message","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}},"paths":{"/":{"get":{"summary":"This API","security":[],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiIndex"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/studio":{"get":{"summary":"Your studio, its terms and this key","security":[{"bearer":[]}],"x-scope":"any","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Studio"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sales":{"get":{"summary":"Sales, newest first","security":[{"bearer":[]}],"x-scope":"sales:read","parameters":[{"name":"from","in":"query","description":"RFC 3339 instant, inclusive.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"RFC 3339 instant, exclusive.","schema":{"type":"string","format":"date-time"}},{"name":"product","in":"query","description":"Only this product.","schema":{"type":"string"}},{"name":"order","in":"query","description":"Only this order reference.","schema":{"type":"string"}},{"name":"status","in":"query","description":"Only sales in this state.","schema":{"type":"string","enum":["on_hold","available","in_payout","paid_out","payout_reversed","refunded","charged_back"]}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (default 50).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","description":"The next_cursor of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleList"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sales/summary":{"get":{"summary":"Totals for a range, optionally grouped","security":[{"bearer":[]}],"x-scope":"sales:read","parameters":[{"name":"from","in":"query","description":"RFC 3339 instant, inclusive.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"RFC 3339 instant, exclusive.","schema":{"type":"string","format":"date-time"}},{"name":"product","in":"query","description":"Only this product.","schema":{"type":"string"}},{"name":"group_by","in":"query","description":"day, month, product, country. At most 366 days either way.","schema":{"type":"string","enum":["day","month","product","country"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesSummary"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sales/{id}":{"get":{"summary":"One sale and every ledger entry against it","security":[{"bearer":[]}],"x-scope":"sales:read","parameters":[{"name":"id","in":"path","required":true,"description":"The sale’s id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleDetail"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ledger":{"get":{"summary":"Every ledger entry, oldest first, exactly once","description":"Entries appear five minutes after they are written and never change. Store next_cursor and poll with it.","security":[{"bearer":[]}],"x-scope":"sales:read","parameters":[{"name":"since","in":"query","description":"RFC 3339 instant to start from, without a cursor.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","description":"Page size, 1 to 200 (default 100).","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","description":"The next_cursor of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerFeed"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/balance":{"get":{"summary":"Your balance and when held money releases","security":[{"bearer":[]}],"x-scope":"payouts:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payouts":{"get":{"summary":"Payouts, newest first","security":[{"bearer":[]}],"x-scope":"payouts:read","parameters":[{"name":"status","in":"query","description":"Only payouts in this state.","schema":{"type":"string","enum":["processing","paid","failed","reversed"]}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (default 25).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","description":"The next_cursor of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutList"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payouts/{id}":{"get":{"summary":"One payout and the totals of what it settled","security":[{"bearer":[]}],"x-scope":"payouts:read","parameters":[{"name":"id","in":"path","required":true,"description":"The payout’s id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutDetail"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payouts/{id}/lines":{"get":{"summary":"Every entry a payout settled, in the order written","security":[{"bearer":[]}],"x-scope":"payouts:read","parameters":[{"name":"id","in":"path","required":true,"description":"The payout’s id.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size, 1 to 200 (default 100).","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"cursor","in":"query","description":"The next_cursor of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutLineList"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/payouts/{id}/invoice":{"get":{"summary":"The payout’s issued reverse invoice","security":[{"bearer":[]}],"x-scope":"payouts:read","parameters":[{"name":"id","in":"path","required":true,"description":"The payout’s id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReverseInvoice"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products":{"get":{"summary":"Your listings, in every status","security":[{"bearer":[]}],"x-scope":"products:read","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (default 50).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","description":"The next_cursor of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}":{"get":{"summary":"One listing and its versions","security":[{"bearer":[]}],"x-scope":"products:read","parameters":[{"name":"id","in":"path","required":true,"description":"The product’s id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDetail"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}/keys":{"get":{"summary":"License key stock, counts only","security":[{"bearer":[]}],"x-scope":"products:read","parameters":[{"name":"id","in":"path","required":true,"description":"The product’s id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyStock"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/licence-keys/lookup":{"post":{"summary":"Look up your own license keys","description":"Whether each key is one of yours, matched exactly with letter case, its state, and the sale it went with. Up to 100 keys, in the body, never in the address; at most 32 KB. 30 calls a minute.","security":[{"bearer":[]}],"x-scope":"sales:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceKeyLookupList"}}}},"default":{"description":"An error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"keys":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":4,"maxLength":200}}}}}}}}},"/openapi.json":{"get":{"summary":"This document","security":[],"responses":{"200":{"description":"OK"}}}}}}