Skip to main content
POST
Request Payout
An API endpoint used to request a payout and transfer funds to the specified recipients through a bank account or DuitNow Proxy.

Request

Headers

string
required
Your unique Merchant ID assigned by CommercePay.
string
required
Your API credentials used for authentication (typically a Bearer token).
string
required
A unique security hash used to verify the integrity of the request body. See Generate Signature for how to generate this.

Body

integer
required
An identifier that represents a CommercePay payments channel. Production Payout ChannelId: 9. Staging Payout ChannelId: 15.
string
required
An identifier that represents the payment method (Bank or DuitNow Proxy). You can obtain the providerChannelId via the Get Provider Channels API or refer to it here.
string
required
Currency code with a 3-letter ISO 4217 standard code. Maximum length: 3. Example: MYR.
int64
required
Payout amount. This field accepts only integer values. For example, 1050 represents 10.50.
string
required
Merchant reference code. Maximum length: 50.
string
Transaction description. Maximum length: 100.
string
required
Customer’s IP address captured by the merchant system. Maximum length: 50.
string
Customer’s user agent. Maximum length: 200.
string
required
A return URL provided by the merchant. The user can be redirected to the final destination page from the CommercePay receipt page after the transaction payment has been completed. Maximum length: 500.
string
A URL provided by the merchant to receive server-to-server notifications from the system regarding transaction status updates. This URL is called automatically once the payment process is completed or when the transaction status changes. Maximum length: 500.
object
required
boolean
required
If the customer is Malaysian, set this to true; otherwise, set it to false.
int64
required
Current timestamp. Example: 1621851652617.

Request Payload Sample

Payout_With_Bank
Payout_With_DuitNow_Proxy

Response

Body

string
Payout currency. Maximum length: 3.
integer
Payout amount. For example, 1050 represents 10.50.
string
Unique CommercePay Transaction Number. Maximum length: 24.
integer
An identifier that represents a CommercePay payments channel.
integer
Represents the redirectUrl type. This field returns 1 (URL redirection).
string
URL used for the customer to redirect to the payment page.

Response Payload Sample

Response_2XX

Error Responses

Response_400
Response_400