{"openapi":"3.1.0","info":{"title":"RL Sell Partner API v2","version":"2.0.0","description":"Scoped Telegram-linked partner API. Monetary amounts are decimal strings. Use one saved Idempotency-Key for every purchase intent."},"x-api-version":"2.0","servers":[{"url":"/"}],"paths":{"/b2b/v2/me":{"get":{"tags":["B2B v2"],"summary":"Check the key, environment and scopes","operationId":"get_v2_client_info_b2b_v2_me_get","responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ClientInfo"},"example":{"client_id":"partner-example","environment":"live","rate_limit_per_min":60,"webhook_configured":true,"scopes":["balance:read","catalog:read","orders:read","orders:write"],"loyalty":{"linked":true,"source":"telegram","tier":"Gold","discount_percent":"1.5","mode":"auto"}}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Telegram tier settings are temporarily unavailable","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":[]}},"/b2b/v2/balance":{"get":{"tags":["B2B v2"],"summary":"Read the client balance","description":"Live keys read the linked Telegram wallet. Sandbox keys read an isolated simulated wallet and never debit real funds.","operationId":"get_v2_balance_b2b_v2_balance_get","responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Balance"},"example":{"available":"25.00","reserved":"10.00","currency":"USD","environment":"live"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED; BALANCE_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"BALANCE_UNAVAILABLE":{"summary":"BALANCE_UNAVAILABLE","value":{"error":{"code":"BALANCE_UNAVAILABLE","message":"Balance snapshot is temporarily unavailable","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["balance:read"]}},"/b2b/v2/catalog/products":{"get":{"tags":["B2B v2 Catalog"],"summary":"List products with durable IDs","operationId":"list_products_b2b_v2_catalog_products_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128,"pattern":"^[^\\x00-\\x1f\\x7f-\\x9f]*$"},{"type":"null"}],"description":"Substring of the product name; case- and accent-insensitive, % and _ are literal; control characters are refused","title":"Search"},"description":"Substring of the product name; case- and accent-insensitive, % and _ are literal; control characters are refused"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Exact region value from GET /catalog/facets","title":"Region"},"description":"Exact region value from GET /catalog/facets"},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Platform"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogProductPage"},"example":{"items":[{"product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card","category":"gift_cards","status":"active","catalog_revision":42,"offer_count":1,"availability":"available"}],"catalog_revision":42,"next_cursor":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"400":{"description":"INVALID_CURSOR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_CURSOR":{"summary":"INVALID_CURSOR","value":{"error":{"code":"INVALID_CURSOR","message":"Invalid catalog cursor","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/changes":{"get":{"tags":["B2B v2 Catalog"],"summary":"Catalog changes after a known revision","operationId":"list_changes_b2b_v2_catalog_changes_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Last next_since you processed; 0 lists the whole catalog","default":0,"title":"Since"},"description":"Last next_since you processed; 0 lists the whole catalog"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogChangesPage"},"example":{"items":[{"type":"product","id":"prd_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","change":"upsert","revision":41},{"type":"offer","id":"off_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","change":"upsert","revision":42}],"catalog_revision":42,"next_cursor":null,"next_since":42}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"400":{"description":"INVALID_CURSOR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_CURSOR":{"summary":"INVALID_CURSOR","value":{"error":{"code":"INVALID_CURSOR","message":"Invalid catalog cursor","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"CATALOG_RESYNC_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"CATALOG_RESYNC_REQUIRED":{"summary":"CATALOG_RESYNC_REQUIRED","value":{"error":{"code":"CATALOG_RESYNC_REQUIRED","message":"since is ahead of the catalog revision; resync from since=0","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/facets":{"get":{"tags":["B2B v2 Catalog"],"summary":"Filter values with product counts","operationId":"get_facets_b2b_v2_catalog_facets_get","responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogFacets"},"example":{"categories":[{"value":"gift_cards","product_count":244}],"regions":[{"value":"Global","product_count":512,"code":null},{"value":"United States","product_count":120,"code":"US"}],"platforms":[],"catalog_revision":42}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/products/{product_id}":{"get":{"tags":["B2B v2 Catalog"],"summary":"Product with its current offers","operationId":"get_product_b2b_v2_catalog_products__product_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogProductDetail"},"example":{"product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card","category":"gift_cards","status":"active","catalog_revision":42,"offer_count":1,"offers":[{"offer_id":"off_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card 10 USD","face_value":"10","face_currency":"USD","product_type":"gift_card","kind":"fixed","category":"gift_cards","region":"United States","region_code":"US","platform":null,"delivery_kind":"code","availability":"available","unavailable_reason":null,"stock":"3","price":{"amount":"10.00","currency":"USD","version":"pv_0123456789abcdef0123456789abcdef","checked_at":"2026-10-01T12:00:00Z"},"input_schema":[{"key":"email","label":"Recipient email","type":"string","required":true,"description":null,"options":[],"pattern":null,"min":null,"max":null,"step":null,"min_length":null,"max_length":"254"}],"catalog_revision":42,"price_updated_at":"2026-10-01T12:00:00Z","replaced_by":null}]}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"ETag":{"description":"Weak validator; send it back in If-None-Match to get 304 when unchanged","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":{"code":"NOT_FOUND","message":"Product or offer not found","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"304":{"description":"Not modified: the If-None-Match tag still matches"}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/products/{product_id}/offers":{"get":{"tags":["B2B v2 Catalog"],"summary":"Offers of a product, paginated","operationId":"get_product_offers_b2b_v2_catalog_products__product_id__offers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Cursor"}},{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean","description":"Also list retired offers (tombstones)","default":false,"title":"Include Retired"},"description":"Also list retired offers (tombstones)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogOfferList"},"example":{"product_id":"prd_0123456789abcdef0123456789abcdef","items":[{"offer_id":"off_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card 10 USD","face_value":"10","face_currency":"USD","product_type":"gift_card","kind":"fixed","category":"gift_cards","region":"United States","region_code":"US","platform":null,"delivery_kind":"code","availability":"available","unavailable_reason":null,"stock":"3","price":{"amount":"10.00","currency":"USD","version":"pv_0123456789abcdef0123456789abcdef","checked_at":"2026-10-01T12:00:00Z"},"input_schema":[{"key":"email","label":"Recipient email","type":"string","required":true,"description":null,"options":[],"pattern":null,"min":null,"max":null,"step":null,"min_length":null,"max_length":"254"}],"catalog_revision":42,"price_updated_at":"2026-10-01T12:00:00Z","replaced_by":null}],"catalog_revision":42,"next_cursor":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"ETag":{"description":"Weak validator; send it back in If-None-Match to get 304 when unchanged","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"400":{"description":"INVALID_CURSOR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_CURSOR":{"summary":"INVALID_CURSOR","value":{"error":{"code":"INVALID_CURSOR","message":"Invalid catalog cursor","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":{"code":"NOT_FOUND","message":"Product or offer not found","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"304":{"description":"Not modified: the If-None-Match tag still matches"}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/offers/{offer_id}":{"get":{"tags":["B2B v2 Catalog"],"summary":"Offer price, availability and input fields","operationId":"get_offer_b2b_v2_catalog_offers__offer_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogOffer"},"example":{"offer_id":"off_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card 10 USD","face_value":"10","face_currency":"USD","product_type":"gift_card","kind":"fixed","category":"gift_cards","region":"United States","region_code":"US","platform":null,"delivery_kind":"code","availability":"available","unavailable_reason":null,"stock":"3","price":{"amount":"10.00","currency":"USD","version":"pv_0123456789abcdef0123456789abcdef","checked_at":"2026-10-01T12:00:00Z"},"input_schema":[{"key":"email","label":"Recipient email","type":"string","required":true,"description":null,"options":[],"pattern":null,"min":null,"max":null,"step":null,"min_length":null,"max_length":"254"}],"catalog_revision":42,"price_updated_at":"2026-10-01T12:00:00Z","replaced_by":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"ETag":{"description":"Weak validator; send it back in If-None-Match to get 304 when unchanged","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":{"code":"NOT_FOUND","message":"Product or offer not found","category":"catalog","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"304":{"description":"Not modified: the If-None-Match tag still matches"}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/catalog/offers/lookup":{"post":{"tags":["B2B v2 Catalog"],"summary":"Refresh up to 100 known offers (read-only)","operationId":"lookup_offers_b2b_v2_catalog_offers_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferLookupRequest"},"example":{"offer_ids":["off_0123456789abcdef0123456789abcdef","off_unknown"]}}},"required":true},"responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2CatalogLookupResponse"},"example":{"items":[{"offer_id":"off_0123456789abcdef0123456789abcdef","item":{"offer_id":"off_0123456789abcdef0123456789abcdef","product_id":"prd_0123456789abcdef0123456789abcdef","name":"Example Gift Card 10 USD","face_value":"10","face_currency":"USD","product_type":"gift_card","kind":"fixed","category":"gift_cards","region":"United States","region_code":"US","platform":null,"delivery_kind":"code","availability":"available","unavailable_reason":null,"stock":"3","price":{"amount":"10.00","currency":"USD","version":"pv_0123456789abcdef0123456789abcdef","checked_at":"2026-10-01T12:00:00Z"},"input_schema":[{"key":"email","label":"Recipient email","type":"string","required":true,"description":null,"options":[],"pattern":null,"min":null,"max":null,"step":null,"min_length":null,"max_length":"254"}],"catalog_revision":42,"price_updated_at":"2026-10-01T12:00:00Z","replaced_by":null}},{"offer_id":"off_unknown","error":{"code":"NOT_FOUND"}}]}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is temporarily unavailable","category":"catalog","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["catalog:read"]}},"/b2b/v2/orders":{"post":{"tags":["Partner API v2 - orders"],"summary":"Accept one fixed-price order","description":"Accepts one durable order. A 202 response is not completion; poll the order. Sandbox orders and delivered codes are simulated; nothing is bought. If the order was accepted but its snapshot cannot be read, the 202 body is only {order_id, reference_id, status: created, snapshot_unavailable: true}; read the order by its id.","operationId":"create_order_b2b_v2_orders_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"X-Sandbox-Scenario","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)","title":"X-Sandbox-Scenario"},"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)"},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixedOrderBody"},"example":{"offer_id":"off_0123456789abcdef0123456789abcdef","price_version":"pv_0123456789abcdef0123456789abcdef","max_total":"10.00","fields":{},"quantity":1}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/V2Order"},{"$ref":"#/components/schemas/V2OrderSnapshotUnavailable"}],"title":"Response Create Order B2B V2 Orders Post"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-fixed-order-001","offer_id":"off_0123456789abcdef0123456789abcdef","price_version":"pv_0123456789abcdef0123456789abcdef","status":"created","amount":"10.00","currency":"USD","financial_state":"reserved","reserved_amount":"10.00","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_OFFER_ID; INVALID_PRICE_VERSION; INVALID_FIELDS; INVALID_SANDBOX_SCENARIO; SANDBOX_SCENARIO_NOT_ALLOWED; INVALID_MAX_TOTAL","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_OFFER_ID":{"summary":"INVALID_OFFER_ID","value":{"error":{"code":"INVALID_OFFER_ID","message":"Invalid offer_id","category":"validation","retryable":false,"fields":[{"field":"offer_id","message":"Invalid offer_id"}]},"request_id":"example-request-001"}},"INVALID_PRICE_VERSION":{"summary":"INVALID_PRICE_VERSION","value":{"error":{"code":"INVALID_PRICE_VERSION","message":"price_version is required","category":"validation","retryable":false,"fields":[{"field":"price_version","message":"price_version is required"}]},"request_id":"example-request-001"}},"INVALID_FIELDS":{"summary":"INVALID_FIELDS","value":{"error":{"code":"INVALID_FIELDS","message":"missing required fields: account","category":"validation","retryable":false,"fields":[{"field":"fields","message":"missing required fields: account"}]},"request_id":"example-request-001"}},"INVALID_SANDBOX_SCENARIO":{"summary":"INVALID_SANDBOX_SCENARIO","value":{"error":{"code":"INVALID_SANDBOX_SCENARIO","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"SANDBOX_SCENARIO_NOT_ALLOWED":{"summary":"SANDBOX_SCENARIO_NOT_ALLOWED","value":{"error":{"code":"SANDBOX_SCENARIO_NOT_ALLOWED","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"INVALID_MAX_TOTAL":{"summary":"INVALID_MAX_TOTAL","value":{"error":{"code":"INVALID_MAX_TOTAL","message":"max_total must be a positive decimal string with at most 2 places","category":"validation","retryable":false,"fields":[{"field":"max_total","message":"max_total must be a positive decimal string with at most 2 places"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICE_UNAVAILABLE; CATALOG_UNAVAILABLE; ORDER_REQUIRES_RECONCILIATION; BALANCE_RECONCILIATION_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICE_UNAVAILABLE":{"summary":"PRICE_UNAVAILABLE","value":{"error":{"code":"PRICE_UNAVAILABLE","message":"Price could not be verified","category":"upstream","retryable":true,"fields":[{"field":"offer_id","message":"Price could not be verified"}]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Order catalog is not ready","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}},"BALANCE_RECONCILIATION_REQUIRED":{"summary":"BALANCE_RECONCILIATION_REQUIRED","value":{"error":{"code":"BALANCE_RECONCILIATION_REQUIRED","message":"Balance requires reconciliation","category":"internal","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"402":{"description":"INSUFFICIENT_BALANCE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_BALANCE":{"summary":"INSUFFICIENT_BALANCE","value":{"error":{"code":"INSUFFICIENT_BALANCE","message":"Insufficient balance","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"OFFER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_NOT_FOUND":{"summary":"OFFER_NOT_FOUND","value":{"error":{"code":"OFFER_NOT_FOUND","message":"Offer not found","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"PRICE_CHANGED; OFFER_KIND_MISMATCH; OFFER_UNAVAILABLE; MAX_TOTAL_BELOW_PRICE; IDEMPOTENCY_CONFLICT","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"PRICE_CHANGED":{"summary":"PRICE_CHANGED","value":{"error":{"code":"PRICE_CHANGED","message":"Price version changed; reload the offer","category":"business","retryable":false,"fields":[{"field":"price_version","message":"Price version changed; reload the offer"}]},"request_id":"example-request-001"}},"OFFER_KIND_MISMATCH":{"summary":"OFFER_KIND_MISMATCH","value":{"error":{"code":"OFFER_KIND_MISMATCH","message":"Offer kind does not match this operation: fixed offers use POST /orders, variable offers POST /quotes","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer kind does not match this operation: fixed offers use POST /orders, variable offers POST /quotes"}]},"request_id":"example-request-001"}},"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"Offer is not available","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer is not available"}]},"request_id":"example-request-001"}},"MAX_TOTAL_BELOW_PRICE":{"summary":"MAX_TOTAL_BELOW_PRICE","value":{"error":{"code":"MAX_TOTAL_BELOW_PRICE","message":"Offer total exceeds max_total","category":"business","retryable":false,"fields":[{"field":"max_total","message":"Offer total exceeds max_total"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another order request","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:write"]},"get":{"tags":["Partner API v2 - orders"],"summary":"Find an order by your reference","operationId":"lookup_order_b2b_v2_orders_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"reference_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Reference Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Order"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-fixed-order-001","offer_id":"off_0123456789abcdef0123456789abcdef","price_version":"pv_0123456789abcdef0123456789abcdef","status":"created","amount":"10.00","currency":"USD","financial_state":"reserved","reserved_amount":"10.00","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; ORDER_REQUIRES_RECONCILIATION","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"ORDER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"ORDER_NOT_FOUND":{"summary":"ORDER_NOT_FOUND","value":{"error":{"code":"ORDER_NOT_FOUND","message":"Order not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:read"]}},"/b2b/v2/orders/{order_id}":{"get":{"tags":["Partner API v2 - orders"],"summary":"Read an order without issued codes","operationId":"read_order_b2b_v2_orders__order_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Order"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-fixed-order-001","offer_id":"off_0123456789abcdef0123456789abcdef","price_version":"pv_0123456789abcdef0123456789abcdef","status":"created","amount":"10.00","currency":"USD","financial_state":"reserved","reserved_amount":"10.00","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; ORDER_REQUIRES_RECONCILIATION","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"ORDER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"ORDER_NOT_FOUND":{"summary":"ORDER_NOT_FOUND","value":{"error":{"code":"ORDER_NOT_FOUND","message":"Order not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:read"]}},"/b2b/v2/orders/{order_id}/codes":{"get":{"tags":["Partner API v2 - codes"],"summary":"Read verified private delivery for your completed order","description":"Only completed, financially verified orders expose private delivery. Voucher orders retain codes; eSIM orders return one structured esim_profiles entry and an empty codes list. Treat all installation fields as secrets and never cache or log them. Sandbox codes are simulated.","operationId":"get_order_codes_b2b_v2_orders__order_id__codes_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2IssuedCodes"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","count":1,"codes":["EXAMPLE-NOT-A-VALID-CODE"]}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CODES_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CODES_UNAVAILABLE":{"summary":"CODES_UNAVAILABLE","value":{"error":{"code":"CODES_UNAVAILABLE","message":"Verified codes cannot be read","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"ORDER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"ORDER_NOT_FOUND":{"summary":"ORDER_NOT_FOUND","value":{"error":{"code":"ORDER_NOT_FOUND","message":"Order not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"CODES_NOT_READY","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"CODES_NOT_READY":{"summary":"CODES_NOT_READY","value":{"error":{"code":"CODES_NOT_READY","message":"Verified codes are not ready","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["codes:read"]}},"/b2b/v2/quotes":{"post":{"tags":["Partner API v2 - quotes"],"summary":"Prepare one unpaid quote for an exact public variable offer","description":"Prepares a saved unpaid quote without debiting the buyer. Poll until ready before confirming. Sandbox quote amounts are simulated; nothing is reserved or bought.","operationId":"create_quote_b2b_v2_quotes_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2QuoteRequest"},"example":{"offer_id":"off_fedcba9876543210fedcba9876543210","fields":{"account":"example_player","amount":"5.00"}}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteOut"},"example":{"quote_id":"qt2_0123456789abcdef0123456789abcdef","offer_id":"off_fedcba9876543210fedcba9876543210","state":"preparing","amount":null,"currency":null,"expires_at":"2026-10-01T12:10:00Z","error_code":null,"order_id":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_OFFER_ID; INVALID_FIELDS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_OFFER_ID":{"summary":"INVALID_OFFER_ID","value":{"error":{"code":"INVALID_OFFER_ID","message":"Invalid offer_id","category":"validation","retryable":false,"fields":[{"field":"offer_id","message":"Invalid offer_id"}]},"request_id":"example-request-001"}},"INVALID_FIELDS":{"summary":"INVALID_FIELDS","value":{"error":{"code":"INVALID_FIELDS","message":"Invalid quote fields","category":"validation","retryable":false,"fields":[{"field":"fields","message":"Invalid quote fields"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED; TOO_MANY_OPEN_QUOTES","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}},"TOO_MANY_OPEN_QUOTES":{"summary":"TOO_MANY_OPEN_QUOTES","value":{"error":{"code":"TOO_MANY_OPEN_QUOTES","message":"Too many unexpired quotes; confirm or wait for some to expire","category":"business","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; QUOTE_RECONCILIATION_REQUIRED; QUOTE_UNAVAILABLE; PRICING_UNAVAILABLE; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"QUOTE_RECONCILIATION_REQUIRED":{"summary":"QUOTE_RECONCILIATION_REQUIRED","value":{"error":{"code":"QUOTE_RECONCILIATION_REQUIRED","message":"Retry this quote with the same key","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"QUOTE_UNAVAILABLE":{"summary":"QUOTE_UNAVAILABLE","value":{"error":{"code":"QUOTE_UNAVAILABLE","message":"Quote requires reconciliation; retry the same key or read its status","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"OFFER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_NOT_FOUND":{"summary":"OFFER_NOT_FOUND","value":{"error":{"code":"OFFER_NOT_FOUND","message":"Offer not found","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"OFFER_UNAVAILABLE; OFFER_KIND_MISMATCH; QUOTE_UNAVAILABLE; IDEMPOTENCY_CONFLICT; QUOTE_EXPIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"Offer is unavailable","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer is unavailable"}]},"request_id":"example-request-001"}},"OFFER_KIND_MISMATCH":{"summary":"OFFER_KIND_MISMATCH","value":{"error":{"code":"OFFER_KIND_MISMATCH","message":"Offer kind does not match this operation: fixed offers use POST /orders, variable offers POST /quotes","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer kind does not match this operation: fixed offers use POST /orders, variable offers POST /quotes"}]},"request_id":"example-request-001"}},"QUOTE_UNAVAILABLE":{"summary":"QUOTE_UNAVAILABLE","value":{"error":{"code":"QUOTE_UNAVAILABLE","message":"Quote is unavailable for this offer or key","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Quote is unavailable for this offer or key"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another quote","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"QUOTE_EXPIRED":{"summary":"QUOTE_EXPIRED","value":{"error":{"code":"QUOTE_EXPIRED","message":"Quote expired; use a new key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}]}},"/b2b/v2/quotes/{quote_id}":{"get":{"tags":["Partner API v2 - quotes"],"summary":"Read or reconcile an unpaid quote","operationId":"read_quote_b2b_v2_quotes__quote_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteOut"},"example":{"quote_id":"qt2_0123456789abcdef0123456789abcdef","offer_id":"off_fedcba9876543210fedcba9876543210","state":"ready","amount":"5.50","currency":"USD","expires_at":"2026-10-01T12:10:00Z","error_code":null,"order_id":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; QUOTE_RECONCILIATION_REQUIRED; QUOTE_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"QUOTE_RECONCILIATION_REQUIRED":{"summary":"QUOTE_RECONCILIATION_REQUIRED","value":{"error":{"code":"QUOTE_RECONCILIATION_REQUIRED","message":"Quote identity requires reconciliation","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"QUOTE_UNAVAILABLE":{"summary":"QUOTE_UNAVAILABLE","value":{"error":{"code":"QUOTE_UNAVAILABLE","message":"Quote requires reconciliation; retry the same key or read its status","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"QUOTE_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"QUOTE_NOT_FOUND":{"summary":"QUOTE_NOT_FOUND","value":{"error":{"code":"QUOTE_NOT_FOUND","message":"Quote not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"QUOTE_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"QUOTE_UNAVAILABLE":{"summary":"QUOTE_UNAVAILABLE","value":{"error":{"code":"QUOTE_UNAVAILABLE","message":"Quote is unavailable for this offer or key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:read"]}},"/b2b/v2/quotes/{quote_id}/confirm":{"post":{"tags":["Partner API v2 - quotes"],"summary":"Confirm the exact saved quote under a maximum total","description":"Confirms one saved quote exactly once. A price or offer change requires a new quote; the API never silently accepts a higher price or different terms.","operationId":"confirm_quote_b2b_v2_quotes__quote_id__confirm_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}},{"name":"X-Sandbox-Scenario","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)","title":"X-Sandbox-Scenario"},"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)"},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2QuoteConfirmRequest"},"example":{"max_total":"5.50"}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/V2Order"},{"$ref":"#/components/schemas/V2OrderSnapshotUnavailable"}],"title":"Response Confirm Quote B2B V2 Quotes  Quote Id  Confirm Post"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-quote-confirm-001","offer_id":"off_fedcba9876543210fedcba9876543210","price_version":null,"status":"created","amount":"5.50","currency":"USD","financial_state":"reserved","reserved_amount":"5.50","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_SANDBOX_SCENARIO; SANDBOX_SCENARIO_NOT_ALLOWED; INVALID_MAX_TOTAL","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_SANDBOX_SCENARIO":{"summary":"INVALID_SANDBOX_SCENARIO","value":{"error":{"code":"INVALID_SANDBOX_SCENARIO","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"SANDBOX_SCENARIO_NOT_ALLOWED":{"summary":"SANDBOX_SCENARIO_NOT_ALLOWED","value":{"error":{"code":"SANDBOX_SCENARIO_NOT_ALLOWED","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"INVALID_MAX_TOTAL":{"summary":"INVALID_MAX_TOTAL","value":{"error":{"code":"INVALID_MAX_TOTAL","message":"max_total must be a positive decimal string with at most 2 places","category":"validation","retryable":false,"fields":[{"field":"max_total","message":"max_total must be a positive decimal string with at most 2 places"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; QUOTE_RECONCILIATION_REQUIRED; ORDER_REQUIRES_RECONCILIATION; PRICING_UNAVAILABLE; CATALOG_UNAVAILABLE; BALANCE_RECONCILIATION_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"QUOTE_RECONCILIATION_REQUIRED":{"summary":"QUOTE_RECONCILIATION_REQUIRED","value":{"error":{"code":"QUOTE_RECONCILIATION_REQUIRED","message":"Quote requires reconciliation","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"BALANCE_RECONCILIATION_REQUIRED":{"summary":"BALANCE_RECONCILIATION_REQUIRED","value":{"error":{"code":"BALANCE_RECONCILIATION_REQUIRED","message":"Balance requires reconciliation","category":"internal","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"402":{"description":"INSUFFICIENT_BALANCE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_BALANCE":{"summary":"INSUFFICIENT_BALANCE","value":{"error":{"code":"INSUFFICIENT_BALANCE","message":"Insufficient balance","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"QUOTE_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"QUOTE_NOT_FOUND":{"summary":"QUOTE_NOT_FOUND","value":{"error":{"code":"QUOTE_NOT_FOUND","message":"Quote not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"PRICE_CHANGED; MAX_TOTAL_BELOW_PRICE; OFFER_CHANGED; QUOTE_NOT_READY; QUOTE_EXPIRED; IDEMPOTENCY_CONFLICT","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"PRICE_CHANGED":{"summary":"PRICE_CHANGED","value":{"error":{"code":"PRICE_CHANGED","message":"Pricing changed after the quote; request a new quote","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"MAX_TOTAL_BELOW_PRICE":{"summary":"MAX_TOTAL_BELOW_PRICE","value":{"error":{"code":"MAX_TOTAL_BELOW_PRICE","message":"Quote total exceeds max_total","category":"business","retryable":false,"fields":[{"field":"max_total","message":"Quote total exceeds max_total"}]},"request_id":"example-request-001"}},"OFFER_CHANGED":{"summary":"OFFER_CHANGED","value":{"error":{"code":"OFFER_CHANGED","message":"Offer changed after the quote; request a new quote","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer changed after the quote; request a new quote"}]},"request_id":"example-request-001"}},"QUOTE_NOT_READY":{"summary":"QUOTE_NOT_READY","value":{"error":{"code":"QUOTE_NOT_READY","message":"Quote is not ready","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"QUOTE_EXPIRED":{"summary":"QUOTE_EXPIRED","value":{"error":{"code":"QUOTE_EXPIRED","message":"Quote is no longer payable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another purchase","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:write"]}},"/b2b/v2/steam-gifts/games":{"get":{"tags":["Partner API v2 - Steam gifts"],"summary":"List games that can be gifted","description":"scope=showcase (default): popular games. scope=all: every game on sale, in app_id order, so the pages stay stable while you read them. With search: every game whose name matches, whatever the scope. total counts every matching game. Prices are this partner's.","operationId":"list_games_b2b_v2_steam_gifts_games_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","maxLength":20,"description":"showcase or all","default":"showcase","title":"Scope"},"description":"showcase or all"},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":0,"default":0,"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftGamePage"},"example":{"items":[{"app_id":252490,"name":"Rust","is_dlc":false,"price_from":"18.99","purchase_available":true,"edition_count":1,"image_url":"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/header.jpg"}],"next_cursor":30,"total":8065}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; INVALID_SCOPE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_SCOPE":{"summary":"INVALID_SCOPE","value":{"error":{"code":"INVALID_SCOPE","message":"scope must be showcase or all","category":"validation","retryable":false,"fields":[{"field":"scope","message":"scope must be showcase or all"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/steam-gifts/games/{app_id}":{"get":{"tags":["Partner API v2 - Steam gifts"],"summary":"Editions, regions and prices of one game","description":"Prices are given per Steam price zone and per recipient link type; null means that link type is not sold for that zone. The region must match the recipient's Steam account.","operationId":"get_game_b2b_v2_steam_gifts_games__app_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftGameDetail"},"example":{"app_id":252490,"name":"Rust","is_dlc":false,"image_url":"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/header.jpg","editions":[{"edition_id":"sub:244390","name":"Rust","price_from":"18.99","regions":[{"region":"RU","name":"Россия","prices":{"invite":"20.38","profile":"18.99"},"updated_at":"2026-10-01T11:58:00Z"},{"region":"KZ","name":"Казахстан","prices":{"invite":"22.40","profile":null},"updated_at":"2026-10-01T11:40:00Z"}]}]}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE; GAME_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"GAME_NOT_FOUND":{"summary":"GAME_NOT_FOUND","value":{"error":{"code":"GAME_NOT_FOUND","message":"Game not found","category":"business","retryable":false,"fields":[{"field":"app_id","message":"Game not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/steam-gifts/prices":{"get":{"tags":["Partner API v2 - Steam gifts"],"summary":"Editions, regions and prices of several games","description":"The same answer as GET /steam-gifts/games/{app_id} for up to 50 games in one request, e.g. app_ids=252490,1245620. Use it to keep your prices current instead of reading the games one by one.","operationId":"get_prices_b2b_v2_steam_gifts_prices_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"app_ids","in":"query","required":true,"schema":{"type":"string","maxLength":600,"description":"Comma-separated Steam AppIDs","title":"App Ids"},"description":"Comma-separated Steam AppIDs"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftPrices"},"example":{"items":[{"app_id":252490,"name":"Rust","is_dlc":false,"image_url":"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/header.jpg","editions":[{"edition_id":"sub:244390","name":"Rust","price_from":"18.99","regions":[{"region":"RU","name":"Россия","prices":{"invite":"20.38","profile":"18.99"},"updated_at":"2026-10-01T11:58:00Z"},{"region":"KZ","name":"Казахстан","prices":{"invite":"22.40","profile":null},"updated_at":"2026-10-01T11:40:00Z"}]}]}],"not_found":[999999999]}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; INVALID_APP_IDS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_APP_IDS":{"summary":"INVALID_APP_IDS","value":{"error":{"code":"INVALID_APP_IDS","message":"app_ids must be 1 to 50 distinct Steam AppIDs separated by commas","category":"validation","retryable":false,"fields":[{"field":"app_ids","message":"app_ids must be 1 to 50 distinct Steam AppIDs separated by commas"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["catalog:read"]}},"/b2b/v2/steam-gifts/regions":{"get":{"tags":["Partner API v2 - Steam gifts"],"summary":"Steam price zones and their countries","description":"Every region a quote accepts, with the countries it covers. A quote may give the recipient's country instead of the region.","operationId":"list_regions_b2b_v2_steam_gifts_regions_get","responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftZones"},"example":{"items":[{"region":"RU","name":"Россия","countries":["RU"]},{"region":"CIS","name":"СНГ (доллар США)","countries":["AM","AZ","BY","GE","KG","MD","TJ","TM","UZ"]}]}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["catalog:read"]}},"/b2b/v2/steam-gifts/quotes":{"post":{"tags":["Partner API v2 - Steam gifts"],"summary":"Price one gift for a recipient","description":"Prices one edition for one Steam price zone and recipient link, valid for 15 minutes. Give region, or country (the recipient's ISO country) and the zone is found for you; GET /steam-gifts/regions lists both. Nothing is charged or reserved. Retrying with the same key and body returns the same quote.","operationId":"create_quote_b2b_v2_steam_gifts_quotes_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftQuoteCreateBody"},"example":{"app_id":252490,"edition_id":"sub:244390","region":"RU","recipient_url":"https://s.team/p/abcd-efgh/ABCDEFGH"}}}},"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftQuoteOut"},"example":{"quote_id":"gq_0123456789abcdef01234567","state":"ready","app_id":252490,"edition_id":"sub:244390","region":"RU","recipient_type":"invite","amount":"20.38","currency":"USD","expires_at":"2026-10-01T12:15:00Z","order_id":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_APP_ID; INVALID_EDITION_ID; INVALID_REGION; INVALID_COUNTRY; COUNTRY_NOT_SUPPORTED; REGION_COUNTRY_MISMATCH; INVALID_RECIPIENT_URL","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_APP_ID":{"summary":"INVALID_APP_ID","value":{"error":{"code":"INVALID_APP_ID","message":"app_id must be a positive Steam AppID","category":"validation","retryable":false,"fields":[{"field":"app_id","message":"app_id must be a positive Steam AppID"}]},"request_id":"example-request-001"}},"INVALID_EDITION_ID":{"summary":"INVALID_EDITION_ID","value":{"error":{"code":"INVALID_EDITION_ID","message":"edition_id must look like sub:123 or partner:123","category":"validation","retryable":false,"fields":[{"field":"edition_id","message":"edition_id must look like sub:123 or partner:123"}]},"request_id":"example-request-001"}},"INVALID_REGION":{"summary":"INVALID_REGION","value":{"error":{"code":"INVALID_REGION","message":"region is not a supported Steam price zone","category":"validation","retryable":false,"fields":[{"field":"region","message":"region is not a supported Steam price zone"}]},"request_id":"example-request-001"}},"INVALID_COUNTRY":{"summary":"INVALID_COUNTRY","value":{"error":{"code":"INVALID_COUNTRY","message":"country must be a two-letter ISO 3166-1 code","category":"validation","retryable":false,"fields":[{"field":"country","message":"country must be a two-letter ISO 3166-1 code"}]},"request_id":"example-request-001"}},"COUNTRY_NOT_SUPPORTED":{"summary":"COUNTRY_NOT_SUPPORTED","value":{"error":{"code":"COUNTRY_NOT_SUPPORTED","message":"No Steam price zone is known for this country; pass region instead","category":"validation","retryable":false,"fields":[{"field":"country","message":"No Steam price zone is known for this country; pass region instead"}]},"request_id":"example-request-001"}},"REGION_COUNTRY_MISMATCH":{"summary":"REGION_COUNTRY_MISMATCH","value":{"error":{"code":"REGION_COUNTRY_MISMATCH","message":"country belongs to region CIS","category":"validation","retryable":false,"fields":[{"field":"region","message":"country belongs to region CIS"}]},"request_id":"example-request-001"}},"INVALID_RECIPIENT_URL":{"summary":"INVALID_RECIPIENT_URL","value":{"error":{"code":"INVALID_RECIPIENT_URL","message":"recipient_url must be https://s.team/p/… or https://steamcommunity.com/…","category":"validation","retryable":false,"fields":[{"field":"recipient_url","message":"recipient_url must be https://s.team/p/… or https://steamcommunity.com/…"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE; GAME_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"GAME_NOT_FOUND":{"summary":"GAME_NOT_FOUND","value":{"error":{"code":"GAME_NOT_FOUND","message":"Game not found","category":"business","retryable":false,"fields":[{"field":"app_id","message":"Game not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"OFFER_UNAVAILABLE; RECIPIENT_TYPE_UNSUPPORTED; IDEMPOTENCY_CONFLICT","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"This edition is not sold in this region now","category":"business","retryable":false,"fields":[{"field":"edition_id","message":"This edition is not sold in this region now"}]},"request_id":"example-request-001"}},"RECIPIENT_TYPE_UNSUPPORTED":{"summary":"RECIPIENT_TYPE_UNSUPPORTED","value":{"error":{"code":"RECIPIENT_TYPE_UNSUPPORTED","message":"This region needs an invite link (https://s.team/p/…)","category":"business","retryable":false,"fields":[{"field":"recipient_url","message":"This region needs an invite link (https://s.team/p/…)"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another quote","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}]}},"/b2b/v2/steam-gifts/quotes/{quote_id}":{"get":{"tags":["Partner API v2 - Steam gifts"],"summary":"Read a gift quote","operationId":"read_quote_b2b_v2_steam_gifts_quotes__quote_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftQuoteOut"},"example":{"quote_id":"gq_0123456789abcdef01234567","state":"ready","app_id":252490,"edition_id":"sub:244390","region":"RU","recipient_type":"invite","amount":"20.38","currency":"USD","expires_at":"2026-10-01T12:15:00Z","order_id":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE; QUOTE_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"QUOTE_NOT_FOUND":{"summary":"QUOTE_NOT_FOUND","value":{"error":{"code":"QUOTE_NOT_FOUND","message":"Quote not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:read"]}},"/b2b/v2/steam-gifts/quotes/{quote_id}/confirm":{"post":{"tags":["Partner API v2 - Steam gifts"],"summary":"Buy the quoted gift under a maximum total","description":"Accepts one order exactly once. The price is calculated again; the debit is the current price, never above the quote or max_total. A 202 is not delivery: read the order or wait for its webhook. Delivery can take a while because the recipient must accept a Steam friend request.","operationId":"confirm_quote_b2b_v2_steam_gifts_quotes__quote_id__confirm_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}},{"name":"X-Sandbox-Scenario","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)","title":"X-Sandbox-Scenario"},"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)"},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftQuoteConfirmBody"},"example":{"max_total":"20.38"}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/V2Order"},{"$ref":"#/components/schemas/V2OrderSnapshotUnavailable"}],"title":"Response Confirm Quote B2B V2 Steam Gifts Quotes  Quote Id  Confirm Post"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-gift-confirm-001","offer_id":null,"price_version":"gq_0123456789abcdef01234567","status":"created","amount":"20.38","currency":"USD","financial_state":"reserved","reserved_amount":"20.38","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":{"app_id":252490,"game":"Rust","edition_id":"sub:244390","edition":"Rust","region":"RU","recipient_type":"invite","delivery":"pending"}}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_MAX_TOTAL; INVALID_SANDBOX_SCENARIO; SANDBOX_SCENARIO_NOT_ALLOWED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_MAX_TOTAL":{"summary":"INVALID_MAX_TOTAL","value":{"error":{"code":"INVALID_MAX_TOTAL","message":"max_total must be a positive decimal string with at most 2 places","category":"validation","retryable":false,"fields":[{"field":"max_total","message":"max_total must be a positive decimal string with at most 2 places"}]},"request_id":"example-request-001"}},"INVALID_SANDBOX_SCENARIO":{"summary":"INVALID_SANDBOX_SCENARIO","value":{"error":{"code":"INVALID_SANDBOX_SCENARIO","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"SANDBOX_SCENARIO_NOT_ALLOWED":{"summary":"SANDBOX_SCENARIO_NOT_ALLOWED","value":{"error":{"code":"SANDBOX_SCENARIO_NOT_ALLOWED","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE; ORDER_REQUIRES_RECONCILIATION; BALANCE_RECONCILIATION_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}},"BALANCE_RECONCILIATION_REQUIRED":{"summary":"BALANCE_RECONCILIATION_REQUIRED","value":{"error":{"code":"BALANCE_RECONCILIATION_REQUIRED","message":"Balance requires reconciliation","category":"internal","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"402":{"description":"INSUFFICIENT_BALANCE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_BALANCE":{"summary":"INSUFFICIENT_BALANCE","value":{"error":{"code":"INSUFFICIENT_BALANCE","message":"Insufficient balance","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE; QUOTE_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"QUOTE_NOT_FOUND":{"summary":"QUOTE_NOT_FOUND","value":{"error":{"code":"QUOTE_NOT_FOUND","message":"Quote not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"PRICE_CHANGED; MAX_TOTAL_BELOW_PRICE; OFFER_UNAVAILABLE; QUOTE_EXPIRED; QUOTE_CONSUMED; IDEMPOTENCY_CONFLICT","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"PRICE_CHANGED":{"summary":"PRICE_CHANGED","value":{"error":{"code":"PRICE_CHANGED","message":"The price rose after the quote; request a new quote","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"MAX_TOTAL_BELOW_PRICE":{"summary":"MAX_TOTAL_BELOW_PRICE","value":{"error":{"code":"MAX_TOTAL_BELOW_PRICE","message":"Order total exceeds max_total","category":"business","retryable":false,"fields":[{"field":"max_total","message":"Order total exceeds max_total"}]},"request_id":"example-request-001"}},"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"This edition is not sold in this region now","category":"business","retryable":false,"fields":[{"field":"edition_id","message":"This edition is not sold in this region now"}]},"request_id":"example-request-001"}},"QUOTE_EXPIRED":{"summary":"QUOTE_EXPIRED","value":{"error":{"code":"QUOTE_EXPIRED","message":"Quote is no longer payable; request a new quote","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"QUOTE_CONSUMED":{"summary":"QUOTE_CONSUMED","value":{"error":{"code":"QUOTE_CONSUMED","message":"Quote was already confirmed; read its order","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another purchase","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["quotes:write"]}},"/b2b/v2/steam-gifts/orders":{"post":{"tags":["Partner API v2 - Steam gifts"],"summary":"Buy one gift in one request","description":"Prices the gift now and accepts the order in the same request, never above max_total: the debit is the current price. Give region, or country (the recipient's ISO country). Retrying with the same key and body answers the same order. A 202 is not delivery: read the order (its steam_gift.delivery says what it waits for) or wait for its webhook. Use quotes instead when you need to show a held price first.","operationId":"create_order_b2b_v2_steam_gifts_orders_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"X-Sandbox-Scenario","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)","title":"X-Sandbox-Scenario"},"description":"Sandbox keys only: failed, delayed, price_changed or insufficient_balance (case-insensitive; an empty value is ignored)"},{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique reference for this operation (1–128 URL-safe characters). Retry the same operation with the same key and identical input; use a different key for quote creation and confirmation.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"example":"example-operation-001"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftOrderCreateBody"},"example":{"app_id":252490,"edition_id":"sub:244390","country":"BY","recipient_url":"https://s.team/p/abcd-efgh/ABCDEFGH","max_total":"21.00"}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/V2Order"},{"$ref":"#/components/schemas/V2OrderSnapshotUnavailable"}],"title":"Response Create Order B2B V2 Steam Gifts Orders Post"},"example":{"order_id":"fb15a722-1548-458a-8e82-1433c75298f8","reference_id":"example-gift-confirm-001","offer_id":null,"price_version":"gq_0123456789abcdef01234567","status":"created","amount":"20.38","currency":"USD","financial_state":"reserved","reserved_amount":"20.38","settled_amount":"0.00","refunded_amount":"0.00","created_at":"2026-10-01T12:00:00Z","updated_at":"2026-10-01T12:00:00Z","completed_at":null,"failure_reason":null,"steam_gift":{"app_id":252490,"game":"Rust","edition_id":"sub:244390","edition":"Rust","region":"RU","recipient_type":"invite","delivery":"pending"}}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; IDEMPOTENCY_KEY_REQUIRED; INVALID_IDEMPOTENCY_KEY; INVALID_APP_ID; INVALID_EDITION_ID; INVALID_REGION; INVALID_COUNTRY; COUNTRY_NOT_SUPPORTED; REGION_COUNTRY_MISMATCH; INVALID_RECIPIENT_URL; INVALID_MAX_TOTAL; INVALID_SANDBOX_SCENARIO; SANDBOX_SCENARIO_NOT_ALLOWED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":{"code":"IDEMPOTENCY_KEY_REQUIRED","message":"Idempotency-Key header is required","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key header is required"}]},"request_id":"example-request-001"}},"INVALID_IDEMPOTENCY_KEY":{"summary":"INVALID_IDEMPOTENCY_KEY","value":{"error":{"code":"INVALID_IDEMPOTENCY_KEY","message":"Idempotency-Key must contain 1 to 128 URL-safe characters","category":"validation","retryable":false,"fields":[{"field":"Idempotency-Key","message":"Idempotency-Key must contain 1 to 128 URL-safe characters"}]},"request_id":"example-request-001"}},"INVALID_APP_ID":{"summary":"INVALID_APP_ID","value":{"error":{"code":"INVALID_APP_ID","message":"app_id must be a positive Steam AppID","category":"validation","retryable":false,"fields":[{"field":"app_id","message":"app_id must be a positive Steam AppID"}]},"request_id":"example-request-001"}},"INVALID_EDITION_ID":{"summary":"INVALID_EDITION_ID","value":{"error":{"code":"INVALID_EDITION_ID","message":"edition_id must look like sub:123 or partner:123","category":"validation","retryable":false,"fields":[{"field":"edition_id","message":"edition_id must look like sub:123 or partner:123"}]},"request_id":"example-request-001"}},"INVALID_REGION":{"summary":"INVALID_REGION","value":{"error":{"code":"INVALID_REGION","message":"region is not a supported Steam price zone","category":"validation","retryable":false,"fields":[{"field":"region","message":"region is not a supported Steam price zone"}]},"request_id":"example-request-001"}},"INVALID_COUNTRY":{"summary":"INVALID_COUNTRY","value":{"error":{"code":"INVALID_COUNTRY","message":"country must be a two-letter ISO 3166-1 code","category":"validation","retryable":false,"fields":[{"field":"country","message":"country must be a two-letter ISO 3166-1 code"}]},"request_id":"example-request-001"}},"COUNTRY_NOT_SUPPORTED":{"summary":"COUNTRY_NOT_SUPPORTED","value":{"error":{"code":"COUNTRY_NOT_SUPPORTED","message":"No Steam price zone is known for this country; pass region instead","category":"validation","retryable":false,"fields":[{"field":"country","message":"No Steam price zone is known for this country; pass region instead"}]},"request_id":"example-request-001"}},"REGION_COUNTRY_MISMATCH":{"summary":"REGION_COUNTRY_MISMATCH","value":{"error":{"code":"REGION_COUNTRY_MISMATCH","message":"country belongs to region CIS","category":"validation","retryable":false,"fields":[{"field":"region","message":"country belongs to region CIS"}]},"request_id":"example-request-001"}},"INVALID_RECIPIENT_URL":{"summary":"INVALID_RECIPIENT_URL","value":{"error":{"code":"INVALID_RECIPIENT_URL","message":"recipient_url must be https://s.team/p/… or https://steamcommunity.com/…","category":"validation","retryable":false,"fields":[{"field":"recipient_url","message":"recipient_url must be https://s.team/p/… or https://steamcommunity.com/…"}]},"request_id":"example-request-001"}},"INVALID_MAX_TOTAL":{"summary":"INVALID_MAX_TOTAL","value":{"error":{"code":"INVALID_MAX_TOTAL","message":"max_total must be a positive decimal string with at most 2 places","category":"validation","retryable":false,"fields":[{"field":"max_total","message":"max_total must be a positive decimal string with at most 2 places"}]},"request_id":"example-request-001"}},"INVALID_SANDBOX_SCENARIO":{"summary":"INVALID_SANDBOX_SCENARIO","value":{"error":{"code":"INVALID_SANDBOX_SCENARIO","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}},"SANDBOX_SCENARIO_NOT_ALLOWED":{"summary":"SANDBOX_SCENARIO_NOT_ALLOWED","value":{"error":{"code":"SANDBOX_SCENARIO_NOT_ALLOWED","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value","category":"validation","retryable":false,"fields":[{"field":"X-Sandbox-Scenario","message":"X-Sandbox-Scenario is allowed only with a sandbox key and a known value"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; PRICING_UNAVAILABLE; ORDER_REQUIRES_RECONCILIATION; BALANCE_RECONCILIATION_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"PRICING_UNAVAILABLE":{"summary":"PRICING_UNAVAILABLE","value":{"error":{"code":"PRICING_UNAVAILABLE","message":"Current pricing policy is unavailable","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"ORDER_REQUIRES_RECONCILIATION":{"summary":"ORDER_REQUIRES_RECONCILIATION","value":{"error":{"code":"ORDER_REQUIRES_RECONCILIATION","message":"Order identity requires reconciliation","category":"upstream","retryable":false,"fields":[]},"request_id":"example-request-001"}},"BALANCE_RECONCILIATION_REQUIRED":{"summary":"BALANCE_RECONCILIATION_REQUIRED","value":{"error":{"code":"BALANCE_RECONCILIATION_REQUIRED","message":"Balance requires reconciliation","category":"internal","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"402":{"description":"INSUFFICIENT_BALANCE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_BALANCE":{"summary":"INSUFFICIENT_BALANCE","value":{"error":{"code":"INSUFFICIENT_BALANCE","message":"Insufficient balance","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"STEAM_GIFTS_UNAVAILABLE; GAME_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"STEAM_GIFTS_UNAVAILABLE":{"summary":"STEAM_GIFTS_UNAVAILABLE","value":{"error":{"code":"STEAM_GIFTS_UNAVAILABLE","message":"Steam gifts are not available for this API key","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"GAME_NOT_FOUND":{"summary":"GAME_NOT_FOUND","value":{"error":{"code":"GAME_NOT_FOUND","message":"Game not found","category":"business","retryable":false,"fields":[{"field":"app_id","message":"Game not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"OFFER_UNAVAILABLE; RECIPIENT_TYPE_UNSUPPORTED; MAX_TOTAL_BELOW_PRICE; PRICE_CHANGED; IDEMPOTENCY_CONFLICT","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"This edition is not sold in this region now","category":"business","retryable":false,"fields":[{"field":"edition_id","message":"This edition is not sold in this region now"}]},"request_id":"example-request-001"}},"RECIPIENT_TYPE_UNSUPPORTED":{"summary":"RECIPIENT_TYPE_UNSUPPORTED","value":{"error":{"code":"RECIPIENT_TYPE_UNSUPPORTED","message":"This region needs an invite link (https://s.team/p/…)","category":"business","retryable":false,"fields":[{"field":"recipient_url","message":"This region needs an invite link (https://s.team/p/…)"}]},"request_id":"example-request-001"}},"MAX_TOTAL_BELOW_PRICE":{"summary":"MAX_TOTAL_BELOW_PRICE","value":{"error":{"code":"MAX_TOTAL_BELOW_PRICE","message":"The gift costs 20.38 USD, above max_total","category":"business","retryable":false,"fields":[{"field":"max_total","message":"The gift costs 20.38 USD, above max_total"}]},"request_id":"example-request-001"}},"PRICE_CHANGED":{"summary":"PRICE_CHANGED","value":{"error":{"code":"PRICE_CHANGED","message":"The price rose while the order was accepted; send the request again","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"IDEMPOTENCY_CONFLICT":{"summary":"IDEMPOTENCY_CONFLICT","value":{"error":{"code":"IDEMPOTENCY_CONFLICT","message":"Idempotency-Key was used for another purchase","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:write"]}},"/b2b/v2/webhooks/config":{"get":{"tags":["Partner API v2 - webhooks"],"summary":"Read webhook endpoint and signing status","description":"Returns endpoint and signing status only; the signing secret is never returned by this route.","operationId":"get_v2_webhook_config_b2b_v2_webhooks_config_get","responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookConfig"},"example":{"url":"https://partner.example.com/hooks/rl-sell","has_secret":true,"enabled":true}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"404":{"description":"CLIENT_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"error":{"code":"CLIENT_NOT_FOUND","message":"Client not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["webhooks:manage"]},"put":{"tags":["Partner API v2 - webhooks"],"summary":"Change or disable the public HTTPS webhook endpoint","description":"Set a public HTTPS URL or send null to disable delivery. This operation does not rotate or reveal the signing secret.","operationId":"update_v2_webhook_config_b2b_v2_webhooks_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookUrlUpdate"},"example":{"url":"https://partner.example.com/hooks/rl-sell"}}},"required":true},"responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookConfig"},"example":{"url":"https://partner.example.com/hooks/rl-sell","has_secret":true,"enabled":true}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS; INVALID_WEBHOOK_URL","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_WEBHOOK_URL":{"summary":"INVALID_WEBHOOK_URL","value":{"error":{"code":"INVALID_WEBHOOK_URL","message":"Webhook URL must be HTTPS and its host must resolve to public addresses only","category":"validation","retryable":false,"fields":[{"field":"url","message":"Webhook URL must be HTTPS and its host must resolve to public addresses only"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"404":{"description":"CLIENT_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"error":{"code":"CLIENT_NOT_FOUND","message":"Client not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"409":{"description":"WEBHOOK_SECRET_REQUIRED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"WEBHOOK_SECRET_REQUIRED":{"summary":"WEBHOOK_SECRET_REQUIRED","value":{"error":{"code":"WEBHOOK_SECRET_REQUIRED","message":"A signing secret is required before enabling delivery","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["webhooks:manage"]}},"/b2b/v2/webhooks/deliveries":{"get":{"tags":["Partner API v2 - webhooks"],"summary":"Webhook delivery history, newest first","description":"Delivery attempts for this client's endpoint without event bodies. Use next_cursor for older rows.","operationId":"list_v2_webhook_deliveries_b2b_v2_webhooks_deliveries_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":18},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookDeliveryPage"},"example":{"items":[{"delivery_id":42,"event":"order.completed","order_id":"ord2_0123456789abcdef01234567","status":"pending","attempts":2,"max_attempts":11,"last_status_code":503,"last_error":"HTTP 503","created_at":"2026-10-12T10:00:00Z","next_retry_at":"2026-10-12T10:02:35Z","delivered_at":null}],"next_cursor":"41"}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; INVALID_CURSOR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_CURSOR":{"summary":"INVALID_CURSOR","value":{"error":{"code":"INVALID_CURSOR","message":"Invalid delivery cursor","category":"validation","retryable":false,"fields":[{"field":"cursor","message":"Invalid delivery cursor"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["webhooks:manage"]}},"/b2b/v2/webhooks/test":{"post":{"tags":["Partner API v2 - webhooks"],"summary":"Queue a signed v2 test event to the configured endpoint","description":"Queues one webhook.test event signed exactly like order events. The response does not wait for delivery; read GET /webhooks/deliveries for the result.","operationId":"send_v2_test_webhook_b2b_v2_webhooks_test_post","responses":{"202":{"description":"Accepted","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Location":{"description":"URL of the accepted order or quote","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookTestAccepted"},"example":{"delivery_id":42,"status":"pending"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"404":{"description":"CLIENT_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"error":{"code":"CLIENT_NOT_FOUND","message":"Client not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"409":{"description":"WEBHOOK_NOT_CONFIGURED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"WEBHOOK_NOT_CONFIGURED":{"summary":"WEBHOOK_NOT_CONFIGURED","value":{"error":{"code":"WEBHOOK_NOT_CONFIGURED","message":"Configure a webhook URL and signing secret first","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["webhooks:manage"]}},"/b2b/v2/webhooks/deliveries/{delivery_id}/replay":{"post":{"tags":["Partner API v2 - webhooks"],"summary":"Send one stored event again","description":"Re-sends the stored body with a fresh timestamp and signature. The event_id is unchanged, so receivers deduplicate it. Public-address checks run again before the POST.","operationId":"replay_v2_webhook_b2b_v2_webhooks_deliveries__delivery_id__replay_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WebhookDelivery"},"example":{"delivery_id":42,"event":"order.completed","order_id":"ord2_0123456789abcdef01234567","status":"pending","attempts":2,"max_attempts":11,"last_status_code":503,"last_error":"HTTP 503","created_at":"2026-10-12T10:00:00Z","next_retry_at":"2026-10-12T10:02:35Z","delivered_at":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"DELIVERY_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_NOT_FOUND":{"summary":"DELIVERY_NOT_FOUND","value":{"error":{"code":"DELIVERY_NOT_FOUND","message":"Webhook delivery not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["webhooks:manage"]}},"/b2b/v2/delivery-sessions":{"post":{"tags":["Partner API v2 - delivery sessions"],"summary":"Create a delivery page for a marketplace order","description":"Idempotent by (key's client, marketplace, external_order_id): the same request answers the same session (200); other fields answer 409. After a session expired the same order gets a new one. Nothing is charged until the buyer orders on the page.","operationId":"create_delivery_session_b2b_v2_delivery_sessions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySessionCreate"},"example":{"marketplace":"ggsel","external_order_id":"12345678","offer_id":"of_4f2a91c0d7","quantity":1,"max_unit_price":"9.50","buyer_fields":{"player_id":"512345678"},"support_url":"https://ggsel.net/chat/12345678"}}}},"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySession"},"example":{"session_id":"ds_3f1c9a0b7d2e4c5a8b6f0e1d","url":"https://rlsell.dev/d/example-shop/ds_3f1c9a0b7d2e4c5a8b6f0e1d.8c0f6a1e2b3d4c5f6a7b8c9d0e1f2a3b","status":"awaiting_buyer","marketplace":"ggsel","external_order_id":"12345678","offer_id":"of_4f2a91c0d7","quantity":1,"max_unit_price":"9.50","buyer_fields":{"player_id":"512345678"},"required_fields":[],"support_url":"https://ggsel.net/chat/12345678","order_id":null,"expires_at":"2026-11-22T12:00:00Z","created_at":"2026-11-21T12:00:00Z","ordered_at":null,"failure_reason":null,"result":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; DELIVERY_SESSIONS_NOT_ENABLED; CLIENT_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"DELIVERY_SESSIONS_NOT_ENABLED":{"summary":"DELIVERY_SESSIONS_NOT_ENABLED","value":{"error":{"code":"DELIVERY_SESSIONS_NOT_ENABLED","message":"Delivery sessions are not enabled for this client","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"CLIENT_UNAVAILABLE":{"summary":"CLIENT_UNAVAILABLE","value":{"error":{"code":"CLIENT_UNAVAILABLE","message":"Client is unavailable","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS; INVALID_MARKETPLACE; INVALID_EXTERNAL_ORDER_ID; INVALID_MAX_UNIT_PRICE; INVALID_FIELDS; INVALID_SUPPORT_URL; INVALID_OFFER_ID","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_MARKETPLACE":{"summary":"INVALID_MARKETPLACE","value":{"error":{"code":"INVALID_MARKETPLACE","message":"marketplace is 1 to 32 latin letters, digits, _ or -","category":"validation","retryable":false,"fields":[{"field":"marketplace","message":"marketplace is 1 to 32 latin letters, digits, _ or -"}]},"request_id":"example-request-001"}},"INVALID_EXTERNAL_ORDER_ID":{"summary":"INVALID_EXTERNAL_ORDER_ID","value":{"error":{"code":"INVALID_EXTERNAL_ORDER_ID","message":"external_order_id is 1 to 128 visible ASCII characters","category":"validation","retryable":false,"fields":[{"field":"external_order_id","message":"external_order_id is 1 to 128 visible ASCII characters"}]},"request_id":"example-request-001"}},"INVALID_MAX_UNIT_PRICE":{"summary":"INVALID_MAX_UNIT_PRICE","value":{"error":{"code":"INVALID_MAX_UNIT_PRICE","message":"max_unit_price must be a positive decimal string with at most 2 places","category":"validation","retryable":false,"fields":[{"field":"max_unit_price","message":"max_unit_price must be a positive decimal string with at most 2 places"}]},"request_id":"example-request-001"}},"INVALID_FIELDS":{"summary":"INVALID_FIELDS","value":{"error":{"code":"INVALID_FIELDS","message":"buyer_fields must be an object with at most 20 keys","category":"validation","retryable":false,"fields":[{"field":"buyer_fields","message":"buyer_fields must be an object with at most 20 keys"}]},"request_id":"example-request-001"}},"INVALID_SUPPORT_URL":{"summary":"INVALID_SUPPORT_URL","value":{"error":{"code":"INVALID_SUPPORT_URL","message":"support_url must be an https address","category":"validation","retryable":false,"fields":[{"field":"support_url","message":"support_url must be an https address"}]},"request_id":"example-request-001"}},"INVALID_OFFER_ID":{"summary":"INVALID_OFFER_ID","value":{"error":{"code":"INVALID_OFFER_ID","message":"Invalid offer_id","category":"validation","retryable":false,"fields":[{"field":"offer_id","message":"Invalid offer_id"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is not ready","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"OFFER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"OFFER_NOT_FOUND":{"summary":"OFFER_NOT_FOUND","value":{"error":{"code":"OFFER_NOT_FOUND","message":"Offer not found","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer not found"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"DELIVERY_SESSION_CONFLICT; OFFER_KIND_MISMATCH; OFFER_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_SESSION_CONFLICT":{"summary":"DELIVERY_SESSION_CONFLICT","value":{"error":{"code":"DELIVERY_SESSION_CONFLICT","message":"This marketplace order already has a session with other fields","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}},"OFFER_KIND_MISMATCH":{"summary":"OFFER_KIND_MISMATCH","value":{"error":{"code":"OFFER_KIND_MISMATCH","message":"Delivery sessions accept fixed-price offers only","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Delivery sessions accept fixed-price offers only"}]},"request_id":"example-request-001"}},"OFFER_UNAVAILABLE":{"summary":"OFFER_UNAVAILABLE","value":{"error":{"code":"OFFER_UNAVAILABLE","message":"Offer is retired","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer is retired"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"200":{"description":"The same request again: the existing session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySession"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:write"]},"get":{"tags":["Partner API v2 - delivery sessions"],"summary":"Find the session of a marketplace order","description":"The newest session of this marketplace order. result needs a key with codes:read.","operationId":"find_delivery_session_b2b_v2_delivery_sessions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"marketplace","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"title":"Marketplace"}},{"name":"external_order_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"External Order Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySession"},"example":{"session_id":"ds_3f1c9a0b7d2e4c5a8b6f0e1d","url":"https://rlsell.dev/d/example-shop/ds_3f1c9a0b7d2e4c5a8b6f0e1d.8c0f6a1e2b3d4c5f6a7b8c9d0e1f2a3b","status":"awaiting_buyer","marketplace":"ggsel","external_order_id":"12345678","offer_id":"of_4f2a91c0d7","quantity":1,"max_unit_price":"9.50","buyer_fields":{"player_id":"512345678"},"required_fields":[],"support_url":"https://ggsel.net/chat/12345678","order_id":null,"expires_at":"2026-11-22T12:00:00Z","created_at":"2026-11-21T12:00:00Z","ordered_at":null,"failure_reason":null,"result":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; DELIVERY_SESSIONS_NOT_ENABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"DELIVERY_SESSIONS_NOT_ENABLED":{"summary":"DELIVERY_SESSIONS_NOT_ENABLED","value":{"error":{"code":"DELIVERY_SESSIONS_NOT_ENABLED","message":"Delivery sessions are not enabled for this client","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"DELIVERY_SESSION_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_SESSION_NOT_FOUND":{"summary":"DELIVERY_SESSION_NOT_FOUND","value":{"error":{"code":"DELIVERY_SESSION_NOT_FOUND","message":"Delivery session not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:read"]}},"/b2b/v2/delivery-sessions/check":{"post":{"tags":["Partner API v2 - delivery sessions"],"summary":"Check an offer before the buyer pays","description":"Availability, price and problems with the buyer's values, for a marketplace's pre-payment check. Reads only; has its own rate limit, five times the client's.","operationId":"check_delivery_b2b_v2_delivery_sessions_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryCheckBody"},"example":{"offer_id":"of_4f2a91c0d7","quantity":1,"buyer_fields":{"player_id":"512345678"}}}},"required":true},"responses":{"200":{"description":"Successful response","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryCheck"},"example":{"offer_id":"of_4f2a91c0d7","available":true,"unit_price":"9.20","total":"9.20","currency":"USD","field_errors":{},"buyer_message":""}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; DELIVERY_SESSIONS_NOT_ENABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"DELIVERY_SESSIONS_NOT_ENABLED":{"summary":"DELIVERY_SESSIONS_NOT_ENABLED","value":{"error":{"code":"DELIVERY_SESSIONS_NOT_ENABLED","message":"Delivery sessions are not enabled for this client","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}},"422":{"description":"INVALID_PARAMS; INVALID_FIELDS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}},"INVALID_FIELDS":{"summary":"INVALID_FIELDS","value":{"error":{"code":"INVALID_FIELDS","message":"buyer_fields must be an object with at most 20 keys","category":"validation","retryable":false,"fields":[{"field":"buyer_fields","message":"buyer_fields must be an object with at most 20 keys"}]},"request_id":"example-request-001"}}}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"503":{"description":"V2_DISABLED; CATALOG_UNAVAILABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}},"CATALOG_UNAVAILABLE":{"summary":"CATALOG_UNAVAILABLE","value":{"error":{"code":"CATALOG_UNAVAILABLE","message":"Catalog is not ready","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}}}}},"404":{"description":"OFFER_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"OFFER_NOT_FOUND":{"summary":"OFFER_NOT_FOUND","value":{"error":{"code":"OFFER_NOT_FOUND","message":"Offer not found","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Offer not found"}]},"request_id":"example-request-001"}}}}}},"409":{"description":"OFFER_KIND_MISMATCH","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"OFFER_KIND_MISMATCH":{"summary":"OFFER_KIND_MISMATCH","value":{"error":{"code":"OFFER_KIND_MISMATCH","message":"Delivery sessions accept fixed-price offers only","category":"business","retryable":false,"fields":[{"field":"offer_id","message":"Delivery sessions accept fixed-price offers only"}]},"request_id":"example-request-001"}}}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorResponse"},"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"x-required-scopes":["orders:read"]}},"/b2b/v2/delivery-sessions/{session_id}":{"get":{"tags":["Partner API v2 - delivery sessions"],"summary":"Read a delivery session","description":"result needs a key with codes:read.","operationId":"read_delivery_session_b2b_v2_delivery_sessions__session_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySession"},"example":{"session_id":"ds_3f1c9a0b7d2e4c5a8b6f0e1d","url":"https://rlsell.dev/d/example-shop/ds_3f1c9a0b7d2e4c5a8b6f0e1d.8c0f6a1e2b3d4c5f6a7b8c9d0e1f2a3b","status":"awaiting_buyer","marketplace":"ggsel","external_order_id":"12345678","offer_id":"of_4f2a91c0d7","quantity":1,"max_unit_price":"9.50","buyer_fields":{"player_id":"512345678"},"required_fields":[],"support_url":"https://ggsel.net/chat/12345678","order_id":null,"expires_at":"2026-11-22T12:00:00Z","created_at":"2026-11-21T12:00:00Z","ordered_at":null,"failure_reason":null,"result":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; DELIVERY_SESSIONS_NOT_ENABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"DELIVERY_SESSIONS_NOT_ENABLED":{"summary":"DELIVERY_SESSIONS_NOT_ENABLED","value":{"error":{"code":"DELIVERY_SESSIONS_NOT_ENABLED","message":"Delivery sessions are not enabled for this client","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"DELIVERY_SESSION_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_SESSION_NOT_FOUND":{"summary":"DELIVERY_SESSION_NOT_FOUND","value":{"error":{"code":"DELIVERY_SESSION_NOT_FOUND","message":"Delivery session not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:read"]}},"/b2b/v2/delivery-sessions/{session_id}/cancel":{"post":{"tags":["Partner API v2 - delivery sessions"],"summary":"Cancel a session before the buyer orders","description":"Works while the buyer has not ordered (awaiting_buyer or price_changed); afterwards 409.","operationId":"cancel_delivery_session_b2b_v2_delivery_sessions__session_id__cancel_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverySession"},"example":{"session_id":"ds_3f1c9a0b7d2e4c5a8b6f0e1d","url":"https://rlsell.dev/d/example-shop/ds_3f1c9a0b7d2e4c5a8b6f0e1d.8c0f6a1e2b3d4c5f6a7b8c9d0e1f2a3b","status":"awaiting_buyer","marketplace":"ggsel","external_order_id":"12345678","offer_id":"of_4f2a91c0d7","quantity":1,"max_unit_price":"9.50","buyer_fields":{"player_id":"512345678"},"required_fields":[],"support_url":"https://ggsel.net/chat/12345678","order_id":null,"expires_at":"2026-11-22T12:00:00Z","created_at":"2026-11-21T12:00:00Z","ordered_at":null,"failure_reason":null,"result":null}}},"headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}}},"401":{"description":"AUTH_REQUIRED; API_KEY_EXPIRED; API_KEY_REVOKED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"AUTH_REQUIRED":{"summary":"AUTH_REQUIRED","value":{"error":{"code":"AUTH_REQUIRED","message":"Missing X-API-Key or Authorization: Bearer","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_EXPIRED":{"summary":"API_KEY_EXPIRED","value":{"error":{"code":"API_KEY_EXPIRED","message":"API key has expired","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_REVOKED":{"summary":"API_KEY_REVOKED","value":{"error":{"code":"API_KEY_REVOKED","message":"API key was revoked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"403":{"description":"INSUFFICIENT_SCOPE; API_KEY_VERSION_FORBIDDEN; API_KEY_ENVIRONMENT_MISMATCH; API_KEY_SCOPES_INVALID; API_KEY_STOPPED; API_CLIENT_STOPPED; API_KEY_TELEGRAM_REQUIRED; API_KEY_TELEGRAM_MISMATCH; API_OWNER_BANNED; FORBIDDEN; DELIVERY_SESSIONS_NOT_ENABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INSUFFICIENT_SCOPE":{"summary":"INSUFFICIENT_SCOPE","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"API key lacks the required scope","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_VERSION_FORBIDDEN":{"summary":"API_KEY_VERSION_FORBIDDEN","value":{"error":{"code":"API_KEY_VERSION_FORBIDDEN","message":"API key cannot access this API version or environment","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_ENVIRONMENT_MISMATCH":{"summary":"API_KEY_ENVIRONMENT_MISMATCH","value":{"error":{"code":"API_KEY_ENVIRONMENT_MISMATCH","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_SCOPES_INVALID":{"summary":"API_KEY_SCOPES_INVALID","value":{"error":{"code":"API_KEY_SCOPES_INVALID","message":"API key is not valid for this request","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_STOPPED":{"summary":"API_KEY_STOPPED","value":{"error":{"code":"API_KEY_STOPPED","message":"API key is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_CLIENT_STOPPED":{"summary":"API_CLIENT_STOPPED","value":{"error":{"code":"API_CLIENT_STOPPED","message":"API client is stopped","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_REQUIRED":{"summary":"API_KEY_TELEGRAM_REQUIRED","value":{"error":{"code":"API_KEY_TELEGRAM_REQUIRED","message":"API key requires an existing linked Telegram user and a pinned owner","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_KEY_TELEGRAM_MISMATCH":{"summary":"API_KEY_TELEGRAM_MISMATCH","value":{"error":{"code":"API_KEY_TELEGRAM_MISMATCH","message":"API key Telegram owner does not match the client link","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"API_OWNER_BANNED":{"summary":"API_OWNER_BANNED","value":{"error":{"code":"API_OWNER_BANNED","message":"The Telegram owner of this API key is blocked","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"FORBIDDEN":{"summary":"FORBIDDEN","value":{"error":{"code":"FORBIDDEN","message":"IP address not allowed","category":"auth","retryable":false,"fields":[]},"request_id":"example-request-001"}},"DELIVERY_SESSIONS_NOT_ENABLED":{"summary":"DELIVERY_SESSIONS_NOT_ENABLED","value":{"error":{"code":"DELIVERY_SESSIONS_NOT_ENABLED","message":"Delivery sessions are not enabled for this client","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"422":{"description":"INVALID_PARAMS","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INVALID_PARAMS":{"summary":"INVALID_PARAMS","value":{"error":{"code":"INVALID_PARAMS","message":"Validation error","category":"validation","retryable":false,"fields":[{"field":"body → offer_id","message":"Validation error"}]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"429":{"description":"RATE_LIMIT_EXCEEDED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}},"Retry-After":{"description":"Seconds until another request may be made","schema":{"type":"string"}},"X-RateLimit-Limit":{"schema":{"type":"string"}},"X-RateLimit-Remaining":{"schema":{"type":"string"}},"X-RateLimit-Reset":{"schema":{"type":"string"}}},"content":{"application/json":{"examples":{"RATE_LIMIT_EXCEEDED":{"summary":"RATE_LIMIT_EXCEEDED","value":{"error":{"code":"RATE_LIMIT_EXCEEDED","message":"Rate limit exceeded","category":"auth","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"500":{"description":"INTERNAL_ERROR","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"INTERNAL_ERROR":{"summary":"INTERNAL_ERROR","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","category":"internal","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"503":{"description":"V2_DISABLED","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"V2_DISABLED":{"summary":"V2_DISABLED","value":{"error":{"code":"V2_DISABLED","message":"Partner API v2 is temporarily disabled","category":"upstream","retryable":true,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"404":{"description":"DELIVERY_SESSION_NOT_FOUND","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_SESSION_NOT_FOUND":{"summary":"DELIVERY_SESSION_NOT_FOUND","value":{"error":{"code":"DELIVERY_SESSION_NOT_FOUND","message":"Delivery session not found","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"409":{"description":"DELIVERY_SESSION_NOT_CANCELLABLE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"DELIVERY_SESSION_NOT_CANCELLABLE":{"summary":"DELIVERY_SESSION_NOT_CANCELLABLE","value":{"error":{"code":"DELIVERY_SESSION_NOT_CANCELLABLE","message":"Delivery session is ordered","category":"business","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}},"413":{"description":"REQUEST_TOO_LARGE","headers":{"X-Request-ID":{"description":"Request correlation ID","schema":{"type":"string"}},"X-API-Version":{"description":"API contract version","schema":{"type":"string","enum":["2.0"]}},"X-API-Environment":{"description":"Environment of the API key that made the call; absent when the key was not accepted","schema":{"type":"string","enum":["live","sandbox"]}},"Cache-Control":{"description":"Personal data must not be cached","schema":{"type":"string"}}},"content":{"application/json":{"examples":{"REQUEST_TOO_LARGE":{"summary":"REQUEST_TOO_LARGE","value":{"error":{"code":"REQUEST_TOO_LARGE","message":"Request body exceeds 65536 bytes","category":"validation","retryable":false,"fields":[]},"request_id":"example-request-001"}}},"schema":{"$ref":"#/components/schemas/V2ErrorResponse"}}}}},"x-required-scopes":["orders:write"]}}},"components":{"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}},"schemas":{"V2ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/V2ErrorDetail"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id","description":"Correlates with the X-Request-ID response header"}},"additionalProperties":false,"type":"object","required":["error","request_id"],"title":"V2ErrorResponse"},"V2ErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"category":{"type":"string","enum":["auth","validation","business","upstream","internal","request","catalog"],"title":"Category"},"retryable":{"type":"boolean","title":"Retryable"},"fields":{"items":{"$ref":"#/components/schemas/V2ErrorField"},"type":"array","title":"Fields"}},"additionalProperties":false,"type":"object","required":["code","message","category","retryable","fields"],"title":"V2ErrorDetail"},"V2ErrorField":{"properties":{"field":{"type":"string","title":"Field"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["field","message"],"title":"V2ErrorField"},"DeliverySession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The buyer's page; send the buyer here. It can place the order and shows the codes, so reads return it only to a key with orders:write and codes:read"},"status":{"type":"string","title":"Status","description":"Session state. Treat an unfamiliar future value as still in progress.","x-known-values":["awaiting_buyer","ordered","completed","failed","refunded","cancelled","expired","price_changed"]},"marketplace":{"type":"string","title":"Marketplace"},"external_order_id":{"type":"string","title":"External Order Id"},"offer_id":{"type":"string","title":"Offer Id"},"quantity":{"type":"integer","title":"Quantity"},"max_unit_price":{"type":"string","title":"Max Unit Price"},"buyer_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Buyer Fields"},"required_fields":{"items":{"type":"string"},"type":"array","title":"Required Fields","description":"Fields the page will still ask the buyer for"},"support_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Url"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id","description":"The v2 order placed on the page, once the buyer ordered"},"expires_at":{"type":"string","title":"Expires At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"ordered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ordered At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"After completion, with a key that has codes:read: {codes: [...]} (and esim_profiles for eSIM)"}},"type":"object","required":["session_id","url","status","marketplace","external_order_id","offer_id","quantity","max_unit_price","buyer_fields","required_fields","support_url","order_id","expires_at","created_at","ordered_at","failure_reason","result"],"title":"DeliverySession"},"DeliveryCheck":{"properties":{"offer_id":{"type":"string","title":"Offer Id"},"available":{"type":"boolean","title":"Available"},"unit_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Price"},"total":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total"},"currency":{"type":"string","title":"Currency"},"field_errors":{"additionalProperties":{"type":"string"},"type":"object","title":"Field Errors"},"buyer_message":{"type":"string","title":"Buyer Message"}},"type":"object","required":["offer_id","available","unit_price","total","currency","field_errors","buyer_message"],"title":"DeliveryCheck"},"DeliveryCheckBody":{"properties":{"offer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Offer Id"},"quantity":{"type":"integer","const":1,"title":"Quantity","default":1},"buyer_fields":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Buyer Fields"}},"additionalProperties":false,"type":"object","required":["offer_id"],"title":"DeliveryCheckBody"},"DeliverySessionCreate":{"properties":{"marketplace":{"type":"string","maxLength":32,"minLength":1,"title":"Marketplace","description":"Where the buyer paid, e.g. ggsel; part of the idempotency key"},"external_order_id":{"type":"string","maxLength":128,"minLength":1,"title":"External Order Id","description":"The marketplace order number; with marketplace it identifies the session"},"offer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Offer Id","description":"A fixed-price offer of the v2 catalogue"},"quantity":{"type":"integer","const":1,"title":"Quantity","default":1},"max_unit_price":{"type":"string","title":"Max Unit Price","description":"Highest price in USD the page may charge, e.g. 9.50"},"buyer_fields":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Buyer Fields","description":"Values the buyer already gave, keyed as the offer's input_schema"},"support_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Support Url","description":"https address of the seller's support for this order"}},"additionalProperties":false,"type":"object","required":["marketplace","external_order_id","offer_id","max_unit_price"],"title":"DeliverySessionCreate"},"V2WebhookDelivery":{"properties":{"delivery_id":{"type":"integer","title":"Delivery Id"},"event":{"type":"string","title":"Event"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"status":{"type":"string","title":"Status","description":"pending, sending, delivered or failed. A pending row is retried until max_attempts."},"attempts":{"type":"integer","title":"Attempts"},"max_attempts":{"type":"integer","title":"Max Attempts"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"next_retry_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Retry At"},"delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivered At"}},"additionalProperties":false,"type":"object","required":["delivery_id","event","order_id","status","attempts","max_attempts","last_status_code","last_error","created_at","next_retry_at","delivered_at"],"title":"V2WebhookDelivery"},"V2WebhookTestAccepted":{"properties":{"delivery_id":{"type":"integer","title":"Delivery Id"},"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["delivery_id","status"],"title":"V2WebhookTestAccepted"},"V2WebhookDeliveryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V2WebhookDelivery"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"V2WebhookDeliveryPage"},"V2WebhookConfig":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"has_secret":{"type":"boolean","title":"Has Secret"},"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["url","has_secret","enabled"],"title":"V2WebhookConfig"},"V2WebhookUrlUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url","description":"Public HTTPS endpoint; null disables delivery"}},"additionalProperties":false,"type":"object","required":["url"],"title":"V2WebhookUrlUpdate"},"V2OrderSnapshotUnavailable":{"properties":{"order_id":{"type":"string","title":"Order Id"},"reference_id":{"type":"string","title":"Reference Id"},"status":{"type":"string","const":"created","title":"Status"},"snapshot_unavailable":{"type":"boolean","const":true,"title":"Snapshot Unavailable"}},"additionalProperties":false,"type":"object","required":["order_id","reference_id","status","snapshot_unavailable"],"title":"V2OrderSnapshotUnavailable","description":"202 body when the order was accepted but its snapshot could not be read."},"V2Order":{"properties":{"order_id":{"type":"string","title":"Order Id"},"reference_id":{"type":"string","title":"Reference Id"},"offer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offer Id"},"price_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Version"},"status":{"type":"string","enum":["created","processing","completed","cancelled","failed","refunded","partially_refunded","reconciliation_required"],"title":"Status","description":"Public order state. created/processing are not terminal; reconciliation_required is an unresolved outcome. Clients must preserve unfamiliar future values and reconcile them, never assume success or automatically create a new purchase."},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"financial_state":{"type":"string","enum":["unreserved","reserved","settled","released","refunded","partially_refunded","reconciliation_required"],"title":"Financial State","description":"Independent financial state derived from reserve/debit/release/refund evidence; compare reserved_amount, settled_amount and refunded_amount. An unfamiliar future value requires reconciliation, not another purchase."},"reserved_amount":{"type":"string","title":"Reserved Amount"},"settled_amount":{"type":"string","title":"Settled Amount"},"refunded_amount":{"type":"string","title":"Refunded Amount"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason","description":"Why a failed or cancelled order did not complete; null for every other status. Treat an unfamiliar future value as fulfillment_failed.","x-known-values":["temporarily_unavailable","out_of_stock","invalid_recipient","price_changed","fulfillment_failed","cancelled"]},"steam_gift":{"anyOf":[{"$ref":"#/components/schemas/V2GiftOrder"},{"type":"null"}],"description":"The gift and its delivery stage for a Steam gift order; null for other orders"}},"type":"object","required":["order_id","reference_id","offer_id","price_version","status","amount","currency","financial_state","reserved_amount","settled_amount","refunded_amount","created_at","updated_at","completed_at"],"title":"V2Order"},"V2GiftOrder":{"properties":{"app_id":{"type":"integer","title":"App Id"},"game":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Game"},"edition_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edition Id"},"edition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edition"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Steam price zone the gift was bought for"},"recipient_type":{"anyOf":[{"type":"string","enum":["invite","profile"]},{"type":"null"}],"title":"Recipient Type"},"delivery":{"type":"string","title":"Delivery","description":"pending: not sent yet; friend_request_sent: the recipient must accept the Steam friend request; gift_sent: sent, waiting for the recipient; delivered; delivery_failed: an operator is resolving it, do not buy again; not_sent: the order failed and the reserve was released. Treat an unfamiliar future value like pending.","x-known-values":["pending","friend_request_sent","gift_sent","delivered","delivery_failed","not_sent"]}},"type":"object","required":["app_id","game","edition_id","edition","region","recipient_type","delivery"],"title":"V2GiftOrder","description":"The gift of a Steam gift order (POST /steam-gifts/orders or a confirmed gift quote)."},"GiftOrderCreateBody":{"properties":{"app_id":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"App Id"},"edition_id":{"type":"string","maxLength":40,"minLength":5,"title":"Edition Id"},"region":{"anyOf":[{"type":"string","maxLength":5,"minLength":2},{"type":"null"}],"title":"Region","description":"Steam price zone; give region or country"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country","description":"Recipient's country (ISO 3166-1, e.g. BY); stands for its region"},"recipient_url":{"type":"string","maxLength":500,"minLength":10,"title":"Recipient Url","description":"Invite link https://s.team/p/… or profile https://steamcommunity.com/…"},"max_total":{"type":"string","title":"Max Total","description":"Maximum buyer debit in USD, e.g. 21.00; the debit is the current price"}},"additionalProperties":false,"type":"object","required":["app_id","edition_id","recipient_url","max_total"],"title":"GiftOrderCreateBody"},"GiftQuoteConfirmBody":{"properties":{"max_total":{"type":"string","title":"Max Total","description":"Maximum buyer debit in USD, e.g. 20.38"}},"additionalProperties":false,"type":"object","required":["max_total"],"title":"GiftQuoteConfirmBody"},"GiftQuoteOut":{"properties":{"quote_id":{"type":"string","title":"Quote Id"},"state":{"type":"string","enum":["ready","expired","consumed"],"title":"State","description":"ready is payable before expires_at; consumed refers to its order_id; expired needs a new quote."},"app_id":{"type":"integer","title":"App Id"},"edition_id":{"type":"string","title":"Edition Id"},"region":{"type":"string","title":"Region"},"recipient_type":{"type":"string","enum":["invite","profile"],"title":"Recipient Type"},"amount":{"type":"string","title":"Amount"},"currency":{"type":"string","title":"Currency"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"}},"type":"object","required":["quote_id","state","app_id","edition_id","region","recipient_type","amount","currency","expires_at","order_id"],"title":"GiftQuoteOut"},"GiftQuoteCreateBody":{"properties":{"app_id":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"App Id"},"edition_id":{"type":"string","maxLength":40,"minLength":5,"title":"Edition Id"},"region":{"anyOf":[{"type":"string","maxLength":5,"minLength":2},{"type":"null"}],"title":"Region","description":"Steam price zone; give region or country"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country","description":"Recipient's country (ISO 3166-1, e.g. BY); stands for its region"},"recipient_url":{"type":"string","maxLength":500,"minLength":10,"title":"Recipient Url","description":"Invite link https://s.team/p/… or profile https://steamcommunity.com/…"}},"additionalProperties":false,"type":"object","required":["app_id","edition_id","recipient_url"],"title":"GiftQuoteCreateBody"},"GiftZones":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GiftZone"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"GiftZones"},"GiftZone":{"properties":{"region":{"type":"string","title":"Region","description":"Steam price zone, the region of a quote"},"name":{"type":"string","title":"Name"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries","description":"ISO 3166-1 countries of the zone that country= accepts; may be empty"}},"type":"object","required":["region","name","countries"],"title":"GiftZone"},"GiftPrices":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GiftGameDetail"},"type":"array","title":"Items","description":"The games found, in the order asked"},"not_found":{"items":{"type":"integer"},"type":"array","title":"Not Found","description":"Asked app_ids that are not in the gift catalogue"}},"type":"object","required":["items","not_found"],"title":"GiftPrices"},"GiftGameDetail":{"properties":{"app_id":{"type":"integer","title":"App Id"},"name":{"type":"string","title":"Name"},"image_url":{"type":"string","title":"Image Url"},"is_dlc":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Dlc"},"editions":{"items":{"$ref":"#/components/schemas/GiftEdition"},"type":"array","title":"Editions"}},"type":"object","required":["app_id","name","image_url","is_dlc","editions"],"title":"GiftGameDetail"},"GiftEdition":{"properties":{"edition_id":{"type":"string","title":"Edition Id","description":"Edition to gift: sub:<Steam SubID> or partner:<id>"},"name":{"type":"string","title":"Name"},"price_from":{"type":"string","title":"Price From"},"regions":{"items":{"$ref":"#/components/schemas/GiftRegion"},"type":"array","title":"Regions"}},"type":"object","required":["edition_id","name","price_from","regions"],"title":"GiftEdition"},"GiftRegion":{"properties":{"region":{"type":"string","title":"Region","description":"Steam price zone of the recipient's account, e.g. RU, KZ, CIS, EU, US"},"name":{"type":"string","title":"Name"},"prices":{"$ref":"#/components/schemas/GiftRegionPrices"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"When these prices were last confirmed (UTC); a quote checks the price again"}},"type":"object","required":["region","name","prices","updated_at"],"title":"GiftRegion"},"GiftRegionPrices":{"properties":{"invite":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite","description":"Price with an invite link (https://s.team/p/…), or null"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile","description":"Price with a profile link (https://steamcommunity.com/…), or null"}},"type":"object","required":["invite","profile"],"title":"GiftRegionPrices"},"GiftGamePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GiftGame"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Cursor","description":"Pass as cursor for the next page; null on the last page"},"total":{"type":"integer","title":"Total","description":"Games matching this request across all pages"}},"type":"object","required":["items","next_cursor","total"],"title":"GiftGamePage"},"GiftGame":{"properties":{"app_id":{"type":"integer","title":"App Id"},"name":{"type":"string","title":"Name"},"image_url":{"type":"string","title":"Image Url","description":"Steam's own store art for the game"},"is_dlc":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Dlc"},"price_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price From","description":"Lowest price for this partner in USD; null when not on sale"},"purchase_available":{"type":"boolean","title":"Purchase Available"},"edition_count":{"type":"integer","title":"Edition Count","description":"Editions on sale now; read them with GET /steam-gifts/games/{app_id} or GET /steam-gifts/prices"}},"type":"object","required":["app_id","name","image_url","is_dlc","price_from","purchase_available","edition_count"],"title":"GiftGame"},"V2QuoteConfirmRequest":{"properties":{"max_total":{"type":"string","title":"Max Total","description":"Maximum buyer debit in USD, e.g. 12.34"}},"additionalProperties":false,"type":"object","required":["max_total"],"title":"V2QuoteConfirmRequest"},"QuoteOut":{"properties":{"quote_id":{"type":"string","title":"Quote Id"},"offer_id":{"type":"string","title":"Offer Id"},"state":{"type":"string","enum":["preparing","ready","unknown","rejected","expired","consumed"],"title":"State","description":"ready is payable before expires_at; consumed refers to the single accepted order. unknown requires reconciliation. Preserve unfamiliar future states and read the existing quote instead of creating another purchase."},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"}},"type":"object","required":["quote_id","offer_id","state","amount","currency","expires_at","error_code","order_id"],"title":"QuoteOut"},"V2QuoteRequest":{"properties":{"offer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Offer Id"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","required":["offer_id","fields"],"title":"V2QuoteRequest"},"V2IssuedCodes":{"properties":{"order_id":{"type":"string","title":"Order Id"},"count":{"type":"integer","title":"Count"},"codes":{"items":{"type":"string"},"type":"array","title":"Codes"},"delivery_kind":{"anyOf":[{"type":"string","const":"esim"},{"type":"null"}],"title":"Delivery Kind"},"esim_profiles":{"anyOf":[{"items":{"$ref":"#/components/schemas/V2EsimProfile"},"type":"array"},{"type":"null"}],"title":"Esim Profiles"}},"additionalProperties":false,"type":"object","required":["order_id","count","codes"],"title":"V2IssuedCodes"},"V2EsimProfile":{"properties":{"index":{"type":"integer","title":"Index"},"iccid":{"type":"string","title":"Iccid"},"qr_code_text":{"type":"string","title":"Qr Code Text"},"smdp_address":{"type":"string","title":"Smdp Address"},"matching_id":{"type":"string","title":"Matching Id"},"activation_code":{"type":"string","title":"Activation Code"},"lpa":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lpa"},"smdp_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smdp Oid"},"confirmation_code_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confirmation Code Required"},"qr_image_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Image Data"},"install_links":{"additionalProperties":{"type":"string"},"type":"object","title":"Install Links"},"install_links_validated":{"type":"boolean","title":"Install Links Validated"},"issued_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"can_renew":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Renew"},"last_bundle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Bundle"}},"additionalProperties":false,"type":"object","required":["index","iccid","qr_code_text","smdp_address","matching_id","activation_code","install_links","install_links_validated"],"title":"V2EsimProfile"},"FixedOrderBody":{"properties":{"offer_id":{"type":"string","maxLength":64,"minLength":1,"title":"Offer Id"},"price_version":{"type":"string","maxLength":64,"minLength":1,"title":"Price Version"},"max_total":{"type":"string","title":"Max Total","description":"Maximum buyer debit in USD, e.g. 12.34"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"quantity":{"type":"integer","const":1,"title":"Quantity","default":1}},"additionalProperties":false,"type":"object","required":["offer_id","price_version","max_total"],"title":"FixedOrderBody"},"V2CatalogLookupResponse":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/V2CatalogLookupFound"},{"$ref":"#/components/schemas/V2CatalogLookupMissing"}]},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"V2CatalogLookupResponse"},"V2CatalogLookupMissing":{"properties":{"offer_id":{"type":"string","title":"Offer Id"},"error":{"$ref":"#/components/schemas/V2CatalogLookupError"}},"additionalProperties":false,"type":"object","required":["offer_id","error"],"title":"V2CatalogLookupMissing"},"V2CatalogLookupError":{"properties":{"code":{"type":"string","enum":["NOT_FOUND","UNAVAILABLE"],"title":"Code","description":"NOT_FOUND: unknown or hidden offer. UNAVAILABLE: this offer cannot be read now; other items are unaffected."}},"additionalProperties":false,"type":"object","required":["code"],"title":"V2CatalogLookupError"},"V2CatalogLookupFound":{"properties":{"offer_id":{"type":"string","title":"Offer Id"},"item":{"$ref":"#/components/schemas/V2CatalogOffer"}},"additionalProperties":false,"type":"object","required":["offer_id","item"],"title":"V2CatalogLookupFound"},"V2CatalogOffer":{"properties":{"offer_id":{"type":"string","title":"Offer Id"},"product_id":{"type":"string","title":"Product Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Variant name for display, e.g. \"Roblox 10 USD\" or \"PUBG Mobile 60 UC\". Null only for offers retired before names existed."},"face_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Face Value","description":"Face value as a decimal string, e.g. \"10\" or \"800\"; null when the variant has no single denomination"},"face_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Face Currency","description":"Unit of face_value: an ISO 4217 code (USD, EUR) or an in-game unit (Robux, UC, Diamonds); null with face_value. Not the price currency."},"product_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type","description":"What the variant sells. Treat any unfamiliar future value as other.","x-known-values":["gift_card","game_currency","topup","subscription","game_key","esim","other"]},"kind":{"type":"string","enum":["fixed","variable"],"title":"Kind"},"category":{"type":"string","title":"Category"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region label as sold, e.g. Global, EU, United States"},"region_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code","description":"ISO 3166-1 alpha-2 code when the region is one country; null for multi-country regions"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"delivery_kind":{"type":"string","title":"Delivery Kind"},"availability":{"type":"string","title":"Availability","description":"Current states: available, out_of_stock, unavailable, stale, retired, unknown. Only available permits checkout; treat any unfamiliar future value as unavailable pending reconciliation.","x-known-values":["available","out_of_stock","unavailable","stale","retired","unknown"]},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason","description":"Machine reason while the offer is not available; null otherwise. Treat an unfamiliar future value as temporarily_unavailable.","x-known-values":["stale","discontinued","contract_changed","recipient_schema_unknown","unsupported_currency","price_unavailable","temporarily_unavailable"]},"stock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stock","description":"Exact decimal stock count, or null when unknown"},"price":{"anyOf":[{"$ref":"#/components/schemas/V2CatalogPrice"},{"type":"null"}],"description":"Null for variable, stale, or retired offers; use a quote for variable pricing"},"input_schema":{"items":{"$ref":"#/components/schemas/V2InputField"},"type":"array","title":"Input Schema","description":"Data-driven recipient fields and constraints. Submit values by each field's key; do not infer fields from a product name."},"catalog_revision":{"type":"integer","title":"Catalog Revision"},"price_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Updated At","description":"UTC time (ISO 8601, Z) price and stock were last refreshed"},"replaced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By","description":"Set when you read the offer by an ID that was merged into another offer: the offer_id to store instead. The response then describes that offer. The old ID keeps working for reads and orders, also when it is retired, while the item is on sale."}},"additionalProperties":false,"type":"object","required":["offer_id","product_id","name","face_value","face_currency","product_type","kind","category","region","region_code","platform","delivery_kind","availability","unavailable_reason","stock","price","input_schema","catalog_revision","price_updated_at"],"title":"V2CatalogOffer"},"V2InputField":{"properties":{"key":{"type":"string","title":"Key","description":"Submit the value under this key in `fields`"},"label":{"type":"string","title":"Label"},"type":{"type":"string","title":"Type","description":"Value type. Treat an unfamiliar future type as string.","x-known-values":["string","integer","number","email","select"]},"required":{"type":"boolean","title":"Required"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"options":{"items":{"$ref":"#/components/schemas/V2InputOption"},"type":"array","title":"Options","description":"Allowed values for type select; empty otherwise"},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern","description":"Regular expression the whole value must match"},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min","description":"Minimum numeric value as a decimal string"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max","description":"Maximum numeric value as a decimal string"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step","description":"Numeric step as a decimal string"},"min_length":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Length"},"max_length":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Length"}},"additionalProperties":false,"type":"object","required":["key","label","type","required","description","options","pattern","min","max","step","min_length","max_length"],"title":"V2InputField"},"V2InputOption":{"properties":{"label":{"type":"string","title":"Label"},"value":{"type":"string","title":"Value","description":"Submit this value, not the label"}},"additionalProperties":false,"type":"object","required":["label","value"],"title":"V2InputOption"},"V2CatalogPrice":{"properties":{"amount":{"type":"string","title":"Amount","description":"Personalized USD price as an exact decimal string"},"currency":{"type":"string","const":"USD","title":"Currency"},"version":{"type":"string","title":"Version","description":"Opaque price version required by fixed-price checkout"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At","description":"UTC time (ISO 8601, Z) the price was last confirmed"}},"additionalProperties":false,"type":"object","required":["amount","currency","version","checked_at"],"title":"V2CatalogPrice"},"OfferLookupRequest":{"properties":{"offer_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Offer Ids"}},"additionalProperties":false,"type":"object","required":["offer_ids"],"title":"OfferLookupRequest"},"V2CatalogOfferList":{"properties":{"product_id":{"type":"string","title":"Product Id"},"items":{"items":{"$ref":"#/components/schemas/V2CatalogOffer"},"type":"array","title":"Items"},"catalog_revision":{"type":"integer","title":"Catalog Revision"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Opaque cursor for the next page, or null on the last page"}},"additionalProperties":false,"type":"object","required":["product_id","items","catalog_revision","next_cursor"],"title":"V2CatalogOfferList"},"V2CatalogProductDetail":{"properties":{"product_id":{"type":"string","title":"Product Id"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"status":{"type":"string","title":"Status","description":"Current product states are active and retired. Retired IDs are tombstones and are never reassigned. Preserve unfamiliar future values instead of assuming the product is active.","x-known-values":["active","retired"]},"catalog_revision":{"type":"integer","title":"Catalog Revision"},"offer_count":{"type":"integer","title":"Offer Count"},"offers":{"items":{"$ref":"#/components/schemas/V2CatalogOffer"},"type":"array","title":"Offers"}},"additionalProperties":false,"type":"object","required":["product_id","name","category","status","catalog_revision","offer_count","offers"],"title":"V2CatalogProductDetail"},"V2CatalogFacets":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/V2FacetValue"},"type":"array","title":"Categories"},"regions":{"items":{"$ref":"#/components/schemas/V2RegionFacet"},"type":"array","title":"Regions"},"platforms":{"items":{"$ref":"#/components/schemas/V2FacetValue"},"type":"array","title":"Platforms"},"catalog_revision":{"type":"integer","title":"Catalog Revision"}},"additionalProperties":false,"type":"object","required":["categories","regions","platforms","catalog_revision"],"title":"V2CatalogFacets"},"V2FacetValue":{"properties":{"value":{"type":"string","title":"Value","description":"Use as the filter value in GET /catalog/products"},"product_count":{"type":"integer","title":"Product Count"}},"additionalProperties":false,"type":"object","required":["value","product_count"],"title":"V2FacetValue"},"V2RegionFacet":{"properties":{"value":{"type":"string","title":"Value","description":"Use as the filter value in GET /catalog/products"},"product_count":{"type":"integer","title":"Product Count"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"ISO 3166-1 alpha-2 code when the region is one country"}},"additionalProperties":false,"type":"object","required":["value","product_count","code"],"title":"V2RegionFacet"},"V2CatalogChangesPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V2CatalogChange"},"type":"array","title":"Items"},"catalog_revision":{"type":"integer","title":"Catalog Revision","description":"Revision this series of pages runs up to"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Continue with this cursor while non-null"},"next_since":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Since","description":"When next_cursor is null: pass as since on the next poll"}},"additionalProperties":false,"type":"object","required":["items","catalog_revision","next_cursor","next_since"],"title":"V2CatalogChangesPage"},"V2CatalogChange":{"properties":{"type":{"type":"string","enum":["product","offer"],"title":"Type"},"id":{"type":"string","title":"Id"},"product_id":{"type":"string","title":"Product Id"},"change":{"type":"string","enum":["upsert","retire"],"title":"Change","description":"upsert: re-read the item. retire: stop selling it (retired or no longer available to partners)."},"revision":{"type":"integer","title":"Revision"}},"additionalProperties":false,"type":"object","required":["type","id","product_id","change","revision"],"title":"V2CatalogChange"},"V2CatalogProductPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V2CatalogProductCard"},"type":"array","title":"Items"},"catalog_revision":{"type":"integer","title":"Catalog Revision"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Opaque cursor; continue even after an empty page while this is non-null. Cursors stay valid while the catalog changes."}},"additionalProperties":false,"type":"object","required":["items","catalog_revision","next_cursor"],"title":"V2CatalogProductPage"},"V2CatalogProductCard":{"properties":{"product_id":{"type":"string","title":"Product Id"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"status":{"type":"string","title":"Status","description":"Current product states are active and retired. Retired IDs are tombstones and are never reassigned. Preserve unfamiliar future values instead of assuming the product is active.","x-known-values":["active","retired"]},"catalog_revision":{"type":"integer","title":"Catalog Revision"},"offer_count":{"type":"integer","title":"Offer Count"},"availability":{"type":"string","enum":["available","out_of_stock","stale","unavailable"],"title":"Availability","description":"Best state among the product's current offers; stale means every offer awaits a price and stock refresh"}},"additionalProperties":false,"type":"object","required":["product_id","name","category","status","catalog_revision","offer_count","availability"],"title":"V2CatalogProductCard"},"V2Balance":{"properties":{"available":{"type":"string","title":"Available","description":"Available USD funds as an exact decimal string"},"reserved":{"type":"string","title":"Reserved","description":"USD reserved for active B2B orders as an exact decimal string"},"currency":{"type":"string","const":"USD","title":"Currency","default":"USD"},"environment":{"type":"string","enum":["live","sandbox"],"title":"Environment","description":"sandbox: a simulated wallet that never holds real funds"}},"additionalProperties":false,"type":"object","required":["available","reserved","environment"],"title":"V2Balance"},"V2ClientInfo":{"properties":{"client_id":{"type":"string","title":"Client Id"},"environment":{"type":"string","enum":["live","sandbox"],"title":"Environment"},"rate_limit_per_min":{"type":"integer","minimum":1.0,"title":"Rate Limit Per Min"},"webhook_configured":{"type":"boolean","title":"Webhook Configured"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"loyalty":{"$ref":"#/components/schemas/V2TelegramLoyalty"}},"additionalProperties":false,"type":"object","required":["client_id","environment","rate_limit_per_min","webhook_configured","scopes","loyalty"],"title":"V2ClientInfo"},"V2TelegramLoyalty":{"properties":{"linked":{"type":"boolean","const":true,"title":"Linked","default":true},"source":{"type":"string","const":"telegram","title":"Source","default":"telegram"},"tier":{"type":"string","enum":["Bronze","Silver","Gold","Platinum"],"title":"Tier"},"discount_percent":{"type":"string","title":"Discount Percent","description":"Current Telegram tier discount, as an exact decimal string"},"mode":{"type":"string","enum":["auto","manual"],"title":"Mode"}},"additionalProperties":false,"type":"object","required":["tier","discount_percent","mode"],"title":"V2TelegramLoyalty"}}},"tags":[]}