Create a payment
Creates a payment object.
After the payment is created, the payer will have to click on 'Proceed' to select the payment method, fill in their payment details and confirm to complete the payment transaction.
Parameters
reference_id required
The agency’s reference id in their preferred format. Invoice number is commonly used. It should not exceed a maximum of 255 characters.
payer_name required
Name of citizen or company making the payment. It should not exceed a maximum of 255 characters.
payer_address optional
Address of citizen or company making the payment. It should not exceed a maximum of 255 characters.
payer_identifier optional
Tax identifier of payer. e.g. NRIC, UEN. It should not exceed a maximum of 10 characters.
payer_email optional
Email address that should receive the payment link and invoice. It should not exceed a maximum of 255 characters.
description required
Description of what the payment is for. This will be shown to the payer in the payment link. It should not exceed a maximum of 500 characters.
amount_in_cents required
The total amount that the citizen or company should pay. It should not exceed a maximum of 99999999, which is equivalent to $999999.99.
due_date optional
Expected due date for the payment. This will be displayed in emails and reminders sent to the payer. It should be in the format dd-MMM-yyyy
. e.g. 31-DEC-2023.
metadata optional
Additional metadata related to this payment. Metadata only supports up to 10 entries. Keys must be at most 40 characters long. Values must be at most 255 characters long.
Example:
line_items optional
Line item breakdown of the payment. Unlimited entries are supported. The description key must not exceed 255 characters. The total amount for all line items should not exceed 20000000 cents.
Example:
Returns
Returns a payment
object.
The payment
object will be the payment to be created.
POST /v1/payment-services/:payment_service_id/payments
RESPONSE
Last updated