Get Payout
Retrieves the details and status of a specific payout transaction.
This endpoint retrieves the current status of a previously initiated payout transaction. It supports lookup by either the system-generated invoice_no or your own external_invoice_ref.
Use this endpoint to check whether a payout has been completed, is still processing, or has failed.
Endpoint
GET
https://api.payright.my/api/v1/merchant/payout/:referenceUsage Examples
curl -X GET "https://api.payright.my/api/v1/merchant/payout/Payright03" \
-H "auth-token: eyJhbGciO...XZI3CLi_a0BeUOJMPUK00"import http.client
import urllib.parse
# Parse the URL
url = "https://api.payright.my/api/v1/merchant/payout/Payright03"
parsed_url = urllib.parse.urlparse(url)
# Create HTTPS connection
conn = http.client.HTTPSConnection(parsed_url.hostname)
# Prepare headers
headers = {
"auth-token": "eyJhbGciO...XZI3CLi_a0BeUOJMPUK00" #Insert auth-token here
}
# Send GET request
conn.request("GET", parsed_url.path, headers=headers)
# Read response
response = conn.getresponse()
print("Status:", response.status)
print("Response body:", response.read().decode())
# Close connection
conn.close()require 'net/http'
require 'uri'
# Parse the URL
url = URI.parse("https://api.payright.my/api/v1/merchant/payout/Payright03")
# Create HTTP request
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth-token"] = "eyJhbGciO...XZI3CLi_a0BeUOJMPUK00" #Insert auth-token here
# Execute request
response = http.request(request)
# Output result
puts "Status: #{response.code}"
puts "Response body: #{response.body}"Authentication
string header required
To authenticate requests, include an Authorization header with the value
Key
Value
auth-token
<Your Payright auth token>
Request
Path Parameter
string required
Key
Value
reference
<Input either invoice_no or external_invoice_ref>
Example URLs
GET https://api.payright.my/api/v1/merchant/payout/po-6DC1:125037-pyt
GET https://api.payright.my/api/v1/merchant/payout/Payright03
Response
application/json
{
"status": "ok",
"code": 2000,
"data": {
"value": 13.0,
"external_invoice_ref": "Payright03",
"payout_invoice_no": "po-6DC1:125037-pyt",
"payout_account_number": "12345678901",
"created_at": "2025-02-26T12:50:37.852852",
"transaction_status": "SUCCESS"
},
"uuid": "408ed601-0cf9-4835-9bef-f734410741dc",
"message": null,
"error": null
}{
"status": "fail",
"code": 1234,
"data": null,
"uuid": "408ed601-0cf9-4835-9bef-f734410741dc",
"message": "Something about this doesn't seem right.",
"error": null
}Response Attributes
Last updated