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"
}'import http.client
import json
import urllib.parse
# Parse the URL
url = "https://api.payright.my/api/v1/merchant/payout"
parsed_url = urllib.parse.urlparse(url)
# Create HTTPS connection
conn = http.client.HTTPSConnection(parsed_url.hostname)
# Prepare headers
headers = {
"auth-token": "eyJhbGciO...XZI3CLi_a0BeUOJMPUK00",
"Content-Type": "application/json"
}
# Define the payload to send in the POST body
payload = {
"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-00123"
}
# Convert the Python dictionary to a JSON string
json_payload = json.dumps(payload)
# Send POST request
conn.request("POST", parsed_url.path, body=json_payload, headers=headers)
# Read response
response = conn.getresponse()
print("Status:", response.status)
print("Response:", response.read().decode())
# Close connection
conn.close()Authentication
string header required
To authenticate requests, include an Authorization header with the value
Key
Value
auth-token
<Your Payright auth token>
Request
Body
application/json
Request Attributes
Response
application/json
Response Attributes
Last updated