Create Payout

Create a payout request to selected beneficiary account.

This endpoint initiates a fund transfer from your virtual pool to a recipient’s bank account using a registered payout provider. Once created, the payout will enter a pending or processing state depending on bank handling times.

Use this endpoint after retrieving available payout providers via Payout Provider.

Endpoint

POST

Usage Examples

curl -X POST "https://api.payright.my/api/v1/merchant/payout" \
  -H "auth-token: eyJhbGciO...XZI3CLi_a0BeUOJMPUK00" \
  -H "Content-Type: application/json" \
  -d '{
    "virtual_pool_reference": "VA-ABC-1234-PAYOUT",
    "payout_service_id": 14,
    "amount": 10.20,
    "client_redirect_url": "https://www.example.com/redirect",
    "client_callback_url": "https://www.example.com/callback",
    "third_party_account_no": "12345678901",
    "recipient_reference": "john_doe",
    "payment_description": "June Payout",
    "external_invoice_ref": "INV-0123"
  }'

Authentication

string header required

To authenticate requests, include an Authorization header with the value

Key
Value

auth-token

<Your Payright auth token>

You can retrieve your token by visiting your Payright dashboard and clicking Accounts > API Keys > View API Keys (magnify icon) > Auth Token

Request

Body

application/json

Request Attributes

virtual_pool_reference string required

Reference to the sender’s virtual pool used for the payout.

payout_service_id integerrequired

ID of the payout service (retrieved from Payout Provider).

amount decimal(10,2)required

Total amount to be paid in MYR.

client_redirect_url string required

URL to redirect the user to after payment action is completed.

client_callback_url string required

Webhook callback URL for receiving async status updates.

third_party_account_no string required

Recipient’s bank account number.

recipient_reference string required

Reference or name of the recipient.

payment_description string required

Description of the payment purpose.

external_invoice_ref string required

External reference number you assign the client for tracking the payout.

Response

application/json

Response Attributes

status string

Response status indicator (e.g., "ok" or "fail").

code number

HTTP-like status code representing result (200 = success).

data object | null
Field
Type
Description

status

string

Payout transaction result, e.g., SUCCESS, FAILED, or PENDING.

invoice_no

string

Unique internal invoice number for this payout transaction.

uuid string | null

Unique request identifier useful for debugging or tracing logs.

message string | null

Optional human-readable message (e.g., for error or info).

error string | null

Optional error description if something went wrong.

Last updated