{"openapi":"3.1.0","info":{"title":"GameSoupSales Partner API","description":"API каталога, проверки получателя, заказов и баланса партнёра.","version":"2.0.0"},"servers":[{"url":"https://217.144.190.112.nip.io","description":"Production API"}],"paths":{"/api/balance":{"get":{"tags":["partner"],"summary":"Balance","operationId":"balance_api_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Balance Api Balance Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/products":{"get":{"tags":["partner"],"summary":"Products","operationId":"products_api_v1_products_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","maxLength":10,"default":"en","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/products":{"get":{"tags":["partner"],"summary":"Legacy Products","operationId":"legacy_products_api_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/check-player":{"post":{"tags":["partner"],"summary":"Check Player Route","operationId":"check_player_route_api_v1_check_player_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPlayerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Check Player Route Api V1 Check Player Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/order":{"post":{"tags":["partner"],"summary":"Create Order Route","operationId":"create_order_route_api_v1_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Order Route Api V1 Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/order/{order_id}":{"get":{"tags":["partner"],"summary":"Order Status","operationId":"order_status_api_v1_order__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Order Status Api V1 Order  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders":{"get":{"tags":["partner"],"summary":"Orders List","operationId":"orders_list_api_v1_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"}},{"name":"partner_order_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Partner Order Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Orders List Api V1 Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pubg/order":{"post":{"tags":["partner"],"summary":"Legacy Pubg Order","operationId":"legacy_pubg_order_api_pubg_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyPubgOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Legacy Pubg Order Api Pubg Order Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"CheckPlayerRequest":{"properties":{"product_id":{"type":"string","maxLength":255,"minLength":1,"title":"Product Id"},"player_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Player Id"},"server_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Server Id"},"quantity":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Quantity"},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","required":["product_id"],"title":"CheckPlayerRequest"},"CreateOrderRequest":{"properties":{"product_id":{"type":"string","maxLength":255,"minLength":1,"title":"Product Id"},"player_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Player Id"},"server_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Server Id"},"quantity":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Quantity"},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"},"partner_order_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Partner Order Id"}},"additionalProperties":false,"type":"object","required":["product_id","idempotency_key"],"title":"CreateOrderRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LegacyPubgOrderRequest":{"properties":{"product_id":{"type":"string","maxLength":255,"minLength":1,"title":"Product Id"},"player_id":{"type":"string","maxLength":255,"minLength":1,"title":"Player Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Idempotency Key"},"partner_order_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Partner Order Id"}},"additionalProperties":false,"type":"object","required":["product_id","player_id"],"title":"LegacyPubgOrderRequest"},"ProductFieldOption":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"ProductFieldOption"},"ProductInputField":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","password","select","decimal"],"title":"Type"},"required":{"type":"boolean","title":"Required"},"options":{"items":{"$ref":"#/components/schemas/ProductFieldOption"},"type":"array","title":"Options"},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max"},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals"},"min_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Length"},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Length"}},"type":"object","required":["key","label","type","required"],"title":"ProductInputField"},"ProductResponse":{"properties":{"product_id":{"type":"string","title":"Product Id"},"section":{"type":"string","enum":["games","services"],"title":"Section"},"game":{"type":"string","title":"Game"},"category":{"type":"string","title":"Category"},"name":{"type":"string","title":"Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"price":{"type":"number","title":"Price"},"available":{"type":"boolean","title":"Available"},"required_fields":{"items":{"type":"string"},"type":"array","title":"Required Fields"},"input_fields":{"items":{"$ref":"#/components/schemas/ProductInputField"},"type":"array","title":"Input Fields"},"supports_player_check":{"type":"boolean","title":"Supports Player Check","default":false},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"},"quantity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quantity Type"},"min_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Quantity"},"max_quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Quantity"},"package":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package"},"gcoin":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gcoin"},"parts":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Parts"},"requested_uc":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requested Uc"},"price_per_code":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Code"},"price_per_unit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Unit"},"price_per_voucher":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Per Voucher"}},"type":"object","required":["product_id","section","game","category","name","price","available","required_fields","input_fields"],"title":"ProductResponse"},"ProductsResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"products":{"items":{"$ref":"#/components/schemas/ProductResponse"},"type":"array","title":"Products"}},"type":"object","required":["products"],"title":"ProductsResponse"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Персональный API-ключ из профиля бота.","scheme":"bearer","bearerFormat":"48 букв и цифр"}}}}