Create a hosted payment page URL. The Payment link system is used to generate a URL that opens a Moolre Web POS page for collecting payments.
POST https://api.moolre.com/embed/link
To test in sandbox, use https://sandbox.moolre.com/embed/link instead.
| Header Name | Type | Required | Description |
|---|---|---|---|
X-API-USER | string | Yes | Your Moolre username. |
X-API-PUBKEY | string | Yes | Your Public API Key. (Not required in Sandbox) |
| Parameter | Type | Required | Description |
|---|---|---|---|
type | integer | Yes | Must be 1. |
amount | string | Yes | Amount to be paid. |
email | string | Yes | Email of the business. |
externalref | string | Yes | Unique ID to identify the payment. |
callback | string | Yes | Callback URL for payment notifications. |
redirect | string | Yes | Redirect URL after successful payment. |
reusable | string | Yes | Determines if the link can be used for repeat payments. 0=No, 1=Yes. |
currency | string | Yes | Currency of your account/wallet. |
accountnumber | string | Yes | Your Moolre Account Number. |
metadata | object | No | Optional metadata to be returned in callbacks. |
Link generated successfully.
{
"status": 1,
"code": "POS09",
"message": "POS payment link successfully generated.",
"data": {
"authorization_url": "https://pos.moolre.com/RZWs1yB6amGjNoiEQvlHPS5uqgp3Jc",
"reference": "uuid-1234as2"
}
}
Transaction already exists with this reference.
{
"status": 0,
"code": "INP02",
"message": "Transaction already exits!",
"data": []
}