Skip to content

Create payout

POST api/v2/paygate/payout/wallet/
Create a payout by wallet

Request Body schema

application/json

Field Type Required Description Example
endpoint string Yes Api key "1dc4441f-38d5-42b5-a705-81958f928462"
amount integer Yes Amount in minor units 1000
currency integer Yes Number code 068
buyer object Yes Buyer at the endpoint in JSON format {"remote_id": "string", "ip": "string"}
description string No Description "string"
client_id string No Transaction id at the endpoint.
Max 255 chars
"string"
notify_url string or null No Notification URL of changed status "http://example.com"
moderated boolean or null No Is payout moderated? Default: True True
payment_method string or null Yes The method of payment being used for the transaction.
May be: bank_transfer
"bank_transfer"
name string Yes The customer's name "John Smith"
email string Yes The customer's email "user@example.com"
phone string Yes The customer's phone number in international format (E164) "+59167745950"
country string Yes The customer's country code (ISO 3166-1 alpha-2) "BO"
account_number string Yes The customer's account number.
Used for some types of withdrawals.(Wallet number, Bank account number, VPA...)
"12312312312"
bank_account_type string Yes The customer's bank account type.
May be: SAVINGS, CHECKING
"CHECKING"
bank_code string Yes The customer's bank code "0001"
bank_name string No The customer's bank name "string"
document_number string Yes The customer's official identification number assigned by a government authority "111111111"
document_type string Yes The customer's document type.
Common types include national ID, or driver's license
"CI"

Request sample

{
    "endpoint": "1dc4441f-38d5-42b5-a705-81958f928462",
    "amount": 1000,
    "currency": 068,
    "buyer": {
        "remote_id": "string",
        "ip": "string"
    },
    "description": "string",
    "client_id": "string",
    "notify_url": "http://example.com",
    "payment_method": "bank_transfer",
    "name": "John Smith",
    "email": "user@example.com",
    "phone": "+59167745950",
    "country": "BO",
    "account_number": "12312312312",
    "bank_account_type": "CHECKING",
    "bank_code": "0001",
    "bank_name": "string",
    "document_number": "111111111",
    "document_type": "CI"
}

Response sample


STATUS 201

{
    "tx": {
        "tx": "f17d7f5c-6b4a-47fd-95eb-08086e250473",
        "payout": {},
        "status": "create",
        "currency": {
          "id": 0,
          "title": "BOB",
          "char_code": "BOB",
          "num_code": 068
        },
        "amount": 1000,
        "created_at": "2000-01-01T00:00:00Z",
        "errors": {},
        "parts_tx": [],
        "additional_data": {},
        "endpoint_logo": "string"
    }
}