Skip to main content

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

KeyValueDescriptionOptional
amountNumeric valueThis field described the amount which needs to be collected on behalf of the merchantN
currencyISO 4217 standard currency Code. (USD, SAR)Currency against which the payment should be acceptedN
customer_emailCustomer email to which payment link needs to be sentIf not passed, it will just generate the link and email wont be sent to the customerY
remarksString valueRemarks for which the payment link is generatedY
reference_idString valueReference Id for which the payment link is generatedY
entity_idString valueEntity Id for which the payment link is generatedY
depositor_idString valueDepositor Id of the whitelisted depositorY

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

KeyValueDescription
payment_linkURLThis 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"
}
}