{"openapi":"3.1.0","info":{"title":"Elcsa. Pay service Service","version":"0.1.0"},"paths":{"/order/create":{"post":{"tags":["orders"],"summary":"Create Order","operationId":"create_order_order_create_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrder"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/order/{order_id}/status":{"get":{"tags":["orders"],"summary":"Order Status","operationId":"order_status_order__order_id__status_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatusResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/order/{order_id}":{"get":{"tags":["orders"],"summary":"Order Detail","operationId":"order_detail_order__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/order/webhook/itpay":{"post":{"tags":["orders"],"summary":"Itpay Webhook","operationId":"itpay_webhook_order_webhook_itpay_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/orders":{"get":{"tags":["orders"],"summary":"List Orders","operationId":"list_orders_orders_get","parameters":[{"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","minimum":0,"default":0,"title":"Offset"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/config":{"get":{"tags":["payments"],"summary":"Payment Config","operationId":"payment_config_payment_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentConfigResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/quote":{"get":{"tags":["payments"],"summary":"Payment Quote","operationId":"payment_quote_payment_quote_get","parameters":[{"name":"usdt_amount","in":"query","required":true,"schema":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Usdt Amount"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentQuoteResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/quote/rub":{"get":{"tags":["payments"],"summary":"Payment Quote From Rub","operationId":"payment_quote_from_rub_payment_quote_rub_get","parameters":[{"name":"total_rub","in":"query","required":true,"schema":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Total Rub"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentQuoteResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/orders":{"get":{"tags":["payments"],"summary":"Payment List Orders","operationId":"payment_list_orders_payment_orders_get","parameters":[{"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","minimum":0,"default":0,"title":"Offset"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdersResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/payments":{"get":{"tags":["payments"],"summary":"Payment List Payments","operationId":"payment_list_payments_payment_payments_get","parameters":[{"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","minimum":0,"default":0,"title":"Offset"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientOperationsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payment/payments/{payment_id}":{"get":{"tags":["payments"],"summary":"Payment Detail","operationId":"payment_detail_payment_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/payments":{"get":{"tags":["payments"],"summary":"List Payments","operationId":"list_payments_payments_get","parameters":[{"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","minimum":0,"default":0,"title":"Offset"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientOperationsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sbp-payout/banks":{"get":{"tags":["sbp payouts"],"summary":"Sbp Banks","operationId":"sbp_banks_sbp_payout_banks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SbpBanksResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sbp-payout/withdrawals":{"post":{"tags":["sbp payouts"],"summary":"Create Sbp Withdrawal","operationId":"create_sbp_withdrawal_sbp_payout_withdrawals_post","parameters":[{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSbpWithdrawal"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSbpWithdrawalResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/sbp-payout/withdrawals/{withdraw_id}":{"get":{"tags":["sbp payouts"],"summary":"Sbp Withdrawal Detail","operationId":"sbp_withdrawal_detail_sbp_payout_withdrawals__withdraw_id__get","parameters":[{"name":"withdraw_id","in":"path","required":true,"schema":{"type":"string","title":"Withdraw Id"}},{"name":"X-CSRF-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Csrf-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SbpWithdrawalDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ping":{"post":{"summary":"Ping","operationId":"ping_ping_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Ping Ping Post"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"ClientOperationResponse":{"properties":{"type":{"type":"string","title":"Type"},"created_at":{"type":"string","title":"Created At"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentResponse"},{"type":"null"}]},"withdrawal":{"anyOf":[{"$ref":"#/components/schemas/SbpWithdrawalOperationResponse"},{"type":"null"}]}},"type":"object","required":["type","created_at"],"title":"ClientOperationResponse"},"ClientOperationsResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"operations":{"items":{"$ref":"#/components/schemas/ClientOperationResponse"},"type":"array","title":"Operations"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["status_code","operations","limit","offset"],"title":"ClientOperationsResponse"},"CreateOrder":{"properties":{"usdt_amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Usdt Amount"},"usdt_exchange_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Usdt Exchange Rate"},"gas_fee":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Gas Fee"},"total_price":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Total Price"}},"type":"object","required":["usdt_amount","usdt_exchange_rate","gas_fee","total_price"],"title":"CreateOrder"},"CreateOrderResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"order":{"$ref":"#/components/schemas/OrderPaymentResponse"}},"type":"object","required":["status_code","order"],"title":"CreateOrderResponse"},"CreateSbpWithdrawal":{"properties":{"bank_id":{"type":"string","maxLength":32,"minLength":1,"title":"Bank Id"},"usdt_amount":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":100.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,18}|(?=[\\d.]{1,21}0*$)\\d{0,18}\\.\\d{0,2}0*$)"}],"title":"Usdt Amount"}},"type":"object","required":["bank_id","usdt_amount"],"title":"CreateSbpWithdrawal"},"CreateSbpWithdrawalResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"withdrawal":{"$ref":"#/components/schemas/SbpWithdrawalResponse"}},"type":"object","required":["status_code","withdrawal"],"title":"CreateSbpWithdrawalResponse"},"ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"},"status_code":{"type":"integer","title":"Status Code"}},"type":"object","required":["detail","status_code"],"title":"ErrorResponse"},"OrderDetailResponse":{"properties":{"order":{"$ref":"#/components/schemas/OrderPaymentResponse"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code"}},"type":"object","required":["order","status_code"],"title":"OrderDetailResponse"},"OrderPaymentResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"usdt_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Amount"},"usdt_exchange_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Exchange Rate"},"gas_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gas Fee"},"total_price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Price"},"service_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee"},"status":{"anyOf":[{"$ref":"#/components/schemas/OrderStatus"},{"type":"null"}]},"client_payment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Payment Id"},"itpay_payment_qr_url_desktop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Url Desktop"},"itpay_payment_qr_url_android":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Url Android"},"itpay_payment_qr_url_ios":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Url Ios"},"itpay_payment_qr_image_desktop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Image Desktop"},"itpay_payment_qr_image_android":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Image Android"},"itpay_payment_qr_image_ios":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Qr Image Ios"},"itpay_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Id"},"itpay_qr_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Qr Id"},"itpay_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Amount"},"itpay_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Created At"}},"type":"object","title":"OrderPaymentResponse"},"OrderStatus":{"type":"string","enum":["pending","rejected","completed","cancelled","error"],"title":"OrderStatus"},"OrderStatusResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"order_id":{"type":"string","title":"Order Id"},"order_status":{"anyOf":[{"$ref":"#/components/schemas/OrderStatus"},{"type":"null"}]},"payment_status":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"type":"null"}]},"receipt_cloudekassir_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receipt Cloudekassir Link"},"web3_transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web3 Transaction Hash"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["status_code","order_id"],"title":"OrderStatusResponse"},"OrderWithPaymentResponse":{"properties":{"order":{"$ref":"#/components/schemas/OrderPaymentResponse"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentResponse"},{"type":"null"}]}},"type":"object","required":["order"],"title":"OrderWithPaymentResponse"},"OrdersResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"orders":{"items":{"$ref":"#/components/schemas/OrderWithPaymentResponse"},"type":"array","title":"Orders"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["status_code","orders","limit","offset"],"title":"OrdersResponse"},"PaymentConfigResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"usdt_exchange_rate":{"type":"string","title":"Usdt Exchange Rate"},"gas_fee":{"type":"string","title":"Gas Fee"},"service_fee_rate":{"type":"string","title":"Service Fee Rate"},"one_usdt_service_fee":{"type":"string","title":"One Usdt Service Fee"},"one_usdt_total_price":{"type":"string","title":"One Usdt Total Price"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["status_code","usdt_exchange_rate","gas_fee","service_fee_rate","one_usdt_service_fee","one_usdt_total_price","created_at"],"title":"PaymentConfigResponse"},"PaymentDetailResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"payment":{"$ref":"#/components/schemas/PaymentResponse"}},"type":"object","required":["status_code","payment"],"title":"PaymentDetailResponse"},"PaymentQuoteResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"usdt_amount":{"type":"string","title":"Usdt Amount"},"usdt_exchange_rate":{"type":"string","title":"Usdt Exchange Rate"},"gas_fee":{"type":"string","title":"Gas Fee"},"service_fee":{"type":"string","title":"Service Fee"},"total_price":{"type":"string","title":"Total Price"},"service_fee_rate":{"type":"string","title":"Service Fee Rate"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["status_code","usdt_amount","usdt_exchange_rate","gas_fee","service_fee","total_price","service_fee_rate","created_at"],"title":"PaymentQuoteResponse"},"PaymentResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"status":{"anyOf":[{"$ref":"#/components/schemas/PaymentStatus"},{"type":"null"}]},"receipt_cloudekassir_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receipt Cloudekassir Id"},"receipt_cloudekassir_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Receipt Cloudekassir Link"},"itpay_payment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Payment Id"},"itpay_paid_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Itpay Paid Amount"},"transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Id"},"web3_transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web3 Transaction Hash"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"},"expired_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expired Date"}},"type":"object","title":"PaymentResponse"},"PaymentStatus":{"type":"string","enum":["pending","money_accepted","web3_processing","web3_hash_error","web3_balance_problem","usdt_delivered","receipt_error","completed"],"title":"PaymentStatus"},"SbpBankResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"SbpBankResponse"},"SbpBanksResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"banks":{"items":{"$ref":"#/components/schemas/SbpBankResponse"},"type":"array","title":"Banks"}},"type":"object","required":["status_code","banks"],"title":"SbpBanksResponse"},"SbpWithdrawalDetailResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"withdrawal":{"$ref":"#/components/schemas/SbpWithdrawalResponse"}},"type":"object","required":["status_code","withdrawal"],"title":"SbpWithdrawalDetailResponse"},"SbpWithdrawalOperationResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"bank_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Id"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"usdt_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Amount"},"rub_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rub Amount"},"usdt_exchange_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Exchange Rate"},"service_fee_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee Rate"},"service_fee_usdt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee Usdt"},"mozen_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mozen Order Id"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"status":{"anyOf":[{"$ref":"#/components/schemas/SbpWithdrawalStatus"},{"type":"null"}]},"provider_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Error"},"usdt_received_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Received At"},"payout_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Created At"},"payout_completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Completed At"}},"type":"object","title":"SbpWithdrawalOperationResponse"},"SbpWithdrawalResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"bank_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Id"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"usdt_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Amount"},"rub_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rub Amount"},"usdt_exchange_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Exchange Rate"},"service_fee_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee Rate"},"service_fee_usdt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Fee Usdt"},"mozen_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mozen Order Id"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"status":{"anyOf":[{"$ref":"#/components/schemas/SbpWithdrawalStatus"},{"type":"null"}]},"provider_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Error"},"usdt_received_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usdt Received At"},"payout_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Created At"},"payout_completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payout Completed At"}},"type":"object","title":"SbpWithdrawalResponse"},"SbpWithdrawalStatus":{"type":"string","enum":["created","waiting_usdt","usdt_underpaid","usdt_received","wallet_error","payout_processing","payout_completed","payout_failed","cancelled","expired"],"title":"SbpWithdrawalStatus"}}}}