Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Portal


v2 POST console.bayar.cash/api/v2/portals v3 POST api.console.bayar.cash/v3/portals


Create a new portal. FPX is always enabled. The payment channels provided must already be subscribed by the merchant.

Name
Description
Type
Condition

merchant_id

The merchant (hash) ID that owns the portal

string

Required

name

Portal name. Must be unique for the merchant

string

Required

merchant_transaction_notification_email

Email address to receive transaction notifications

string

Required

payment_channels

Array of payment channel IDs to enable. Refer payment channel page

array

Required

url

Portal website URL (named website_url on v3)

string

Optional

secondary_merchant_transaction_notification_email

Secondary notification email - only available on v3

string

Optional

bank_accounts

Required when Manual Bank Transfer (2) is enabled. Array of { account_no, bank_id, payment_gateway_id }

array

Optional

enabled_sms_on_successful_transaction

Enable SMS notification on a successful transaction

boolean

Optional

fpx_landing_page_payment_button_text_label

Custom payment button text on the FPX landing page

string

Optional

split_payment_enabled

Enable split payment - only available on v3

boolean

Optional

split_payment_merchants

Array of { merchant_email, type (fix_amount/percentage), value } - only available on v3

array

Optional

cashier_id

Required when DuitNow QR (6) is enabled - only available on v3

integer

Optional

enable_incoming_transaction_webhook

Enable incoming transaction webhook - only available on v2

boolean

Optional


Example of sending POST request with cURL.

Example of JSON structured response.

Last updated