Withdraw from Payout Account

The Withdraw from Payout Account endpoint on Payiano initiates a transfer from your company balance to a selected payout account. It supports bank transfers, mobile wallets, and InstaPay, using the recipient’s saved payout details.

Specify the withdrawal amount, and optional references for tracking. Processing follows your payout schedule and the recipient method’s settlement timelines. Webhooks notify your system when a payout transaction is created for reliable, event-driven workflows.

Important: Ensure sufficient available balance before submitting a withdrawal. Requests may be subject to verification and compliance checks based on risk controls and transaction limits.
POST/payout/accounts/{account_id}/withdraw
Sandbox: https://api.payiano.dev/v1/payout/accounts/{account_id}/withdraw
Live: https://api.payiano.com/v1/payout/accounts/{account_id}/withdraw
Security
  • Authorization header with access token is required to access this endpoint: Bearer ACCESS-TOKEN
  • Your access token should be associated to this permission payout.accounts.withdraw
Webhook Events

These webhook events will be fired when this endpoint is called, the system will automatically send a notification to the designated webhook URLs.

  • payout.transaction.created
Request
Request body schema:
application/json
Path parameters:
account_id
required
Type: ulid
Length: 26

The unique ID assigned to each payout account which is generated by our system using the ULID format. Each ID is precisely 26 characters long, ensuring a unique and consistent identifier for every payout account. This ULID is automatically created by our system and is used to uniquely identify and track each payout account in our database.

Query parameters:
identify_by
Type: enum|null
Possible values:
[
"id", "reference_id" ]

This attribute specifies which identifier is being used to interact with a resource in the Payiano API. It helps the system understand how to identify resource when processing API requests. By default, the identify_by attribute is set to id, so you only need to specify it if you're using a different identifier.

includes
Type: array_of_enums|null
Possible values:
[
"account.recipient" ]

A list of additional payout account relations to return, if available. Feel free to send the relations you would like to return with every item. See Including Resources to better understand how this is working.

Request body:
amount
required
Type: object

This attribute describes the required amount to be withdrawn. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

value
required
Type: decimal
Min: 1
Max: 9999999

This attribute describes the required amount to be withdrawn. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

currency_code
required
Type: enum
Possible values:
[
"EGP" ]

The three-character ISO-4217 Currency Code that identifies the currency for the payout transaction receiver amount. Your business should be eligible to use the selected currency code.

source
required
Type: object

Provides information about the source of funds for the payout transaction, including details of the originating balance or account.

balance
Type: object

The payment balance used as the source of funds for this payout transaction. It identifies which company balance or wallet the payout was debited from.

id
required
Type: ulid
Length: 26

The unique ID assigned to each payment balance which is generated by our system using the ULID format. Each ID is precisely 26 characters long, ensuring a unique and consistent identifier for every payment balance. This ULID is automatically created by our system and is used to uniquely identify and track each payment balance in our database.

reference_id
Type: string|null
Max: 50
It's a unique identifier assigned to each payout transaction. It's primary role is to distinguish one payout transaction from another, ensuring that each payout transaction can be individually tracked and managed without any confusion. Please note that duplicate values are not allowed. Only alpha-numeric characters, dashes, and underscores are allowed: [A-Za-z0-9-_]. The reference_id value is used to Identify Resource when you consume any payout transaction endpoint with sending identify_by query parameter with value reference_id.

Including it in every payout request helps ensure idempotency and prevents accidental duplicate processing. It’s highly recommended to always include this parameter when initiating a payout.
Response
201
Response schema:
application/json
Response body:
transaction
Type: object

The payout transaction model details.

id
Type: ulid
Length: 26

The unique ID assigned to each payout transaction which is generated by our system using the ULID format. Each ID is precisely 26 characters long, ensuring a unique and consistent identifier for every payout transaction. This ULID is automatically created by our system and is used to uniquely identify and track each payout transaction in our database.

reference_id
Type: string|null
Max: 50
It's a unique identifier assigned to each payout transaction. It's primary role is to distinguish one payout transaction from another, ensuring that each payout transaction can be individually tracked and managed without any confusion. Please note that duplicate values are not allowed. Only alpha-numeric characters, dashes, and underscores are allowed: [A-Za-z0-9-_]. The reference_id value is used to Identify Resource when you consume any payout transaction endpoint with sending identify_by query parameter with value reference_id.

Including it in every payout request helps ensure idempotency and prevents accidental duplicate processing. It’s highly recommended to always include this parameter when initiating a payout.
status
Type: enum
Possible values:
[
"pending", "failed", "success" ]

This attribute indicates the current status of the payout transaction.

receiver_amount
Type: object

Contains detailed information about the amount received by the payout beneficiary. Similar to sender_amount, it breaks down the base amount, any fees, total amount, and currency code.

base_amount
Type: decimal

The payout amount before any receiving-side fees or deductions. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

fee_amount
Type: decimal

The fee amount charged on the receiving end, if applicable. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

total_amount
Type: decimal

The final amount credited to the receiver after all deductions. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

currency_code
Type: enum
Possible values:
[
"EGP" ]

The three-character ISO-4217 Currency Code that identifies the currency for the payout transaction receiver amount. Your business should be eligible to use the selected currency code.

sender_amount
Type: object

Contains detailed information about the amount sent by the company during payout. It includes the base transaction amount, applicable fees, total amount, and the currency code.

base_amount
Type: decimal

The base payout amount before any fees are applied. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

fee_amount
Type: decimal

The total fee applied to the transaction, if any. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

total_amount
Type: decimal

The total amount after fees, representing the actual payout deducted from the sender’s balance. The length includes the value, the decimal digit and the decimal value. The API accepts 2 digits like 50.53.

currency_code
Type: enum
Possible values:
[
"EGP" ]

The three-character ISO-4217 Currency Code that identifies the currency for the payout transaction sender amount. Your business should be eligible to use the selected currency code.

source_type
Type: enum
Possible values:
[
"balance" ]

This attribute indicates the source type of the payout transaction.

source_details
Type: object

Provides information about the source of funds for the payout transaction, including details of the originating balance or account.

balance
Type: object

The payment balance used as the source of funds for this payout transaction. It identifies which company balance or wallet the payout was debited from.

id
Type: ulid
Length: 26

The unique ID assigned to each balance which is generated by our system using the ULID format. Each ID is precisely 26 characters long, ensuring a unique and consistent identifier for every balance. This ULID is automatically created by our system and is used to uniquely identify and track each balance in our database.

currency_code
Type: enum
Possible values:
[
"EGP" ]

The three-character ISO-4217 Currency Code that identifies the currency for the balance. Your business should be eligible to use the selected currency code.

receiver_type
Type: enum
Possible values:
[
"recipient" ]

This attribute indicates the receiver type of the payout transaction.

receiver_details
Type: object

Contains information about the payout recipient, including the destination account and related configuration details used to process the transaction.

recipient
Type: object

Describes the recipient details associated with an existing payout transaction, including the configured payment method and destination information.

type
Type: enum
Possible values:
[
"ach", "ewallet", "instapay" ]

Specifies the payout recipient type. This determines how the destination is configured (e.g., ACH, e-wallet, or InstaPay).

details
Type: object

Describes the recipient details associated with an existing payout transaction, including the configured payment method and destination information.

ach
Type: object

This attribute defines the recipient's ACH (Automated Clearing House) bank account information used for local transfers. It is required when the payout method type is set to ach. The structure is country specific and must match the banking format of the recipient's country.

country_code
Type: string

Specify the unique two-letter country code ( e.g EG, SA or AE ) corresponding to the country where the payout recipient bank is located. This code is part of the standard international country codes set by the ISO .

bank_code
Type: string

A short code identifying the recipient's bank. This value must correspond to one of the supported bank codescodes for the selected country_code. For example, MISR for Banque Misr in Egypt or NBE for National Bank of Egypt. Bank codes are typically returned in uppercase and should be submitted as-is.

holder_name
Type: string
Min: 2
Max: 70

The full legal name of the bank account holder, exactly as registered with the bank. This name will be used for validation by banking partners and should match the account record.

number_type
Type: enum
Possible values:
[
"iban", "account_number" ]

Indicates the format of the bank account number — iban for international accounts ( e.g. Egypt, EU, KSA ) or account_number for local accounts in non-IBAN countries ( e.g. US, India ). This determines which field is required in number_details.

number_details
Type: object

Contains the bank account number details. The structure of this object changes dynamically based on the selected number_type. Only one key should exist, matching the number_type value, and each key contains the fields required for that specific account format.

iban
Type: object

Used when number_type is iban. Contains the IBAN number, a globally recognized format that includes the country code, bank identifier, and account number.

number
Type: string
Max: 34

The full IBAN number. Example: EG380019000500000000263180002

account_number
Type: object

Used when number_type is account_number. Contains the recipient's local bank account number. Common in countries where IBAN is not applicable or used as an alternative, such as Egypt, the United States, or India.

number
Type: string
Min: 4
Max: 30

The local bank account number. Example: 263180002

ewallet
Type: object

This attribute defines payout configuration for recipients using Meeza compatible e-wallets such as Vodafone Cash, Etisalat Cash, and Orange Money. Required when the payout method is set to e-wallet.

phone_number
Type: string

The phone number registered to the recipient’s e-wallet account. It must follow international format (e.g., +201000320310) and belong to a supported provider like Vodafone, Etisalat, or Orange.

holder_name
Type: string
Min: 2
Max: 70

The full name of the e-wallet account holder as registered with the e-wallet provider. This name is used to verify the recipient's identity and ensure accurate delivery of funds.

instapay
Type: object

Defines recipient details for payouts via InstaPay, using a registered mobile number or InstaPay Payment Number (IPN) linked to a bank account in Egypt.

ipn
Type: string

The InstaPay Payment Number (IPN) of the recipient. This is typically a registered mobile number or a virtual payment identifier used to receive funds through the InstaPay network in Egypt.

completed_at
Type: datetime|null

Indicates the timestamp when the payout transaction was successfully completed and finalized. This field is null until the transaction reaches a terminal state such as failed or success. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

created_at
Type: datetime

The created datetime of the payout transaction. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

updated_at
Type: datetime

The updated datetime of the payout transaction. This attribute can be formatted as an ISO 8601 string or a UNIX timestamp in milliseconds, depending on the preferred datetime format specified in the request header (e.g., 2024-08-04T14:22:01Z or 1722572118554). By default, the format is UNIX timestamp in milliseconds.

Response sample:
1
{
2
"transaction": {
3 "id": "01k9pkwxvsf3g88by9v1y1tmvd", 4 "reference_id": "8d40201d-c852-350c-ac21-1223d52e598c", 5 "status": "pending", 6
"receiver_amount": {
7 "base_amount": 70184.55, 8 "fee_amount": 0, 9 "total_amount": 70184.55, 10 "currency_code": "EGP" 11 }, 12
"sender_amount": {
13 "base_amount": 70184.55, 14 "fee_amount": 0, 15 "total_amount": 70184.55, 16 "currency_code": "EGP" 17 }, 18 "source_type": "balance", 19
"source_details": {
20
"balance": {
21 "id": "01hqh45s7826hfwdze8dp1z21f", 22 "currency_code": "EGP" 23 } 24 }, 25 "receiver_type": "recipient", 26
"receiver_details": {
27
"recipient": {
28 "type": "ach", 29
"details": {
30
"ach": {
31 "country_code": "EG", 32 "bank_code": "MISR", 33 "holder_name": "Tarek Gamal", 34 "number_type": "iban", 35
"number_details": {
36
"iban": {
37 "number": "EG380019000500000000263180002" 38 } 39 } 40 } 41 } 42 } 43 }, 44 "completed_at": null, 45 "created_at": "1762769401722", 46 "updated_at": "1762769401722" 47 } 48}