Create Bill

This will create a bill and return a link to our Payright Payment page.

HTTP Method: POST

https://api.payright.my/api/v1/merchant/bills

Request Body

{
  "collection_uuid": "PyCBA0E2A19BRgt",
  "amount": 240,
  "invoice_ref": "DPL1124519LX",
  "provider_id": 22,
  "redirect_url": "https://www.payright.my/ms",
  "callback_url": "https://webhook.site/36d8f28e-972c-4777-b574-bbd9d96e4949",
  "full_name": "Khairul Mukmin",
  "email": "[email protected]",
  "phone_number": "0112459822"
}

Attributes

Property
Type
Description

collection_uuid*

String

Your collection UUID

amount*

Decimal (10,2)

Total amount to be paid in MYR

provider_id*

Integer

Selected payment provider Id provided in this API

callback_url*

String

Your callback URL

redirect_url*

String

Your redirect URL

full_name*

String

Name of the payer

email*

String

Email of the payer

phone_number*

String

Mobile number of the payer

Response

{
  "status": "ok",
  "code": 200,
  "data": {
    "invoice_no": "Py4a220e2edcrgt",
    "invoice_ref": "DPL1124519LX",
    "payment_url": "https://switch.payright-sandbox.my/psapi/api/v1/env/mobile/client/simulator/PaymentPageSimulator?invoice_no=FPX1734522325oTfQjC8l"
  },
  "uuid": "716a3267-9fb0-42ab-bb0d-0cfe159c46fb"
}

Last updated