POST
/
v1
/
payment-requests

Headers

X-BUSINESS-API-KEY
string
required

Body

application/json
amount
number
required

It's required field. Amount related to the payment. Example: 2500

currency
string
required

It's required field. Currency related to the payment. Example: SGD

payment_methods
string[]

Payment method type (paynow_online , card, wechat, alipay, grabpay_direct, grabpay_paylater, shopee_pay, zip, fpx). If we don't passe, use the available methods

email
string

Buyer’s email

name
string

Buyer’s name

phone
string

Buyer’s phone number

purpose
string

Purpose of the Payment request.

reference_number
string

Arbitrary reference number that you can map to your internal reference number. This value cannot be edited by the customer

redirect_url
string

URL where we redirect the user after a payment. Query arguments reference (payment request id) and status are sent along

webhook
string

URL where our server do POST request after a payment If done

allow_repeated_payments
string
default: false

If set to true, multiple payments can be paid on a payment request link. Default value is false

expiry_date
string

Time after which the payment link will be expired(time in SG with YYYY-MM-DD HH:mm:ss format). Applicable for repeated payments. Default is Null

expires_after
string

E.g "30 mins" Other supported keys are "mins", "hours", "days"

send_email
enum<string>
default: false

It's "true" or "false". If set to true, an email receipt will be sent to the customer after the payment is completed. Default is false

Available options:
true,
false
send_sms
enum<string>
default: true

It's "true" or "false". If set to "true", SMS will be sent to the customer after the payment is completed. Default is false

Available options:
true,
false
address
object
generate_qr
boolean
default: false

Only valid for paynow_online, qrph_netbank, doku_qris and shopee_pay if generate_qr was true

Response

200 - application/json
id
string
name
string
email
string
phone
string
amount
string
currency
string
status
string
purpose
string
reference_number
string
payment_methods
string[]
url
string
redirect_url
string
webhook
string
send_sms
boolean
default: true
send_email
boolean
default: true
sms_status
string
email_status
string
allow_repeated_payments
boolean
default: true
expiry_date
string
created_at
string
updated_at
string