curl --request POST \
--url https://nini.monieswitch.com/payment-link \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 2500,
"name": "Tester one",
"channel": "API",
"description": "Payment for goods",
"email": " [email protected]",
"supportCard": false,
"requiresName": false,
"requiresPhone": false,
"supportBankTransfer": false,
"webhookURL": "",
"callbackURL": ""
}'
{
"data": {
"data": {
"amount": 200,
"id": "226ad356-d898-4ff0-be1c-8a341a1eaa3d",
"link": "https://checkout.nini.monieswitch.com/2c9bmvBdxGbkBjhIwOcZCmumZNWeBcBXvvhM",
"name": "Tester two",
"reference": "t8DlKVbHMqkvIVtiOhG089oyJMlXXoGzx5AO",
"status": "ACTIVE"
}
},
"status": true
}
Create Payment Link
curl --request POST \
--url https://nini.monieswitch.com/payment-link \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 2500,
"name": "Tester one",
"channel": "API",
"description": "Payment for goods",
"email": " [email protected]",
"supportCard": false,
"requiresName": false,
"requiresPhone": false,
"supportBankTransfer": false,
"webhookURL": "",
"callbackURL": ""
}'
{
"data": {
"data": {
"amount": 200,
"id": "226ad356-d898-4ff0-be1c-8a341a1eaa3d",
"link": "https://checkout.nini.monieswitch.com/2c9bmvBdxGbkBjhIwOcZCmumZNWeBcBXvvhM",
"name": "Tester two",
"reference": "t8DlKVbHMqkvIVtiOhG089oyJMlXXoGzx5AO",
"status": "ACTIVE"
}
},
"status": true
}
Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'
Create Payment Link
The response is of type object
.