{"definitions":{},"info":{"description":"powered by Flasgger","termsOfService":"/tos","title":"A swagger API","version":"0.0.1"},"paths":{"/api/mobile/v2/account":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"collectionFormat":"multi","description":" Available `param`s:\n* `id`\n* `email`\n* `account_number`\n* `status`\n* `ip_list`\n* `default_lang`\n* `timezone`\n* `birthdate`\n* `use_api`\n* `use_infodesk`\n* `shop_transfer_enabled`\n* `auth_methods`\n* `auth_operations`\n* `verification_method`\n* `balances`\n* `balances.code`\n* `balances.alias`\n* `balances.available`\n* `balances.hold`\n* `balances.remainder`\n","in":"query","items":{"type":"string"},"name":"param","required":true,"type":"array"}],"responses":{"0":{"description":"OK","schema":{"properties":{"account_number":{"description":"Account number","type":"integer"},"auth_methods":{"description":"Account authorization methods","properties":{"1":{"description":"If Google Authenticator is enabled","type":"boolean"}},"type":"object"},"auth_operations":{"description":"Account authorization operations","properties":{"2":{"description":"What authorization method is enabled for login","type":"integer"},"20":{"description":"What authorization method is enabled for shop settings","type":"integer"},"22":{"description":"What authorization method is enabled for shop input paymethod payways","type":"integer"},"38":{"description":"What authorization method is enabled for payments","type":"integer"}},"type":"object"},"balances":{"description":"Account balances","items":{"properties":{"alias":{"description":"Currency alias","type":"string"},"available":{"description":"Balance available","type":"number"},"code":{"description":"Currency code","type":"integer"},"hold":{"description":"Balance hold","type":"number"},"remainder":{"description":"Balance remainder","type":"number"}},"type":"object"},"type":"array"},"birthdate":{"description":"Account birthdate","format":"date","type":"string"},"default_lang":{"description":"Account language","format":"lng","type":"string"},"email":{"description":"Account email","format":"email","type":"string"},"id":{"description":"Account ID","type":"integer"},"ip_list":{"description":"IP addresses, that are checked during login process","items":{"format":"ip","type":"string"},"type":"array"},"shop_transfer_enabled":{"description":"If transfers between shops are available for this account","type":"boolean"},"status":{"description":"Account status","type":"integer"},"timezone":{"description":"Account timezone","type":"integer"},"use_api":{"description":"If shops are available for this account","type":"boolean"},"use_infodesk":{"description":"If infodesk is available for this account","type":"boolean"},"verification_method":{"description":"Current verification method","type":"integer"}},"type":"object"}}},"summary":"Get information about logged-in account"}},"/api/mobile/v2/auth":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"0":{"description":"Returns `true` if the user is authenticated, and `false` otherwise","schema":{"description":"OK","type":"boolean"}}},"summary":"Check if the user is authenticated"},"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"0":{"description":"Returns `true` if the user is authenticated, and `false` otherwise","schema":{"description":"OK","type":"boolean"}}},"summary":"Check if the user is authenticated"}},"/api/mobile/v2/auth/methods/{auth_method_id}/{ttype}":{"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Authentication method id","in":"path","name":"auth_method_id","required":true,"type":"integer"},{"description":"Token type","in":"path","name":"ttype","required":true,"type":"integer"},{"in":"body","name":"body","required":false,"schema":{"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"token":{"description":"Token","format":"uuid","type":"string"}},"required":["token"],"type":"object"}}},"summary":"\"Authentication method notification\""}},"/api/mobile/v2/bills":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Bill ID","in":"query","name":"id","required":false,"type":"integer"},{"description":"Last bill ID from previous page (for pagination)","in":"query","name":"last_id","required":false,"type":"integer"},{"description":"Bill created datetime (from)","format":"timestamp","in":"query","name":"created_from","required":false,"type":"integer"},{"description":"Bill created datetime (to)","format":"timestamp","in":"query","name":"created_to","required":false,"type":"integer"},{"description":"Shop bill ID","in":"query","name":"shop_order_id","required":false,"type":"string"},{"description":"Bill source currency","in":"query","name":"source_currency","required":false,"type":"integer"},{"description":"Bill target currency","in":"query","name":"target_currency","required":false,"type":"integer"},{"description":"Bill shop name","in":"query","name":"account","required":false,"type":"string"},{"description":"Bill status","in":"query","name":"status","required":false,"type":"integer"},{"description":"Pagination limit","in":"query","name":"limit","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"account":{"description":"Bill shop name","type":"string"},"created":{"description":"Bill created datetime","format":"timestamp","type":"integer"},"encoded_id":{"description":"Encoded bill ID","type":"string"},"expired":{"description":"Bill expired datetime","format":"timestamp","type":"integer"},"id":{"description":"Bill ID","type":"integer"},"receive_amount":{"description":"Bill receive amount","type":"number"},"receive_currency":{"description":"Bill receive currency","type":"string"},"shop_order_id":{"description":"Shop bill ID","type":"string"},"status":{"description":"Bill status","type":"integer"},"write_off_amount":{"description":"Bill write off amount","type":"number"},"write_off_currency":{"description":"Bill write off currency","type":"string"}},"type":"object"}}},"summary":"Get overall information about bills"}},"/api/mobile/v2/bills/{bill_id}":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Bill id","in":"path","name":"bill_id","required":true,"type":"integer"},{"collectionFormat":"multi","description":" Available `param`s:\n* `id`\n* `created`\n* `shop_order_id`\n* `write_off_amount`\n* `write_off_currency`\n* `receive_amount`\n* `receive_currency`\n* `status`\n* `account`\n* `description`\n* `processed`\n* `expired`\n* `shop`\n* `encoded_id`\n* `write_off_currency.code`\n* `write_off_currency.alias`\n* `receive_currency.code`\n* `receive_currency.alias`\n* `shop.id`\n* `shop.name`\n","in":"query","items":{"type":"string"},"name":"param","required":true,"type":"array"}],"responses":{"0":{"description":"OK","schema":{"properties":{"account":{"description":"Bill shop name","type":"string"},"created":{"description":"Bill created datetime","format":"timestamp","type":"integer"},"description":{"description":"Bill description","type":"string"},"encoded_id":{"description":"Encoded bill ID","type":"string"},"expired":{"description":"Bill expired datetime","format":"timestamp","type":"integer"},"id":{"description":"Bill ID","type":"integer"},"processed":{"description":"Bill processed datetime","format":"timestamp","type":"integer"},"receive_amount":{"description":"Bill receive amount","type":"number"},"receive_currency":{"description":"Bill receive currency","properties":{"alias":{"description":"Currency alias","type":"string"},"code":{"description":"Currency code","type":"integer"}},"type":"object"},"shop":{"description":"Bill shop","properties":{"id":{"description":"Shop id","type":"integer"},"name":{"description":"Shop name","type":"string"}},"type":"object"},"shop_order_id":{"description":"Shop Bill ID","type":"string"},"status":{"description":"Bill status","type":"integer"},"write_off_amount":{"description":"Bill write off amount","type":"number"},"write_off_currency":{"description":"Bill write off currency","properties":{"alias":{"description":"Currency alias","type":"string"},"code":{"description":"Currency code","type":"integer"}},"type":"object"}},"type":"object"}},"7":{"description":"Bill is not found"}},"summary":"Get detailed information about bill"}},"/api/mobile/v2/bills/{encoded_bill_id}/authenticated":{"put":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Encoded bill ID","in":"path","name":"encoded_bill_id","required":true,"type":"string"},{"in":"body","name":"body","required":false,"schema":{"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"account":{"description":"Bill shop name","type":"string"},"allowed_balances":{"description":"If current balance is not sufficient for bill payment, return list of another sufficient balances","items":{"properties":{"write_off_amount":{"description":"Bill write off amount","type":"number"},"write_off_currency":{"description":"Bill write off currency","properties":{"alias":{"description":"Currency alias","type":"string"},"code":{"description":"Currency code","type":"integer"}},"type":"object"}},"type":"object"},"type":"array"},"description":{"description":"Bill description","type":"string"},"expired":{"description":"Bill expired datetime","format":"timestamp","type":"integer"},"id":{"description":"Bill ID","type":"integer"},"is_balance_allowed":{"description":"If current balance is sufficient for bill payment","type":"boolean"},"receive_amount":{"description":"Bill receive amount","type":"number"},"receive_currency":{"description":"Bill receive currency","type":"string"},"shop_order_id":{"description":"Shop Bill ID","type":"string"},"write_off_amount":{"description":"Bill write off amount","type":"number"},"write_off_currency":{"description":"Bill write off currency","type":"string"}},"type":"object"}},"7":{"description":"Bill is not found"}},"summary":"Get detailed information about bill payment"}},"/api/mobile/v2/bills/{encoded_bill_id}/cancel":{"put":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Encoded bill ID","in":"path","name":"encoded_bill_id","required":true,"type":"string"},{"in":"body","name":"body","required":false,"schema":{"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"shop_url":{"description":"Shop failed url","format":"url","type":"string"}},"required":["shop_url"],"type":"object"}},"7":{"description":"Bill is not found"},"14":{"description":"Incorrect account status"}},"summary":"\"Cancel bill payment\""}},"/api/mobile/v2/bills/{encoded_bill_id}/pay":{"put":{"parameters":[{"in":"body","name":"body","required":false,"schema":{"type":"object"}},{"description":"Encoded bill ID","in":"path","name":"encoded_bill_id","required":true,"type":"string"}],"responses":{"0":{"description":"OK","schema":{"properties":{"shop_url":{"description":"Shop success url","format":"url","type":"string"}},"required":["shop_url"],"type":"object"}},"7":{"description":"Bill is not found"},"14":{"description":"Incorrect account status"}},"summary":"Pay the bill"}},"/api/mobile/v2/deposit":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Deposit amount","in":"query","name":"amount","required":true,"type":"number"},{"description":"Deposit currency","in":"query","name":"currency","required":true,"type":"integer"},{"description":"Paymethod ID","in":"query","name":"paymethod_id","required":false,"type":"integer"},{"description":"Paymethod currency","in":"query","name":"payer_currency","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"amount":{"description":"Deposit amount","type":"number"},"commission":{"description":"Deposit commission","type":"number"},"currency":{"description":"Deposit currency","type":"integer"},"rate":{"description":"Deposit exchange rate","type":"number"}},"type":"object"}},"1":{"description":"Payway not found"},"2":{"description":"Payway not used"},"4":{"description":"Amount is too small"},"5":{"description":"Amount is too large"},"14":{"description":"Incorrect account status"}},"summary":"Calculate deposit"},"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"amount":{"description":"Deposit amount","type":"number"},"currency":{"description":"Deposit currency","type":"integer"},"payer_currency":{"description":"Paymethod currency","type":"integer"},"paymethod_id":{"description":"Paymethod ID","type":"integer"}},"required":["amount","currency"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"type":"object"}},"1":{"description":"Payway not found"},"2":{"description":"Payway not used"},"4":{"description":"Amount is too small"},"5":{"description":"Amount is too large"},"14":{"description":"Incorrect account status"}},"summary":"\"Create deposit\""}},"/api/mobile/v2/deposits":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Deposit ID","in":"query","name":"id","required":false,"type":"integer"},{"description":"Last deposit ID from previous page (for pagination)","in":"query","name":"last_id","required":false,"type":"integer"},{"description":"Deposit created datetime (from)","format":"timestamp","in":"query","name":"created_from","required":false,"type":"integer"},{"description":"Deposit created datetime (to)","format":"timestamp","in":"query","name":"created_to","required":false,"type":"integer"},{"description":"Shop deposit ID","in":"query","name":"shop_order_id","required":false,"type":"string"},{"description":"Deposit source currency","in":"query","name":"source_currency","required":false,"type":"integer"},{"description":"Deposit target currency","in":"query","name":"target_currency","required":false,"type":"integer"},{"description":"Deposit account","in":"query","name":"account","required":false,"type":"string"},{"description":"Deposit paymethod ID","in":"query","name":"paymethod_id","required":false,"type":"integer"},{"description":"Deposit status","in":"query","name":"status","required":false,"type":"integer"},{"description":"Pagination limit","in":"query","name":"limit","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"account":{"description":"Deposit account","type":"string"},"created":{"description":"Deposit created datetime","format":"timestamp","type":"integer"},"id":{"description":"Deposit ID","type":"integer"},"paymethod_id":{"description":"Deposit paymethod ID","type":"integer"},"paymethod_type":{"description":"Deposit paymethod type:\n* `account_transfer`\n* `transfer`\n* `deposit`\n","type":"string"},"receive_amount":{"description":"Deposit receive amount","type":"number"},"receive_currency":{"description":"Deposit receive currency","type":"string"},"shop_order_id":{"description":"Shop deposit ID","type":"string"},"status":{"description":"Deposit status","type":"integer"},"write_off_amount":{"description":"Deposit write off amount","type":"number"},"write_off_currency":{"description":"Deposit write off currency","type":"string"}},"type":"object"}}},"summary":"Get overall information about deposits"}},"/api/mobile/v2/deposits/{operation_id}/offline_manual":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Deposit ID","in":"path","name":"deposit_id","required":true,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"text":{"description":"Deposit offline manual text","type":"object"}},"type":"object"}},"7":{"description":"Deposit is not found"}},"summary":"Get information about deposit offline manual"}},"/api/mobile/v2/input_paymethods":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"0":{"description":"OK","schema":{"properties":{"id":{"description":"Paymethod ID","type":"integer"},"name":{"description":"Paymethod name","type":"string"},"payways":{"description":"Paymethod payways","items":{"properties":{"code":{"description":"Payway currency code","type":"integer"},"config":{"description":"Required fields for payway","type":"object"},"currency":{"description":"Payways currency alias","type":"string"},"id":{"description":"Payway ID","type":"integer"},"info_id":{"description":"Payway info ID","type":"integer"},"max_amount":{"description":"Payway maximum amount","type":"number"},"min_amount":{"description":"Payway minimum amount","type":"number"},"warning_id":{"description":"Payway warning ID","type":"integer"}},"type":"object"},"type":"array"},"verify_required":{"description":"If this paymethod requires account verification","type":"boolean"}},"type":"object"}},"14":{"description":"Incorrect account status"}},"summary":"Get information about input paymethods"}},"/api/mobile/v2/login":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"device_id":{"description":"Unique device identifier","type":"string"},"email":{"description":"User email","format":"email","type":"string"},"password":{"description":"User password","format":"password","type":"string"}},"required":["device_id","email","password"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"code_token":{"description":"Token that should be used later for requests that need 2FA by entering code from email","format":"uuid","type":"string"},"notification_token":{"description":"Token that should be used later for requests that need repeated 2FA notifications by entering code from email","format":"uuid","type":"string"}},"required":["code_token","notification_token"],"type":"object"}},"13":{"description":"Account with such email and password not found"},"1009":{"description":"User should confirm authentication via one of available 2FA methods before initiating login process","schema":{"properties":{"phone":{"description":"User phone number (returned only if `type` is SMS Authenticator)","type":"string"},"token":{"description":"Token that should be used for requests that need 2FA","format":"uuid","type":"string"},"type":{"description":{"Available 2FA methods":"* `1` - Google Authenticator * `2` - SMS Authenticator\n"},"enum":[1],"type":"integer"}},"required":["token","type"],"type":"object"}},"1010":{"description":"User should first confirm that he owns the entered email address","schema":{"description":"Token that should be used later for registration requests (notifications, confirmation, etc.)","format":"uuid","type":"string"}},"1032":{"description":"Registration confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before registration will become available for this account","type":"integer"}}},"summary":"\"Process user login\""}},"/api/mobile/v2/login/code/{code_guid}/notify/{notification_guid}":{"post":{"parameters":[{"in":"body","name":"body","required":false,"schema":{"type":"object"}},{"description":"`code_token` that was obtained during handling of the response to POST `/login` request","format":"uuid","in":"path","name":"code_guid","required":true,"type":"string"},{"description":"`notification_token` that was obtained during handling of the response to POST `/login` request","format":"uuid","in":"path","name":"notification_guid","required":true,"type":"string"}],"responses":{"0":{"description":"OK"}},"summary":"\"Process repeated notifications for additional 6-digit code sent earlier on email\""}},"/api/mobile/v2/login/code/{guid}":{"post":{"parameters":[{"description":"`code_token` that was obtained during handling of the response to POST `/login` request","format":"uuid","in":"path","name":"guid","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"code":{"description":"Additional 6-digit login code","type":"string"},"device_id":{"description":"Unique device identifier","type":"string"},"email":{"description":"User email","format":"email","type":"string"},"password":{"description":"User password","format":"password","type":"string"}},"required":["code","device_id","email","password"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"refresh_token":{"description":"Refresh token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"},"token":{"description":"Access token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"}},"required":["token","refresh_token"],"type":"object"}},"13":{"description":"Account with such email and password not found"},"1009":{"description":"User should confirm authentication via one of available 2FA methods before initiating login process","schema":{"properties":{"phone":{"description":"User phone number (only if `type` is SMS Authenticator)","type":"string"},"token":{"description":"Token that should be used later for requests that need 2FA","format":"uuid","type":"string"},"type":{"description":{"Available 2FA types":"* `1` - Google Authenticator * `2` - SMS Authenticator\n"},"enum":[1],"type":"integer"}},"required":["token","type"],"type":"object"}},"1010":{"description":"User should first confirm that he owns the entered email address","schema":{"description":"Token that should be used later for registration requests (notifications, confirmation, etc.)","format":"uuid","type":"string"}},"1020":{"description":"User entered invalid `code`","schema":{"description":"Number of attempts left","type":"integer"}},"1021":{"description":"All of the available attempts for this `code` have already been used"},"1032":{"description":"Registration confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before registration will become available for this account","type":"integer"}}},"summary":"\"Process user login with additional 6-digit code sent earlier on his/her email\""}},"/api/mobile/v2/login/qr_code/{guid}":{"post":{"parameters":[{"description":"QR code that was generated earlier","format":"uuid","in":"path","name":"guid","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"device_id":{"description":"Unique device identifier","type":"string"}},"required":["device_id"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"refresh_token":{"description":"Refresh token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"},"token":{"description":"Access token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"}},"required":["token","refresh_token"],"type":"object"}},"1010":{"description":"User should first confirm that he owns the entered email address","schema":{"description":"Token that should be used later for registration requests (notifications, confirmation, etc.)","format":"uuid","type":"string"}},"1032":{"description":"Registration confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before registration will become available for this account","type":"integer"}}},"summary":"\"Process user login with QR code generated earlier\""}},"/api/mobile/v2/logout":{"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"body","name":"body","required":false,"schema":{"type":"object"}}],"responses":{"0":{"description":"OK"}},"summary":"\"User logout\""}},"/api/mobile/v2/output_paymethods":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"collectionFormat":"multi","description":" Available `param`s:\n* `id`\n* `name`\n* `is_transfer_paymethod`\n* `payways`\n* `payways.id`\n* `payways.code`\n* `payways.currency`\n* `payways.min_amount`\n* `payways.max_amount`\n* `payways.percent`\n* `payways.fix`\n* `payways.min`\n* `payways.config`\n* `payways.info_id`\n","in":"query","items":{"type":"string"},"name":"param","required":true,"type":"array"}],"responses":{"0":{"description":"OK","schema":{"properties":{"id":{"description":"Paymethod ID","type":"integer"},"is_transfer_paymethod":{"description":"If this paymethod is available for transfers","type":"boolean"},"name":{"description":"Paymethod name","type":"string"},"payways":{"description":"Paymethod payways","items":{"properties":{"code":{"description":"Payway currency code","type":"integer"},"config":{"description":"Required fields for payway","type":"object"},"currency":{"description":"Payways currency alias","type":"string"},"fix":{"description":"Payway fixed fee","type":"number"},"id":{"description":"Payway ID","type":"integer"},"info_id":{"description":"Payway info ID","type":"integer"},"max_amount":{"description":"Payway maximum amount","type":"number"},"min":{"description":"Payway minimum fee","type":"number"},"min_amount":{"description":"Payway minimum amount","type":"number"},"percent":{"description":"Payway percent fee","type":"number"}},"type":"object"},"type":"array"}},"type":"object"}},"14":{"description":"Incorrect account status"}},"summary":"Get information about output paymethods"}},"/api/mobile/v2/password":{"put":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"json","name":"old_password","required":true,"type":"string"},{"in":"json","name":"new_password","required":true,"type":"string"}],"responses":{"200":{"description":"Returns `true` if the password changed, and `false` otherwise"}},"summary":"\"Change password\""}},"/api/mobile/v2/payment":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Payment amount","in":"query","name":"amount","required":true,"type":"number"},{"description":"Payment amount type ('receive'/'write_off')","in":"query","name":"amount_type","required":true,"type":"string"},{"description":"Paymethod ID (only if `paymethod_type` is 'payout')","in":"query","name":"paymethod_id","required":false,"type":"integer"},{"description":"Shop ID (only if `paymethod_type` is 'bill')","in":"query","name":"shop_id","required":false,"type":"integer"},{"description":"Shop order ID (only if `paymethod_type` is 'bill')","in":"query","name":"shop_order_id","required":false,"type":"integer"},{"description":"Payment paymethod type ('account_transfer'/'payout'/'bill')","in":"query","name":"paymethod_type","required":false,"type":"string"},{"description":"Payment source currency","in":"query","name":"source_currency","required":true,"type":"integer"},{"description":"Payment target currency","in":"query","name":"target_currency","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"receive_amount":{"description":"Payment receive amount","type":"number"},"write_off_amount":{"description":"Payment write off amount","type":"number"}},"type":"object"}},"14":{"description":"Incorrect account status"}},"summary":"Calculate payment"},"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"account":{"description":"Payment account (only if `paymethod_type` is 'payout')","type":"string"},"amount":{"description":"Payment amount","type":"number"},"amount_type":{"description":"Payment amount type ('receive'/'write_off')","type":"string"},"description":{"description":"Payment description","type":"string"},"payee_account":{"description":"Payment payee account (only if `paymethod_type` is 'account_transfer')","type":"string"},"paymethod_id":{"description":"Paymethod ID (only if `paymethod_type` is 'payout')","type":"integer"},"paymethod_type":{"description":"Payment paymethod type ('account_transfer'/'payout'/'bill')","type":"string"},"shop_id":{"description":"Shop ID (only if `paymethod_type` is 'bill')","type":"integer"},"shop_order_id":{"description":"Shop order ID (only if `paymethod_type` is 'bill')","type":"integer"},"source_currency":{"description":"Payment source currency","type":"integer"},"target_currency":{"description":"Payment target currency","type":"integer"}},"required":["amount","amount_type","source_currency"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"receive_amount":{"description":"Payment receive amount","type":"number"},"write_off_amount":{"description":"Payment write off amount","type":"number"}},"type":"object"}},"14":{"description":"Incorrect account status"}},"summary":"Create payment"}},"/api/mobile/v2/payments":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Payment ID","in":"query","name":"id","required":false,"type":"integer"},{"description":"Last payment ID from previous page (for pagination)","in":"query","name":"last_id","required":false,"type":"integer"},{"description":"Payment created datetime (from)","format":"timestamp","in":"query","name":"created_from","required":false,"type":"integer"},{"description":"Payment created datetime (to)","format":"timestamp","in":"query","name":"created_to","required":false,"type":"integer"},{"description":"Payment source currency","in":"query","name":"source_currency","required":false,"type":"integer"},{"description":"Payment target currency","in":"query","name":"target_currency","required":false,"type":"integer"},{"description":"Payment account","in":"query","name":"account","required":false,"type":"string"},{"description":"Payment paymethod ID","in":"query","name":"paymethod_id","required":false,"type":"integer"},{"description":"Payment status","in":"query","name":"status","required":false,"type":"integer"},{"description":"Pagination limit","in":"query","name":"limit","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"items":{"properties":{"account":{"description":"Payment account","type":"string"},"created":{"description":"Payment created datetime","format":"timestamp","type":"integer"},"id":{"description":"Payment ID","type":"integer"},"is_account_transfer":{"description":"If payment is a transfer from account","type":"boolean"},"paymethod_id":{"description":"Payment paymethod ID","type":"integer"},"receive_amount":{"description":"Payment receive amount","type":"number"},"receive_currency":{"description":"Payment receive currency","type":"string"},"status":{"description":"Payment status","type":"integer"},"write_off_amount":{"description":"Payment write off amount","type":"number"},"write_off_currency":{"description":"Payment write off currency","type":"string"}},"type":"object"},"type":"array"}}},"summary":"Get overall information about payments"}},"/api/mobile/v2/payway_info/{info_id}":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Payway info ID","in":"path","name":"info_id","required":true,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"text":{"description":"Payway info text","type":"string"}},"required":["text"],"type":"object"}}},"summary":"Get some information about specified payway info"}},"/api/mobile/v2/recovery/code":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"email":{"description":"User email","format":"email","type":"string"}},"required":["email"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"description":"Recovery token to be used later for recovery confirmation and repeated notifications","format":"uuid","type":"string"}},"13":{"description":"Account with such email and password not found"},"1033":{"description":"Recovery confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before recovery will become available for this account","type":"integer"}}},"summary":"\"Process account recovery\""}},"/api/mobile/v2/recovery/code/{guid}":{"post":{"parameters":[{"description":"Recovery token that was obtained after following a link from an email","format":"uuid","in":"path","name":"guid","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"code":{"description":"6-digit registration confirmation code","type":"string"},"password":{"description":"User password","format":"password","maxLength":30,"minLength":8,"pattern":"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[ -~]{8,30}","type":"string"}},"required":["code","password"],"type":"object"}}],"responses":{"0":{"description":"OK"},"1020":{"description":"User entered invalid `code`","schema":{"description":"Number of attempts left","type":"integer"}},"1021":{"description":"All of the available attempts for this `code` have already been used"}},"summary":"\"Confirm password recovery\""}},"/api/mobile/v2/recovery/code/{guid}/notify":{"post":{"parameters":[{"in":"body","name":"body","required":false,"schema":{"type":"object"}},{"description":"`recovery_token` that was obtained during handling of the response to POST `/recovery/code` request","format":"uuid","in":"path","name":"guid","required":true,"type":"string"}],"responses":{"0":{"description":"OK"}},"summary":"\"Process repeated notifications for account recovery\""}},"/api/mobile/v2/registration/code":{"post":{"parameters":[{"in":"body","name":"body","required":true,"schema":{"properties":{"agreement":{"description":"Whether user agrees to terms and conditions of using this service, should be checked to proceed with registration process","type":"boolean"},"email":{"description":"User email","format":"email","maxLength":65,"minLength":1,"type":"string"},"password":{"description":"User password","format":"password","maxLength":30,"minLength":8,"pattern":"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[ -~]{8,30}","type":"string"}},"required":["agreement","email","password"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"description":"Registration token to be used later for registration confirmation and repeated notifications","format":"uuid","type":"string"}},"1032":{"description":"Registration confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before registration will become available for this account","type":"integer"}}},"summary":"\"Process repeated notifications for user registration\""}},"/api/mobile/v2/registration/code/{guid}":{"post":{"parameters":[{"description":"Registration token that was obtained after following a link from an email","format":"uuid","in":"path","name":"guid","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"code":{"description":"6-digit registration confirmation code","type":"string"}},"required":["code"],"type":"object"}}],"responses":{"0":{"description":"OK"},"1020":{"description":"User entered invalid `code`","schema":{"description":"Number of attempts left","type":"integer"}},"1021":{"description":"All of the available attempts for this `code` have already been used"}},"summary":"\"Confirm account registration\""}},"/api/mobile/v2/registration/code/{guid}/notify":{"post":{"parameters":[{"in":"body","name":"body","required":false,"schema":{"type":"object"}},{"description":"`registration_token` that was obtained during handling of the response to POST `/registration/code` request","format":"uuid","in":"path","name":"guid","required":true,"type":"string"}],"responses":{"0":{"description":"OK"}},"summary":"\"Process repeated notifications for user registration\""}},"/api/mobile/v2/statements":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Statement class","in":"query","name":"operation_class","required":false,"type":"integer"},{"description":"Statement ID","in":"query","name":"id","required":false,"type":"integer"},{"description":"Last statement ID from previous page (for pagination)","in":"query","name":"last_id","required":false,"type":"integer"},{"description":"Statement created datetime (from)","format":"timestamp","in":"query","name":"created_from","required":false,"type":"integer"},{"description":"Statement created datetime (to)","format":"timestamp","in":"query","name":"created_to","required":false,"type":"integer"},{"description":"Statement currency","in":"query","name":"currency","required":false,"type":"integer"},{"description":"Pagination limit","in":"query","name":"limit","required":false,"type":"integer"}],"responses":{"0":{"description":"OK","schema":{"properties":{"amount":{"description":"Statement amount","type":"number"},"balance_amount":{"description":"Statement balance amount","type":"number"},"created":{"description":"Statement created datetime","format":"timestamp","type":"integer"},"currency":{"description":"Statement currency","type":"string"},"id":{"description":"Statement ID","type":"integer"},"is_deposit":{"description":"If statement is a deposit","type":"boolean"},"operation_class":{"description":"Statement class","type":"integer"},"operation_type":{"description":"Statement type","type":"integer"},"shop_operation_id":{"description":"Shop statement ID","type":"string"}},"type":"object"}}},"summary":"Get overall information about statements"}},"/api/mobile/v2/statements/csv":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Statement class","in":"query","name":"operation_class","required":false,"type":"integer"},{"description":"Statement ID","in":"query","name":"id","required":false,"type":"integer"},{"description":"Last statement ID from previous page (for pagination)","in":"query","name":"last_id","required":false,"type":"integer"},{"description":"Statement created datetime (from)","format":"timestamp","in":"query","name":"created_from","required":false,"type":"integer"},{"description":"Statement created datetime (to)","format":"timestamp","in":"query","name":"created_to","required":false,"type":"integer"},{"description":"Statement currency","in":"query","name":"currency","required":false,"type":"integer"}],"responses":{"0":{"description":"OK"}},"summary":"Get overall information about statements (csv)"}},"/api/mobile/v2/token/{guid}":{"post":{"parameters":[{"in":"body","name":"body","required":false,"schema":{"type":"object"}},{"description":"`refresh_token` that was obtained during handling of the response to login requests","format":"uuid","in":"path","name":"guid","required":true,"type":"string"}],"responses":{"0":{"description":"OK","schema":{"properties":{"token":{"description":"Access token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"}},"required":["token"],"type":"object"}}},"summary":"\"Refresh token\""}},"/api/mobile/v2/two_factor_login/{guid}":{"post":{"parameters":[{"description":"`token` that was obtained during handling of the response to POST `/login` request","format":"uuid","in":"path","name":"guid","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"device_id":{"description":"Unique device identifier","type":"string"},"email":{"description":"User email","format":"email","type":"string"},"gcode":{"description":"Google Authenticator code (required only if `type` that was obtained during handling of the response to POST `/login` request matches Google Authenticator)","type":"string"},"password":{"description":"User password","format":"password","type":"string"}},"required":["device_id","email","password"],"type":"object"}}],"responses":{"0":{"description":"OK","schema":{"properties":{"refresh_token":{"description":"Refresh token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"},"token":{"description":"Access token that should be used for subsequent requests and that uniquely identifies current user session","format":"uuid","type":"string"}},"required":["token","refresh_token"],"type":"object"}},"13":{"description":"Account with such email and password not found"},"1005":{"description":"User entered invalid `gcode`","schema":{"description":"Number of attempts left","type":"integer"}},"1010":{"description":"User should first confirm that he owns the entered email address","schema":{"description":"Token that should be used later for registration requests (notifications, confirmation, etc.)","format":"uuid","type":"string"}},"1011":{"description":"All of the available attempts for this `gcode` have already been used"},"1032":{"description":"Registration confirmation is currently unavailable for this account because there was an unsuccessful attempt not long ago","schema":{"description":"Time (in seconds) before registration will become available for this account","type":"integer"}}},"summary":"\"Process user login with 2FA via one of available methods\""}},"/api/mobile/v2/waiting_bills_count":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"0":{"description":"OK","schema":{"description":"Waiting bills count","type":"integer"}}},"summary":"Get waiting bills count"}},"/api/push_pay/favorite_shop":{"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"is_favorite":{"description":"Make shop favorite or not","type":"boolean"},"push_shop_id":{"description":"Shop id","type":"integer"}},"required":["push_shop_id","is_favorite"],"type":"object"}}],"responses":{"0":{"description":"OK"},"7":{"description":"Shop is not found"}},"summary":"Make shop favorite or not"}},"/api/push_pay/pay":{"post":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"in":"body","name":"body","required":true,"schema":{"properties":{"amount":{"description":"Payment amount","type":"float"},"balance_id":{"description":"Account balance id","type":"int"},"currency":{"description":"Payment currency","type":"int"},"external_account":{"description":"External account id","type":"str"},"push_shop_id":{"description":"Shop id","type":"integer"},"save_external_account":{"description":"Save external account","type":"boolean"}},"required":["push_shop_id","external_account","balance_id","amount","currency","save_external_account"],"type":"object"}}],"responses":{"0":{"description":"OK"},"7":{"description":"Shop is not found"}},"summary":"Make push payment"}},"/api/push_pay/shops":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Page number","in":"query","name":"page","required":true,"type":"integer"},{"description":"Items per page","in":"query","name":"on_page","required":true,"type":"integer"},{"description":"Favorite or not","in":"query","name":"favorite","required":false,"type":"boolean"}],"responses":{"0":{"description":"OK","schema":{"properties":{"data":{"description":"Push shops list","items":{"properties":{"big_image_url":{"description":"Big image url","type":"string"},"currencies":{"description":"Currencies list","items":{"description":"Currency code","type":"integer"},"type":"array"},"id":{"description":"Push shop id","type":"integer"},"is_favorite":{"description":"Is favorite or not","type":"boolean"},"name":{"description":"Push shop name","type":"string"},"priority":{"description":"Push shop priority","type":"integer"},"small_image_url":{"description":"Small image url","type":"string"}},"type":"object"},"type":"array"},"page":{"description":"Current page","type":"integer"},"pages":{"description":"Amount of pages","type":"integer"}},"type":"object"}}},"summary":"Get push shops"}},"/api/push_pay/user_external_accounts/{push_shop_id}":{"get":{"parameters":[{"description":"Bearer","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Push shop id","in":"path","name":"push_shop_id","required":true,"type":"integer"}],"responses":{"0":{"description":"OK"},"7":{"description":"Shop is not found"}},"summary":"Get all the accounts of the particular shop"}}},"swagger":"2.0"}