{"openapi":"3.1.0","info":{"title":"RechargeGames Order API","version":"1"},"paths":{"/v1/ping":{"get":{"summary":"Ping","operationId":"ping_v1_ping_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/region-check":{"get":{"summary":"Region Check","description":"Does `uid` belong to `region` for `game`? Answers OK / WRONG_REGION (+ the real\nregion) / UID_NOT_FOUND / NO_LOCK / EXISTS / UNVERIFIED / UNSUPPORTED. Cached per\nUID for 7 days; throttled to protect the upstream checker.","operationId":"region_check_v1_region_check_get","parameters":[{"name":"game","in":"query","required":true,"schema":{"type":"string","maxLength":60,"title":"Game"}},{"name":"uid","in":"query","required":true,"schema":{"type":"string","maxLength":32,"title":"Uid"}},{"name":"region","in":"query","required":false,"schema":{"type":"string","maxLength":60,"default":"","title":"Region"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders":{"post":{"summary":"Create Order","operationId":"create_order_v1_orders_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Orders","operationId":"list_orders_v1_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated order_ids (max 100)","title":"Ids"},"description":"Comma-separated order_ids (max 100)"},{"name":"buyer_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated buyer_refs (max 100)","title":"Buyer Ref"},"description":"Comma-separated buyer_refs (max 100)"},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/batch":{"post":{"summary":"Create Orders Batch","description":"Up to 25 orders in one call. Always 200 when the request itself is valid — each line\ncarries its own http_status / result (created, existing, error).","operationId":"create_orders_batch_v1_orders_batch_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/orders/{order_id}":{"get":{"summary":"Get Order","operationId":"get_order_v1_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/products":{"get":{"summary":"List Products","description":"What you can order, at YOUR price. No parameters: a small index of games. `game=<slug>`:\nthat game's regions and packs, each with the `product_key` to send in POST /v1/orders.\n`all=true`: the whole catalog. Only priced products appear — the same list the dashboard sells.","operationId":"list_products_v1_products_get","parameters":[{"name":"game","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Category slug, e.g. free-fire","title":"Game"},"description":"Category slug, e.g. free-fire"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(topup|giftcard)$"},{"type":"null"}],"title":"Kind"}},{"name":"all","in":"query","required":false,"schema":{"type":"boolean","description":"Return every product (large, ~1.6 MB)","default":false,"title":"All"},"description":"Return every product (large, ~1.6 MB)"},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/balance":{"get":{"summary":"Get Balance","operationId":"get_balance_v1_balance_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deposits":{"post":{"summary":"Api Create Deposit","operationId":"api_create_deposit_v1_deposits_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deposits/{intent_id}":{"get":{"summary":"Api Get Deposit","operationId":"api_get_deposit_v1_deposits__intent_id__get","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deposits/{intent_id}/claim":{"post":{"summary":"Api Claim Deposit","operationId":"api_claim_deposit_v1_deposits__intent_id__claim_post","parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","title":"Intent Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BatchIn":{"properties":{"orders":{"items":{"$ref":"#/components/schemas/OrderIn"},"type":"array","maxItems":25,"minItems":1,"title":"Orders"}},"type":"object","required":["orders"],"title":"BatchIn"},"DepositIn":{"properties":{"amount":{"type":"number","maximum":100000.0,"exclusiveMinimum":0.0,"title":"Amount"}},"type":"object","required":["amount"],"title":"DepositIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OrderIn":{"properties":{"product":{"type":"string","maxLength":500,"minLength":1,"title":"Product"},"product_key":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Product Key"},"buyer_ref":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Buyer Ref"},"region":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Region"},"quantity":{"type":"integer","maximum":999.0,"minimum":1.0,"title":"Quantity","default":1},"player_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Player Id"},"server_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Server Id"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"},"account_email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Account Email"},"account_password":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Account Password"},"extra":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra"},"test":{"type":"boolean","title":"Test","default":false}},"type":"object","required":["product"],"title":"OrderIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}