{ "openapi": "3.0.3", "info": { "title": "Uquid Public API", "version": "1.1.0", "description": "## Overview\n\nREST API for bot and automation integrations: browse the digital product catalog, browse live event tickets, fund your wallet, and place or confirm orders using crypto balances on your Uquid account.\n\n**Base URL:** `https://shop.uquid.com/public/api/v1/{action}`\n\n**Interactive documentation:** [https://shop.uquid.com/public/api/documentation](https://shop.uquid.com/public/api/documentation)\n\n**OpenAPI spec:** [https://shop.uquid.com/public/api/openapi](https://shop.uquid.com/public/api/openapi) — fetch this JSON directly for AI tools and code generators.\n\n**LLMs index:** [https://shop.uquid.com/llms.txt](https://shop.uquid.com/llms.txt)\n\nThe interactive documentation page embeds the full spec in HTML at `#uquid-public-api-openapi-spec`.\n\n---\n\n## Account types\n\nAPI keys are created in **My Account → Business API** on the digital shop (no admin partner designation required for self-service).\n\n| `api_account_type` | Who can create | Catalog brand scope | Webhook / Svix | Notes |\n|--------------------|----------------|---------------------|----------------|-------|\n| `normal_api_account` | Any logged-in digital shop user | Whitelisted brands (same as partner) | Not available | Self-service. Max 1 key per user. |\n| `partner_api_account` | User with admin ACL `isEnableBotAPI` | Whitelisted brands (AI auto + gigs) | Available | Existing keys without the field are treated as partner (BC). Admin toggling `isEnableBotAPI` migrates key type partner↔normal (keys stay active). Use ACL `blockOpenAPI=1` to suspend all keys / block OpenAPI. |\n\nPurchase (`submit_order` / `confirm_order` / `check_order`), wallet, and deposit work for **both** account types when `enable_place_order` is true.\n\n---\n\n## Authentication\n\nEvery request requires the following header:\n\n| Header | Required | Description |\n|--------|----------|-------------|\n| `X-API-KEY` | Yes | 64-character hexadecimal API key (from your Uquid dashboard) |\n| `X-API-SIGNATURE` | POST with JSON body | HMAC-SHA256 of the **raw request body** (exact JSON bytes on the wire), keyed with `api_secret` |\n\n### GET requests (no body)\n\nOnly `X-API-KEY` is required. Applies to: `ping`, `wallet_balance`, `platform_list`, `region_list`.\n\n### POST requests (JSON body)\n\nMinimum body shape:\n```json\n{\n \"nonce\": 1731729353,\n \"params\": { }\n}\n```\n\n- `nonce`: Unix timestamp in seconds; must be within **±30 seconds** of server time.\n- `params`: Endpoint-specific parameters (may be an empty object `{}`).\n- Do **not** include an `action` field in the body — the action is determined by the URL path.\n- Sign the **entire raw body** (same byte sequence sent over the wire; do not re-format or pretty-print after signing).\n\n### Signature (pseudocode)\n```\nrawBody = JSON.stringify(requestObject) // compact; identical to wire bytes\nsignature = HMAC_SHA256(key=api_secret, message=rawBody)\n// Send signature in header X-API-SIGNATURE (64 hex characters)\n```\n\n### PHP example\n```php\n$body = json_encode(['nonce' => time(), 'params' => (object)['page' => 1]]);\n$sign = hash_hmac('sha256', $body, $apiSecret);\n// Headers: X-API-KEY, X-API-SIGNATURE, Content-Type: application/json\n```\n\n---\n\n## Response envelope\n\n```json\n{\n \"status\": true,\n \"data\": { },\n \"extra\": \"optional detail when validation fails\"\n}\n```\n\nHTTP status is always **200**; inspect the `status` boolean. On failure, `data` typically contains `code` and `error` (or `message`).\n\n---\n\n## Error codes\n\n| Code | Meaning |\n|------|--------|\n| E101 | IP address not whitelisted |\n| E103 | Invalid or unknown API key |\n| E105 | Invalid or expired nonce (outside ±30s window) |\n| E106 | Signature mismatch |\n| E107 | Unknown action |\n| E108 | Invalid or missing parameters |\n| E109 | Product out of stock |\n| E112 | Insufficient balance (`confirm_order` returns `status: true` with error payload) |\n| E113 | Rate limit exceeded / nonce replay limit |\n| E114 | Empty cart |\n| E116 | Product not found |\n\n---\n\n## Rate limits\n\nShared pre-auth IP gate: **20 requests / 5 seconds** (before API-key validation).\n\n### `partner_api_account`\n\n- **Default:** 10 requests / 5 seconds per IP and per API key.\n- **deposit / invoice:** 5 requests / 60 seconds per user.\n- **Nonce replay:** Same nonce allowed at most 10 times within 20 seconds.\n\n### `normal_api_account`\n\n| Action group | Limit |\n|--------------|-------|\n| Catalog (`product_list`, `product_detail`, `platform_list`, `region_list`, `ticket_catalog`, `ticket_listing`) | **5 / 60s** per IP and per API key |\n| Keyword search on `product_list` / `ticket_listing` | Extra **5 / 60s** per API key |\n| Non-catalog (wallet, order, ping, …) | **1 / 5s** per IP and per API key |\n| deposit / invoice | **5 / 60s** per user (same as partner) |\n\nAttempt locks use separate memcached prefixes (`openapi_normal_` vs `openapi_partner_`) so shared NAT does not cross-lock account types.\n\n---\n\n## Typical integration flow\n\n```\n1. GET platform_list / region_list → catalog facet filters\n2. POST product_list → paginated listing (50 per page)\n3. POST product_detail → submit_fields, price, in_stock\n4. POST submit_order (_order_mode=live) → batch_id, price_coin\n5. POST confirm_order (batch_id) → order_ids\n6. POST check_order (batch_id) → execution_status, delivery keys\n```\n\n**Auto-confirm:** `submit_order` with `_order_auto_confirm_mode: 1` and a unique `_order_external_id` triggers confirmation in the same request.\n\n**Preview:** `_order_mode: \"preview\"` returns a price quote only; no `batch_id` and no checkout session is created.\n\n---\n\n## Ticket / event flow\n\n```\n1. POST ticket_catalog → categories + browse facets (geo, tour, performer, venue)\n2. POST ticket_listing → paginated upcoming events (50 per page, max 10,000 items)\n3. POST product_detail (product_id) → ticket submit_fields, price, in_stock\n4. POST submit_order / confirm_order / check_order (same as digital products)\n```\n\nUse `product_id` and `reference` from `ticket_listing` events for `product_detail` and `submit_order`. When `keyword` is set on `ticket_listing`, facet filters are ignored (full-text search only)." }, "servers": [ { "url": "https://shop.uquid.com/public/api/v1", "description": "Production" }, { "url": "https://shop.uquid.local/public/api/v1", "description": "Local / staging" } ], "tags": [ { "name": "System", "description": "Health and connectivity checks" }, { "name": "Wallet", "description": "Wallet balances and deposits" }, { "name": "Catalog", "description": "Platforms, regions, product listing and detail" }, { "name": "Tickets", "description": "Live event ticket catalog and listing" }, { "name": "Order", "description": "Order submission, confirmation, and status" } ], "components": { "securitySchemes": { "ApiKeyHeader": { "type": "apiKey", "in": "header", "name": "X-API-KEY", "description": "64-character hexadecimal API key" }, "SignatureHeader": { "type": "apiKey", "in": "header", "name": "X-API-SIGNATURE", "description": "HMAC-SHA256(raw JSON body, api_secret) — required for POST requests with a body" } }, "schemas": { "ApiResponse": { "type": "object", "properties": { "status": { "type": "boolean" }, "data": {}, "extra": { "type": "string", "description": "Validation error detail (e.g. field name)" } } }, "ErrorPayload": { "type": "object", "properties": { "code": { "type": "string", "example": "E108" }, "error": { "type": "string", "example": "Not found valid params" }, "message": { "type": "string" } } }, "SignedRequestBody": { "type": "object", "required": [ "nonce" ], "properties": { "nonce": { "type": "integer", "description": "Unix timestamp in seconds; must be within ±30s of server time", "example": 1731729353 }, "params": { "type": "object", "description": "Endpoint-specific parameters; may be an empty object `{}`" } } }, "WalletCoin": { "type": "object", "properties": { "symbol": { "type": "string", "example": "uqc" }, "name": { "type": "string" }, "face_symbol": { "type": "string", "example": "UQC" }, "available": { "type": "number", "example": 1.5 }, "deposit_address": { "type": "string" }, "to_usd": { "type": "string" }, "rate": { "type": "number" }, "type": { "type": "string", "description": "Network identifier, e.g. ethereum" }, "sub_type": { "type": "string", "description": "Chain identifier" }, "explorer_url": { "type": "string" } } }, "ProductListItem": { "type": "object", "properties": { "reference": { "type": "string", "description": "Short product URL", "example": "https://uquid.us/k0s5PBOzAppK" }, "product_id": { "type": "string", "example": "BZCVpWaErYvQSl" }, "price": { "type": "number" }, "available": { "type": "boolean" }, "title": { "type": "string" }, "image": { "type": "string" }, "region": { "type": "string", "example": "us" }, "platform": { "type": "string", "example": "xbox" } } }, "ProductDetail": { "type": "object", "properties": { "reference": { "type": "string" }, "price": { "type": "number" }, "discount": { "type": "number" }, "fee": { "type": "number" }, "name": { "type": "string" }, "currency": { "type": "string", "example": "usd" }, "id": { "type": "string", "description": "Encoded product ID (product_sku)" }, "extra": { "type": "object", "description": "Metadata: dynamic_field_required_array, range, subject, etc." }, "in_stock": { "type": "boolean" }, "type": { "type": "string", "enum": [ "voucher", "service", "ticket" ] }, "submit_fields": { "type": "array", "items": { "type": "string" }, "example": [ "_order_product_id", "_order_coin", "_order_mode", "_order_quantity" ] }, "max": { "type": "integer", "description": "Maximum quantity per order" }, "meta_data": { "type": "object" }, "image": { "type": "string", "description": "Product image URL (CDN)" }, "description": { "type": "string", "description": "Product description HTML (links and images preserved; CDN URLs normalized via replaceImgUrlInString)" }, "usage": { "type": "string", "description": "Plain-text usage or redemption instructions (HTML stripped); may be empty when instructions are only in description" } } }, "SubmitOrderParams": { "type": "object", "required": [ "_order_product_id", "_order_coin", "_order_mode" ], "properties": { "_order_product_id": { "type": "string", "description": "Encoded product ID from product_detail or product_list" }, "_order_coin": { "type": "string", "description": "Payment coin symbol (e.g. uqc, usdt)", "example": "uqc" }, "_order_mode": { "type": "string", "enum": [ "preview", "live" ], "description": "preview = price quote only; live = create checkout batch" }, "_order_quantity": { "type": "integer", "default": 1 }, "_order_auto_confirm_mode": { "type": "integer", "enum": [ 0, 1 ], "description": "1 = auto-confirm after submit (requires _order_external_id)" }, "_order_external_id": { "type": "string", "maxLength": 32, "description": "Idempotency key when auto_confirm=1" }, "_order_force_mode": { "type": "integer", "description": "Service top-up: bypass certain validation checks" }, "_order_value": { "type": "number", "description": "Custom denomination (service / voucher with range)" }, "mobile_number": { "type": "string", "description": "Top-up destination number (E.164 without leading +)" }, "bundle_package": { "type": "string" }, "account_number": { "type": "string" } } }, "SubmitOrderResult": { "type": "object", "properties": { "batch_id": { "type": "string", "example": "AP599178000651888457101" }, "price_usd": { "type": "number" }, "price_coin": { "type": "string" }, "coin": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "price_usd_org": { "type": "number" }, "price_usd": { "type": "number" }, "price_coin": { "type": "string" }, "discount": { "type": "number" }, "qty": { "type": "integer" } } } }, "submit_ts": { "type": "integer" }, "valid_ts": { "type": "integer" }, "external_id": { "type": "string" }, "confirmedOrder": { "type": "object", "description": "Present when _order_auto_confirm_mode=1", "properties": { "order_status": { "type": "boolean" }, "order_ids": { "type": "array", "items": { "type": "integer" } } } } } }, "OrderStatus": { "type": "object", "properties": { "batch_id": { "type": "string" }, "execution_status": { "type": "string", "example": "executing", "description": "e.g. completed, finished, executing" }, "payment_status": { "type": "string", "example": "completed" }, "date": { "type": "string" }, "qty": { "type": "string" }, "keys": { "type": "object", "description": "Map of order_id to delivery key (returned only when order is fulfilled)", "additionalProperties": { "type": "string" } } } }, "TicketCategory": { "type": "object", "properties": { "typeId": { "type": "integer", "description": "Category type ID — use as `type_id` in ticket_listing", "example": 2 }, "subTypeId": { "type": "integer", "description": "Sub-category ID — use as `sub_type_id` in ticket_listing", "example": 262 }, "typeName": { "type": "string", "example": "Concert" }, "subTypeName": { "type": "string", "example": "Alternative & Indie" } } }, "TicketFacets": { "type": "object", "properties": { "geo": { "type": "object", "description": "Country → list of city names", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "example": { "United States": [ "New York", "Los Angeles" ] } }, "tour": { "type": "object", "description": "Tournament / tour name → display label", "additionalProperties": { "type": "string" }, "example": { "MLS": "MLS" } }, "performer": { "type": "object", "description": "Performer ID → performer name (use ID as `performer_id` in ticket_listing)", "additionalProperties": { "type": "string" }, "example": { "13923": "Team A" } }, "venue": { "type": "object", "description": "Venue ID → venue name (use ID as `venue_id` in ticket_listing)", "additionalProperties": { "type": "string" }, "example": { "72696": "Madison Square Garden" } } } }, "TicketCatalogData": { "type": "object", "properties": { "total": { "type": "integer", "description": "Total upcoming events in the catalog" }, "categories": { "type": "array", "items": { "$ref": "#/components/schemas/TicketCategory" } }, "facets": { "$ref": "#/components/schemas/TicketFacets" } } }, "TicketEvent": { "type": "object", "properties": { "product_id": { "type": "string", "description": "Encoded product ID for product_detail and submit_order", "example": "BZCVpWaErYvQSl" }, "reference": { "type": "string", "description": "Short product URL", "example": "https://uquid.us/abc123" }, "title": { "type": "string", "example": "World Cup Final" }, "url": { "type": "string", "description": "Event page URL on shop.uquid.com" }, "image": { "type": "string" }, "date": { "type": "string", "format": "date", "example": "2026-07-15" }, "time": { "type": "string", "example": "20:00:00" }, "venue": { "type": "string" }, "city": { "type": "string" }, "country": { "type": "string" }, "performer": { "type": "string" }, "type_name": { "type": "string", "example": "Sport" }, "sub_type_name": { "type": "string", "example": "Football" }, "tour": { "type": "string", "example": "World Cup" } } }, "TicketListingData": { "type": "object", "properties": { "events": { "type": "array", "items": { "$ref": "#/components/schemas/TicketEvent" } }, "total_pages": { "type": "integer" }, "total_items": { "type": "integer" }, "page": { "type": "integer" }, "per_page": { "type": "integer", "example": 50 }, "facets": { "$ref": "#/components/schemas/TicketFacets", "description": "Browse mode only — omitted when `keyword` is used" } } } }, "parameters": { "ApiKeyHeader": { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string", "minLength": 64, "maxLength": 64 }, "example": "85bf5ed03a1ed3405e94622cc632cdb5ade3ce354b727e0adff22939f7029309" }, "SignatureHeader": { "name": "X-API-SIGNATURE", "in": "header", "required": true, "schema": { "type": "string", "minLength": 64, "maxLength": 64 }, "description": "HMAC-SHA256 of the raw request body" } }, "examples": { "ProductListRequest": { "value": { "nonce": 1731729353, "params": { "page": 1, "platform": "xbox", "region": "us" } } }, "SubmitOrderRequest": { "value": { "nonce": 1731729353, "params": { "_order_product_id": "BZCVpWaErYvQSl", "_order_coin": "uqc", "_order_mode": "live", "_order_quantity": 1, "_order_auto_confirm_mode": 0 } } }, "DepositBinancePay": { "value": { "nonce": 1731729353, "params": { "type": "binancepay", "symbol": "usdt", "amount": "10" } } }, "TicketCatalogRequest": { "value": { "nonce": 1731729353, "params": {} } }, "TicketListingBrowseRequest": { "value": { "nonce": 1731729353, "params": { "page": 1, "type_id": "2", "sub_type_id": "262", "country": "United States", "city": "New York", "tournament": "MLS", "performer_id": "13923", "venue_id": "72696", "start_date": "2026-07-01", "end_date": "2026-07-31" } } }, "TicketListingKeywordRequest": { "value": { "nonce": 1731729353, "params": { "page": 1, "keyword": "world cup" } } } } }, "paths": { "/ping": { "get": { "tags": [ "System" ], "summary": "Ping (GET)", "description": "Verify API key and retrieve server time. **No request body or signature required.**", "security": [ { "ApiKeyHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" } ], "responses": { "200": { "description": "Successful ping", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" }, "example": { "status": true, "data": { "now": 1731729353, "message": "pong" } } } } } } }, "post": { "tags": [ "System" ], "summary": "Ping (POST)", "description": "Same as GET; when a JSON body is sent, `nonce` and `X-API-SIGNATURE` are required.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignedRequestBody" }, "example": { "nonce": 1731729353 } } } }, "responses": { "200": { "description": "Successful ping", "content": { "application/json": { "example": { "status": true, "data": { "now": 1731729353, "message": "pong" } } } } } } } }, "/wallet_balance": { "get": { "tags": [ "Wallet" ], "summary": "Get wallet balances", "description": "Returns Uquid wallet coins with `depositable=1` (non-fiat). Use `symbol` values for `_order_coin` and `deposit` requests.", "security": [ { "ApiKeyHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" } ], "responses": { "200": { "description": "List of wallet coins", "content": { "application/json": { "example": { "status": true, "data": [ { "symbol": "uqc", "name": "uqc", "face_symbol": "uqc", "available": 10.5, "deposit_address": "0x…", "to_usd": "10.50", "rate": 1, "type": "ethereum", "sub_type": "bsc", "explorer_url": "https://bscscan.com" } ] } } } } } } }, "/platform_list": { "get": { "tags": [ "Catalog" ], "summary": "List platforms (facets)", "description": "Returns available digital platforms. Use returned `platform` values when calling `product_list`.", "security": [ { "ApiKeyHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" } ], "responses": { "200": { "description": "Array of platform strings", "content": { "application/json": { "example": { "status": true, "data": [ "xbox", "playstation", "nintendo", "steam" ] } } } } } } }, "/region_list": { "get": { "tags": [ "Catalog" ], "summary": "List regions (facets)", "description": "Returns available digital regions. Use returned `region` values when calling `product_list`.", "security": [ { "ApiKeyHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" } ], "responses": { "200": { "description": "Array of region strings", "content": { "application/json": { "example": { "status": true, "data": [ "us", "eu", "global", "uk" ] } } } } } } }, "/product_list": { "post": { "tags": [ "Catalog" ], "summary": "List products", "description": "Paginated catalog with **50 items per page**. Filter by `platform` and `region` (values must exist in the system index). When `keyword` is provided, a full-text search is performed and **platform/region filters are ignored**.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "properties": { "page": { "type": "integer", "default": 1, "minimum": 1 }, "platform": { "type": "string", "description": "Filter by platform (optional)" }, "region": { "type": "string", "description": "Filter by region (optional)" }, "keyword": { "type": "string", "description": "Full-text search; max ~8 words. Ignores platform/region when set." } } } } } ] }, "examples": { "byFacet": { "summary": "Filter by platform and region", "value": { "nonce": 1731729353, "params": { "page": 1, "platform": "xbox", "region": "us" } } }, "byKeyword": { "summary": "Full-text search", "value": { "nonce": 1731729353, "params": { "page": 1, "keyword": "xbox gift" } } } } } } }, "responses": { "200": { "description": "Paginated product list", "content": { "application/json": { "example": { "status": true, "data": { "products": [ { "reference": "https://uquid.us/abc123", "product_id": "BZCVpWaErYvQSl", "price": 25.99, "available": true, "title": "Xbox Gift Card 25 USD", "image": "https://cdn.example.com/image.jpg", "region": "us", "platform": "xbox" } ], "total_pages": 3, "total_items": 120, "page": 1, "per_page": 50, "region": [ "us" ], "platform": [ "xbox" ] } } } } } } } }, "/product_detail": { "post": { "tags": [ "Catalog" ], "summary": "Get product detail", "description": "Returns the full product payload required to build a `submit_order` request (`submit_fields`, `in_stock`, `type`, `extra`) plus catalog content (`image`, `description`, `usage`). Unsupported product types return not found.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "required": [ "product_id" ], "properties": { "product_id": { "type": "string", "example": "BZCVpWaErYvQSl" } } } } } ] }, "example": { "nonce": 1731729353, "params": { "product_id": "BZCVpWaErYvQSl" } } } } }, "responses": { "200": { "description": "Product detail", "content": { "application/json": { "example": { "status": true, "data": { "reference": "https://uquid.us/abc123", "price": 25.99, "discount": 0, "fee": 2, "name": "Xbox Gift Card 25 USD", "currency": "usd", "id": "BZCVpWaErYvQSl", "extra": {}, "in_stock": true, "type": "voucher", "submit_fields": [ "_order_product_id", "_order_coin", "_order_mode", "_order_quantity" ], "max": 5, "meta_data": { "pl": "xbox", "reg": "us" }, "image": "https://cdn.example.com/xbox-gift-card-25-usd.png", "description": "Xbox Gift Card 25 USD — redeem on Microsoft account for games, apps, movies, and more on Xbox and Windows.", "usage": "Go to microsoft.com/redeem, sign in, enter the 25-character code from your email, then confirm." } } } } } } } }, "/deposit": { "post": { "tags": [ "Wallet" ], "summary": "Create a deposit", "description": "**Supported types:** `onchain` | `gateiopay` | `binancepay` | `bybitpay` | `kucoinpay` | `krakenpay`\n\n- **onchain:** Returns `deposit_address`; `amount` is optional. `invoice_id` prefix is `DPON…`\n- **Payment gateways:** `amount` is required; `symbol` depends on the gateway (typically `usdt`; `krakenpay` uses `usdc`). Returns `deeplink` and `qrcode_link`.\n\nRate limit: 5 requests per 60 seconds per user.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "required": [ "type", "symbol" ], "properties": { "type": { "type": "string", "enum": [ "onchain", "gateiopay", "binancepay", "bybitpay", "kucoinpay", "krakenpay" ] }, "symbol": { "type": "string", "example": "usdt" }, "amount": { "type": "string", "description": "Required for gateway payments; optional for onchain" } } } } } ] }, "examples": { "onchain": { "value": { "nonce": 1731729353, "params": { "type": "onchain", "symbol": "usdt", "amount": "100" } } }, "binancepay": { "$ref": "#/components/examples/DepositBinancePay" } } } } }, "responses": { "200": { "description": "Deposit invoice created", "content": { "application/json": { "examples": { "onchain": { "value": { "status": true, "data": { "deposit_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "amount": "100", "symbol": "usdt", "type": "onchain", "invoice_id": "DPON173172935312345678901234", "status": "pending", "created": 1731729353 } } }, "binancepay": { "value": { "status": true, "data": { "amount": "10", "symbol": "usdt", "type": "binancepay", "status": "INITIAL", "created": 1731729353, "invoice_id": "BNC123456789", "deeplink": "bnc://pay", "qrcode_link": "https://example.com/qr" } } } } } } } } } }, "/invoice": { "post": { "tags": [ "Wallet" ], "summary": "Get deposit invoice status", "description": "Use the `invoice_id` returned from `deposit`.\n\n- **Gateway payments:** Queries the payment provider for current status.\n- **onchain:** Requires `txhash`; checks whether the deposit transaction has been credited (`Deposited` or `Pending`).", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "required": [ "type", "invoice_id" ], "properties": { "type": { "type": "string", "enum": [ "onchain", "gateiopay", "binancepay", "bybitpay", "kucoinpay", "krakenpay" ] }, "invoice_id": { "type": "string" }, "txhash": { "type": "string", "description": "Required when type=onchain" } } } } } ] }, "example": { "nonce": 1731729353, "params": { "type": "onchain", "invoice_id": "DPON173172935312345678901234", "txhash": "0xabc123" } } } } }, "responses": { "200": { "description": "Invoice status", "content": { "application/json": { "examples": { "gateway": { "value": { "status": true, "data": { "status": "Paid" } } }, "onchain": { "value": { "status": true, "data": { "status": "Deposited" } } } } } } } } } }, "/submit_order": { "post": { "tags": [ "Order" ], "summary": "Submit order or get price quote", "description": "Call after `product_detail` with all fields listed in `submit_fields`.\n\n- `_order_mode=preview`: Price quote only; no `batch_id` returned.\n- `_order_mode=live`: Creates a checkout session; returns `batch_id` and `valid_ts`.\n- `_order_auto_confirm_mode=1`: Requires a unique `_order_external_id`; may return `confirmedOrder` inline.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "$ref": "#/components/schemas/SubmitOrderParams" } } } ] }, "examples": { "live": { "$ref": "#/components/examples/SubmitOrderRequest" }, "preview": { "value": { "nonce": 1731729353, "params": { "_order_product_id": "BZCVpWaErYvQSl", "_order_coin": "uqc", "_order_mode": "preview", "_order_quantity": 1 } } }, "topup": { "value": { "nonce": 1731729353, "params": { "_order_product_id": "ZLCYydbpVAQeho", "_order_coin": "uqc", "_order_mode": "live", "mobile_number": "84974371550", "_order_value": 50000 } } } } } } }, "responses": { "200": { "description": "Order submission result", "content": { "application/json": { "example": { "status": true, "data": { "batch_id": "AP599178000651888457101", "price_usd": 5.559, "price_coin": "1.41099609", "coin": "uqc", "items": [ { "id": "BZCVpWaErYvQSl", "title": "Xbox Gift Card", "price_usd_org": 5.559, "price_usd": 5.559, "price_coin": "1.41099609", "discount": 0, "qty": 1 } ], "submit_ts": 1731729353, "valid_ts": 1731730253 } } } } } } } }, "/confirm_order": { "post": { "tags": [ "Order" ], "summary": "Confirm and pay for order", "description": "Uses `batch_id` from a live `submit_order` response. Deducts the `coin` balance from the checkout session. The session is deleted after confirmation and cannot be confirmed again with the same `batch_id`.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "required": [ "batch_id" ], "properties": { "batch_id": { "type": "string", "example": "AP599178000651888457101" } } } } } ] }, "example": { "nonce": 1731729353, "params": { "batch_id": "AP599178000651888457101" } } } } }, "responses": { "200": { "description": "Order confirmation result", "content": { "application/json": { "examples": { "success": { "value": { "status": true, "data": { "order_status": true, "order_ids": [ 704397 ] } } }, "insufficientBalance": { "value": { "status": true, "data": { "code": "E112", "error": "Insufficient account balance" }, "extra": "insufficient amount (0.5)" } } } } } } } } }, "/ticket_catalog": { "post": { "tags": [ "Tickets" ], "summary": "Get ticket catalog metadata", "description": "Returns upcoming-event **categories** (type/sub-type) and **browse facets** (`geo`, `tour`, `performer`, `venue`) for building `ticket_listing` filters.\n\nRead-only: no user filter params. Internally runs a minimal browse (`limit=1`) to compute `total` and facets; does **not** return event rows.\n\nFacet values map to `ticket_listing` params: `type_id` ← `categories[].typeId`, `sub_type_id` ← `categories[].subTypeId`, `country`/`city` ← `facets.geo`, `tournament` ← `facets.tour`, `performer_id` ← `facets.performer` keys, `venue_id` ← `facets.venue` keys.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "description": "May be an empty object `{}`", "additionalProperties": false } } } ] }, "examples": { "default": { "$ref": "#/components/examples/TicketCatalogRequest" } } } } }, "responses": { "200": { "description": "Ticket catalog metadata", "content": { "application/json": { "example": { "status": true, "data": { "total": 8487, "categories": [ { "typeId": 2, "subTypeId": 262, "typeName": "Concert", "subTypeName": "Alternative & Indie" } ], "facets": { "geo": { "United States": [ "New York", "Los Angeles" ] }, "tour": { "MLS": "MLS" }, "performer": { "13923": "Team A" }, "venue": { "72696": "Madison Square Garden" } } } } } } } } } }, "/ticket_listing": { "post": { "tags": [ "Tickets" ], "summary": "List upcoming ticket events", "description": "Paginated list of upcoming events — **50 items per page**, capped at **10,000** total items.\n\n**Browse mode** (no `keyword`): filter by category, location, tournament, performer, venue, and/or date range. Response includes `facets` for refining filters.\n\n**Keyword mode** (`keyword` set): full-text search over event names and related fields. When `keyword` is provided, `type_id`, `sub_type_id`, `country`, `city`, `tournament`, `performer_id`, `venue_id`, `start_date`, and `end_date` are **ignored**. Facets are omitted in keyword mode.\n\n`start_date` and `end_date` must both be set (`YYYY-MM-DD`) and be **today or later**.\n\nUse `product_id` from each event for `product_detail` and `submit_order`.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "properties": { "page": { "type": "integer", "default": 1, "minimum": 1 }, "type_id": { "type": "string", "description": "From ticket_catalog categories[].typeId" }, "sub_type_id": { "type": "string", "description": "From ticket_catalog categories[].subTypeId" }, "country": { "type": "string", "description": "From ticket_catalog facets.geo country keys" }, "city": { "type": "string", "description": "From ticket_catalog facets.geo cities" }, "tournament": { "type": "string", "description": "From ticket_catalog facets.tour (maps to internal tour field)" }, "performer_id": { "type": "string", "description": "From ticket_catalog facets.performer keys" }, "venue_id": { "type": "string", "description": "From ticket_catalog facets.venue keys" }, "start_date": { "type": "string", "format": "date", "description": "YYYY-MM-DD, required together with end_date" }, "end_date": { "type": "string", "format": "date", "description": "YYYY-MM-DD, required together with start_date" }, "keyword": { "type": "string", "description": "Full-text search (max ~8 words). Ignores all other filters when set." } } } } } ] }, "examples": { "browse": { "$ref": "#/components/examples/TicketListingBrowseRequest" }, "keyword": { "$ref": "#/components/examples/TicketListingKeywordRequest" } } } } }, "responses": { "200": { "description": "Paginated ticket events", "content": { "application/json": { "examples": { "browse": { "value": { "status": true, "data": { "events": [ { "product_id": "BZCVpWaErYvQSl", "reference": "https://uquid.us/abc123", "title": "World Cup Final", "url": "https://shop.uquid.com/ticket/event/world-cup-final", "image": "https://cdn.example.com/event.jpg", "date": "2026-07-15", "time": "20:00:00", "venue": "Arena", "city": "Paris", "country": "France", "performer": "Team A & Team B", "type_name": "Sport", "sub_type_name": "Football", "tour": "World Cup" } ], "total_pages": 170, "total_items": 8487, "page": 1, "per_page": 50, "facets": { "geo": { "France": [ "Paris" ] }, "tour": { "World Cup": "World Cup" }, "performer": { "13923": "Team A" }, "venue": { "72696": "Arena" } } } } }, "keyword": { "value": { "status": true, "data": { "events": [], "total_pages": 114, "total_items": 5688, "page": 1, "per_page": 50 } } } } } } } } } }, "/check_order": { "post": { "tags": [ "Order" ], "summary": "Get order status", "description": "Look up an order by `batch_id` (checkout token). `keys` are returned only when `execution_status` is `completed`, `finished`, or `future`, and `payment_status` is `completed`.", "security": [ { "ApiKeyHeader": [], "SignatureHeader": [] } ], "parameters": [ { "$ref": "#/components/parameters/ApiKeyHeader" }, { "$ref": "#/components/parameters/SignatureHeader" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/SignedRequestBody" }, { "properties": { "params": { "type": "object", "required": [ "batch_id" ], "properties": { "batch_id": { "type": "string", "example": "BP357462000040165877101" } } } } } ] }, "example": { "nonce": 1731729353, "params": { "batch_id": "BP357462000040165877101" } } } } }, "responses": { "200": { "description": "Order status", "content": { "application/json": { "example": { "status": true, "data": { "batch_id": "BP357462000040165877101", "execution_status": "completed", "payment_status": "completed", "date": "1731729574", "qty": "1", "keys": { "704397": "XXXX-XXXX-XXXX" } } } } } } } } } } }