---
updatedAt: 2026-10-20T15:50:12.000Z
agentTools:
  projectIndex: https://vendy.readme.io/llms.txt
---

# Initiate Payout

Endpoint to initiate a payout. [Add a payout account](https://vendy.readme.io/reference/create-payouts) and use its `id` as `payoutAccountId`.

<Callout icon="📘" theme="info">
### API keys only

Payouts can only be created with API keys. Dashboard sessions get `403` with code `386`. To pay an account you haven't saved, use [Transfers](https://vendy.readme.io/reference/transfers-overview).
</Callout>

**Request:**

| Field           | Type    | Description                               |
| :-------------- | :------ | :---------------------------------------- |
| amount          | Double  | Amount to be withdrawn                    |
| walletId        | Integer | Unique identifier of wallet to be debited |
| payoutAccountId | Integer | Payout account identifier                 |

### Example request

```bash
curl --location 'https://api.myvendy.com/payout' \
--header 'Content-Type: application/json' \
--header "AccessKey: $VENDY_ACCESS_KEY" \
--header "SecretKey: $VENDY_SECRET_KEY" \
--data '{
        "amount": 100,
        "walletId": 1, 
        "payoutAccountId": 15
}'
```

**Response:**

| Field  | Type                           | Description                                        |
| :----- | :----------------------------- | :------------------------------------------------- |
| status | Boolean                        | States if request was successfully executed or not |
| code   | Integer                        | Internal code, success if 200                      |
| msg    | String                         | A description of the status of the request         |
| data   | [Payout](https://vendy.readme.io/reference/payouts-1) | Newly initiated payout details                     |

### Example response

```json
{
  "status": true,
  "code": 200,
  "msg": "Payout created",
  "data": {
    "id": 19,
    "amount": 5,
    "uid": 1,
    "businessId": 1,
    "walletId": 1,
    "bankId": 15,
    "refid": "ebb8c13f-8e59-4d63-b214-09f3225b8cf1",
    "currency": "NGN",
    "channel": "bank",
    "status": "pending",
    "updatedAt": "2022-09-27T19:28:11.421Z",
    "createdAt": "2022-09-27T19:28:11.421Z",
    "bankaccounts": {
      "id": 15,
      "uid": 1,
      "businessId": 1,
      "defaultBank": false,
      "accountnumber": "123123123",
      "maskedaccountnumber": "******903110",
      "bankname": "GTBank",
      "beneficiaryname": "Test User",
      "beneficiarycountry": "NGA",
      "type": "bank",
      "email": null,
      "createdAt": "2022-07-18T06:00:49.000Z",
      "updatedAt": "2022-07-18T06:00:49.000Z"
    },
    "wallets": {
      "id": 1,
      "ownerid": 1,
      "uid": 1,
      "businessId": 1,
      "balance": 480,
      "lockedBalance": 0,
      "meta": null,
      "pendingInflow": 40,
      "pendingWithdrawal": 80,
      "status": "active",
      "type": "balance",
      "currency": "NGN",
      "fee": 0.015,
      "createdAt": "2022-08-18T11:32:31.000Z",
      "updatedAt": "2022-09-08T09:59:11.000Z",
      "deletedAt": null
    }
  }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "vendy-live",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.myvendy.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "AccessKey": {
        "type": "apiKey",
        "in": "header",
        "name": "AccessKey",
        "description": "Merchant access key. Aliases accepted by the API: x-access-key, accesskey, access_key."
      },
      "SecretKey": {
        "type": "apiKey",
        "in": "header",
        "name": "SecretKey",
        "description": "Merchant secret key. Aliases accepted by the API: x-secret-key, secretkey, secret_key."
      }
    }
  },
  "security": [
    {
      "AccessKey": [],
      "SecretKey": []
    }
  ],
  "paths": {
    "/payout": {
      "post": {
        "summary": "Initiate Payout",
        "description": "",
        "operationId": "request-payouts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "walletId",
                  "payoutAccountId",
                  "amount"
                ],
                "properties": {
                  "amount": {
                    "type": "number",
                    "description": "Amount to be withdrawn",
                    "format": "double",
                    "default": 5
                  },
                  "walletId": {
                    "type": "integer",
                    "description": "Unique identifier of wallet to be debited",
                    "format": "int32",
                    "default": 1
                  },
                  "payoutAccountId": {
                    "type": "integer",
                    "description": "Payout account identifier",
                    "format": "int32",
                    "default": 15
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": true,\n  \"code\": 200,\n  \"msg\": \"Payout created\",\n  \"data\": {\n    \"id\": 19,\n    \"amount\": 5,\n    \"uid\": 1,\n    \"businessId\": 1,\n    \"walletId\": 1,\n    \"bankId\": 15,\n    \"refid\": \"ebb8c13f-8e59-4d63-b214-09f3225b8cf1\",\n    \"currency\": \"NGN\",\n    \"channel\": \"bank\",\n    \"status\": \"pending\",\n    \"updatedAt\": \"2022-09-27T19:28:11.421Z\",\n    \"createdAt\": \"2022-09-27T19:28:11.421Z\",\n    \"bankaccounts\": {\n      \"id\": 15,\n      \"uid\": 1,\n      \"businessId\": 1,\n      \"defaultBank\": false,\n      \"accountnumber\": \"123123123\",\n      \"maskedaccountnumber\": \"******903110\",\n      \"bankname\": \"GTBank\",\n      \"beneficiaryname\": \"Test User\",\n      \"beneficiarycountry\": \"NGA\",\n      \"type\": \"bank\",\n      \"email\": null,\n      \"createdAt\": \"2022-07-18T06:00:49.000Z\",\n      \"updatedAt\": \"2022-07-18T06:00:49.000Z\"\n    },\n    \"wallets\": {\n      \"id\": 1,\n      \"ownerid\": 1,\n      \"uid\": 1,\n      \"businessId\": 1,\n      \"balance\": 480,\n      \"lockedBalance\": 0,\n      \"meta\": null,\n      \"pendingInflow\": 40,\n      \"pendingWithdrawal\": 80,\n      \"status\": \"active\",\n      \"type\": \"balance\",\n      \"currency\": \"NGN\",\n      \"fee\": 0.015,\n      \"createdAt\": \"2022-08-18T11:32:31.000Z\",\n      \"updatedAt\": \"2022-09-08T09:59:11.000Z\",\n      \"deletedAt\": null\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "code": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "msg": {
                      "type": "string",
                      "example": "Payout created"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 19,
                          "default": 0
                        },
                        "amount": {
                          "type": "integer",
                          "example": 5,
                          "default": 0
                        },
                        "uid": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "businessId": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "walletId": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "bankId": {
                          "type": "integer",
                          "example": 15,
                          "default": 0
                        },
                        "refid": {
                          "type": "string",
                          "example": "ebb8c13f-8e59-4d63-b214-09f3225b8cf1"
                        },
                        "currency": {
                          "type": "string",
                          "example": "NGN"
                        },
                        "channel": {
                          "type": "string",
                          "example": "bank"
                        },
                        "status": {
                          "type": "string",
                          "example": "pending"
                        },
                        "updatedAt": {
                          "type": "string",
                          "example": "2022-09-27T19:28:11.421Z"
                        },
                        "createdAt": {
                          "type": "string",
                          "example": "2022-09-27T19:28:11.421Z"
                        },
                        "bankaccounts": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 15,
                              "default": 0
                            },
                            "uid": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "businessId": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "defaultBank": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "accountnumber": {
                              "type": "string",
                              "example": "123123123"
                            },
                            "maskedaccountnumber": {
                              "type": "string",
                              "example": "******903110"
                            },
                            "bankname": {
                              "type": "string",
                              "example": "GTBank"
                            },
                            "beneficiaryname": {
                              "type": "string",
                              "example": "Test User"
                            },
                            "beneficiarycountry": {
                              "type": "string",
                              "example": "NGA"
                            },
                            "type": {
                              "type": "string",
                              "example": "bank"
                            },
                            "email": {},
                            "createdAt": {
                              "type": "string",
                              "example": "2022-07-18T06:00:49.000Z"
                            },
                            "updatedAt": {
                              "type": "string",
                              "example": "2022-07-18T06:00:49.000Z"
                            }
                          }
                        },
                        "wallets": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "ownerid": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "uid": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "businessId": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "balance": {
                              "type": "integer",
                              "example": 480,
                              "default": 0
                            },
                            "lockedBalance": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "meta": {},
                            "pendingInflow": {
                              "type": "integer",
                              "example": 40,
                              "default": 0
                            },
                            "pendingWithdrawal": {
                              "type": "integer",
                              "example": 80,
                              "default": 0
                            },
                            "status": {
                              "type": "string",
                              "example": "active"
                            },
                            "type": {
                              "type": "string",
                              "example": "balance"
                            },
                            "currency": {
                              "type": "string",
                              "example": "NGN"
                            },
                            "fee": {
                              "type": "number",
                              "example": 0.015,
                              "default": 0
                            },
                            "createdAt": {
                              "type": "string",
                              "example": "2022-08-18T11:32:31.000Z"
                            },
                            "updatedAt": {
                              "type": "string",
                              "example": "2022-09-08T09:59:11.000Z"
                            },
                            "deletedAt": {}
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": false,\n  \"code\": 252,\n  \"msg\": \"Your balance is insufficient\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "code": {
                      "type": "integer",
                      "example": 252,
                      "default": 0
                    },
                    "msg": {
                      "type": "string",
                      "example": "Your balance is insufficient"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "AccessKey": [],
            "SecretKey": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```