{"openapi":"3.1.0","info":{"title":"Easy2PayMe API","description":"Merchant-facing API for Easy2PayMe. Interactive documentation is available at /docs and the developer portal at /developer.","contact":{"name":"Easy2PayMe API Support","url":"https://easy2payme.com/"},"license":{"name":"Easy2PayMe API Terms"},"version":"1.0"},"paths":{"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/health":{"get":{"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/login":{"post":{"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"summary":"Me","operationId":"me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/deposit/create":{"post":{"summary":"Deposit","operationId":"deposit_api_deposit_create_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deposit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deposit/create":{"post":{"summary":"Deposit","operationId":"deposit_api_v1_deposit_create_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deposit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deposit/status":{"post":{"summary":"Deposit Status","operationId":"deposit_status_api_deposit_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/deposit/status":{"post":{"summary":"Deposit Status","operationId":"deposit_status_api_v1_deposit_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/balance/check":{"post":{"summary":"Balance","operationId":"balance_api_balance_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/balance/check":{"post":{"summary":"Balance","operationId":"balance_api_v1_balance_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/withdrawal/create":{"post":{"summary":"Withdrawal","operationId":"withdrawal_api_withdrawal_create_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/withdrawal/create":{"post":{"summary":"Withdrawal","operationId":"withdrawal_api_v1_withdrawal_create_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/withdrawal/status":{"post":{"summary":"Withdrawal Status","operationId":"withdrawal_status_api_withdrawal_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/withdrawal/status":{"post":{"summary":"Withdrawal Status","operationId":"withdrawal_status_api_v1_withdrawal_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhook/test":{"post":{"summary":"Webhook Test","operationId":"webhook_test_api_webhook_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/webhook/test":{"post":{"summary":"Webhook Test","operationId":"webhook_test_api_v1_webhook_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/admin/agents":{"get":{"summary":"List Agents","operationId":"list_agents_api_v1_admin_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Agent","operationId":"create_agent_api_v1_admin_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/agents/{agent_id}/merchants":{"post":{"summary":"Assign Agent To Merchant","operationId":"assign_agent_to_merchant_api_v1_admin_agents__agent_id__merchants_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMerchantAssign"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/agents/{agent_id}/permissions":{"put":{"summary":"Update Agent Permissions","operationId":"update_agent_permissions_api_v1_admin_agents__agent_id__permissions_put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPermissionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/agents/{agent_id}/merchants/{merchant_id}":{"delete":{"summary":"Revoke Agent From Merchant","operationId":"revoke_agent_from_merchant_api_v1_admin_agents__agent_id__merchants__merchant_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"merchant_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/merchants":{"get":{"summary":"Merchants","operationId":"merchants_api_v1_admin_merchants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Merchant","operationId":"create_merchant_api_v1_admin_merchants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/{token}":{"get":{"summary":"Checkout","operationId":"checkout_checkout__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/checkout/{token}/proof":{"post":{"summary":"Proof","operationId":"proof_checkout__token__proof_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_proof_checkout__token__proof_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/transactions/{txid}/paid":{"post":{"summary":"Mark Paid","operationId":"mark_paid_admin_transactions__txid__paid_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_mark_paid_admin_transactions__txid__paid_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/transactions/{txid}/proof-override":{"post":{"summary":"Admin Proof Override","operationId":"admin_proof_override_admin_transactions__txid__proof_override_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_proof_override_admin_transactions__txid__proof_override_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/transactions/{txid}/decline":{"post":{"summary":"Mark Declined","operationId":"mark_declined_admin_transactions__txid__decline_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_mark_declined_admin_transactions__txid__decline_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/create":{"post":{"summary":"Admin Create Agent Ui","operationId":"admin_create_agent_ui_admin_agents_create_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_create_agent_ui_admin_agents_create_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/{agent_id}/assign-merchant":{"post":{"summary":"Admin Assign Agent Merchant Ui","operationId":"admin_assign_agent_merchant_ui_admin_agents__agent_id__assign_merchant_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_assign_agent_merchant_ui_admin_agents__agent_id__assign_merchant_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/{agent_id}/merchant/{merchant_id}/permissions":{"post":{"summary":"Admin Save Agent Permissions Ui","operationId":"admin_save_agent_permissions_ui_admin_agents__agent_id__merchant__merchant_id__permissions_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"merchant_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/{agent_id}/merchant/{merchant_id}/revoke":{"post":{"summary":"Admin Revoke Agent Merchant Ui","operationId":"admin_revoke_agent_merchant_ui_admin_agents__agent_id__merchant__merchant_id__revoke_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}},{"name":"merchant_id","in":"path","required":true,"schema":{"type":"integer","title":"Merchant Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_revoke_agent_merchant_ui_admin_agents__agent_id__merchant__merchant_id__revoke_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/{agent_id}/toggle-status":{"post":{"summary":"Admin Toggle Agent Status Ui","operationId":"admin_toggle_agent_status_ui_admin_agents__agent_id__toggle_status_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_admin_toggle_agent_status_ui_admin_agents__agent_id__toggle_status_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin","operationId":"admin_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/agent/withdrawals":{"get":{"summary":"Agent Withdrawals","operationId":"agent_withdrawals_agent_withdrawals_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/agent/withdrawals/{txid}/paid":{"post":{"summary":"Agent Withdrawal Paid","operationId":"agent_withdrawal_paid_agent_withdrawals__txid__paid_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_agent_withdrawal_paid_agent_withdrawals__txid__paid_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/withdrawals/{txid}/decline":{"post":{"summary":"Agent Withdrawal Decline","operationId":"agent_withdrawal_decline_agent_withdrawals__txid__decline_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_agent_withdrawal_decline_agent_withdrawals__txid__decline_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/transactions":{"get":{"summary":"Agent Transactions","operationId":"agent_transactions_agent_transactions_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/agent/transactions/{txid}/proof":{"get":{"summary":"Agent Transaction Proof","operationId":"agent_transaction_proof_agent_transactions__txid__proof_get","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/transactions/{txid}/confirm":{"post":{"summary":"Agent Confirm Deposit","operationId":"agent_confirm_deposit_agent_transactions__txid__confirm_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_agent_confirm_deposit_agent_transactions__txid__confirm_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/transactions/{txid}/decline":{"post":{"summary":"Agent Decline Deposit","operationId":"agent_decline_deposit_agent_transactions__txid__decline_post","parameters":[{"name":"txid","in":"path","required":true,"schema":{"type":"string","title":"Txid"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_agent_decline_deposit_agent_transactions__txid__decline_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent":{"get":{"summary":"Agent Dashboard","operationId":"agent_dashboard_agent_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/agent/login":{"get":{"summary":"Agent Login Page","operationId":"agent_login_page_agent_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Agent Login Submit","operationId":"agent_login_submit_agent_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_agent_login_submit_agent_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"AgentCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["name","email"],"title":"AgentCreate"},"AgentMerchantAssign":{"properties":{"merchant_id":{"type":"integer","title":"Merchant Id"}},"type":"object","required":["merchant_id"],"title":"AgentMerchantAssign"},"AgentPermissionUpdate":{"properties":{"merchant_id":{"type":"integer","title":"Merchant Id"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["merchant_id","permissions"],"title":"AgentPermissionUpdate"},"Balance":{"properties":{"midcode":{"type":"string","title":"Midcode"},"client_email":{"type":"string","title":"Client Email"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["midcode","client_email","hash"],"title":"Balance"},"Body_admin_assign_agent_merchant_ui_admin_agents__agent_id__assign_merchant_post":{"properties":{"merchant_id":{"type":"integer","title":"Merchant Id"},"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["merchant_id","csrf_token"],"title":"Body_admin_assign_agent_merchant_ui_admin_agents__agent_id__assign_merchant_post"},"Body_admin_create_agent_ui_admin_agents_create_post":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["name","email","csrf_token"],"title":"Body_admin_create_agent_ui_admin_agents_create_post"},"Body_admin_proof_override_admin_transactions__txid__proof_override_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"},"reason":{"type":"string","maxLength":1000,"title":"Reason"}},"type":"object","required":["csrf_token","reason"],"title":"Body_admin_proof_override_admin_transactions__txid__proof_override_post"},"Body_admin_revoke_agent_merchant_ui_admin_agents__agent_id__merchant__merchant_id__revoke_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_admin_revoke_agent_merchant_ui_admin_agents__agent_id__merchant__merchant_id__revoke_post"},"Body_admin_toggle_agent_status_ui_admin_agents__agent_id__toggle_status_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_admin_toggle_agent_status_ui_admin_agents__agent_id__toggle_status_post"},"Body_agent_confirm_deposit_agent_transactions__txid__confirm_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_agent_confirm_deposit_agent_transactions__txid__confirm_post"},"Body_agent_decline_deposit_agent_transactions__txid__decline_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_agent_decline_deposit_agent_transactions__txid__decline_post"},"Body_agent_login_submit_agent_login_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"Body_agent_login_submit_agent_login_post"},"Body_agent_withdrawal_decline_agent_withdrawals__txid__decline_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_agent_withdrawal_decline_agent_withdrawals__txid__decline_post"},"Body_agent_withdrawal_paid_agent_withdrawals__txid__paid_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_agent_withdrawal_paid_agent_withdrawals__txid__paid_post"},"Body_mark_declined_admin_transactions__txid__decline_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_mark_declined_admin_transactions__txid__decline_post"},"Body_mark_paid_admin_transactions__txid__paid_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"}},"type":"object","required":["csrf_token"],"title":"Body_mark_paid_admin_transactions__txid__paid_post"},"Body_proof_checkout__token__proof_post":{"properties":{"proof":{"type":"string","format":"binary","title":"Proof"}},"type":"object","required":["proof"],"title":"Body_proof_checkout__token__proof_post"},"Deposit":{"properties":{"midcode":{"type":"string","title":"Midcode"},"merchant_ref_no":{"type":"string","maxLength":255,"minLength":1,"title":"Merchant Ref No"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency":{"type":"string","maxLength":10,"minLength":3,"title":"Currency"},"payment_type":{"type":"string","title":"Payment Type","default":"InstaPay"},"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"client_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Phone"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Url"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["midcode","merchant_ref_no","amount","currency","hash"],"title":"Deposit"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Login":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"Login"},"MerchantCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"midcode":{"type":"string","maxLength":100,"minLength":3,"title":"Midcode"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["name","email","midcode"],"title":"MerchantCreate"},"Status":{"properties":{"midcode":{"type":"string","title":"Midcode"},"transaction_id":{"type":"string","title":"Transaction Id"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["midcode","transaction_id","hash"],"title":"Status"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Withdrawal":{"properties":{"midcode":{"type":"string","title":"Midcode"},"merchant_ref_no":{"type":"string","maxLength":255,"minLength":1,"title":"Merchant Ref No"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency":{"type":"string","title":"Currency"},"country":{"type":"string","title":"Country"},"payment_type":{"type":"string","title":"Payment Type","default":"InstaPay"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Holder Name"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"account_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Number"},"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"bank_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Code"},"swift_bic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Swift Bic"},"routing_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Number"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"bank_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Address"},"beneficiary_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Beneficiary Address"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["midcode","merchant_ref_no","amount","currency","country","hash"],"title":"Withdrawal"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}