Create payment links
You can programatically create easy to understand payment links which can be shared with the users to accept fiat payments. These payment links will be valid for 24 hours once the link is opened.
Endpoint : POST https://api.zamplabs.com/v1/custom-payment-link
Request Body
Key | Value | Description | Optional |
---|---|---|---|
amount | Numeric value | This field described the amount which needs to be collected on behalf of the merchant | N |
currency | ISO 4217 standard currency Code. (USD, SAR) | Currency against which the payment should be accepted | N |
customer_email | Customer email to which payment link needs to be sent | If not passed, it will just generate the link and email wont be sent to the customer | Y |
remarks | String value | Remarks for which the payment link is generated | Y |
reference_id | String value | Reference Id for which the payment link is generated | Y |
entity_id | String value | Entity Id for which the payment link is generated | Y |
depositor_id | String value | Depositor Id of the whitelisted depositor | Y |
Request JSON Representation
{
"amount": 10,
"currency": "USD",
"email": "[email protected]",
"remarks": "test payment",
"reference_id": "123456",
"entity_id": "test_123"
"depositor_id": "test_456"
}
Response Body
Key | Value | Description |
---|---|---|
payment_link | URL | This link can be used to make payments to the merchant |
Response JSON Representation
{
"data": {
"payment_link": "https://merchant.zamplabs.com/payment/?code=pdtst-martin-8845"
}
}