Create Payment Link
curl --request POST \
--url https://nini.monieswitch.com/payment-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountType": "FIXED",
"amount": 300,
"name": "XIAOMI REDMI DONATION",
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI",
"email": "[email protected]",
"supportCard": true,
"supportBankTransfer": true,
"webhookURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"callbackURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"bearer": "account",
"subaccountId": "bb4ef1f3-68a8-4856-9e02-c27bf1b847e3"
}
'import requests
url = "https://nini.monieswitch.com/payment-link"
payload = {
"amountType": "FIXED",
"amount": 300,
"name": "XIAOMI REDMI DONATION",
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI",
"email": "[email protected]",
"supportCard": True,
"supportBankTransfer": True,
"webhookURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"callbackURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"bearer": "account",
"subaccountId": "bb4ef1f3-68a8-4856-9e02-c27bf1b847e3"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amountType: 'FIXED',
amount: 300,
name: 'XIAOMI REDMI DONATION',
description: 'XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI',
email: '[email protected]',
supportCard: true,
supportBankTransfer: true,
webhookURL: 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
callbackURL: 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
bearer: 'account',
subaccountId: 'bb4ef1f3-68a8-4856-9e02-c27bf1b847e3'
})
};
fetch('https://nini.monieswitch.com/payment-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nini.monieswitch.com/payment-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountType' => 'FIXED',
'amount' => 300,
'name' => 'XIAOMI REDMI DONATION',
'description' => 'XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI',
'email' => '[email protected]',
'supportCard' => true,
'supportBankTransfer' => true,
'webhookURL' => 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
'callbackURL' => 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
'bearer' => 'account',
'subaccountId' => 'bb4ef1f3-68a8-4856-9e02-c27bf1b847e3'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nini.monieswitch.com/payment-link"
payload := strings.NewReader("{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nini.monieswitch.com/payment-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nini.monieswitch.com/payment-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Payment link created successfully",
"data": {
"id": "14340e69-d632-46c0-abb0-afc7d486f24e",
"link": "http://localhost:3001/65j83QBEcCVGFlVQxIOLvlxhwn2rsn",
"name": "XIAOMI REDMI DONATION",
"logo": "https://d1hhqx6q67lhms.cloudfront.net/Ck2jHba7OzcBAbvsbt9Dxj2iF_Background-Image-2x.jpg",
"email": "[email protected]",
"amount": 3700,
"bearer": "account",
"reference": "GZhxwXkeCYmSGno4Rdy6fn1ixgEhIa",
"amountType": "FIXED",
"webhookURL": null,
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue\n\nProcessor : UNI",
"createdAt": "2025-08-05T20:21:14.826Z"
}
}{
"message": "You specified an already existing link",
"status": false
}Payment Link
Create Payment Link
POST
/
payment-link
Create Payment Link
curl --request POST \
--url https://nini.monieswitch.com/payment-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountType": "FIXED",
"amount": 300,
"name": "XIAOMI REDMI DONATION",
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI",
"email": "[email protected]",
"supportCard": true,
"supportBankTransfer": true,
"webhookURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"callbackURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"bearer": "account",
"subaccountId": "bb4ef1f3-68a8-4856-9e02-c27bf1b847e3"
}
'import requests
url = "https://nini.monieswitch.com/payment-link"
payload = {
"amountType": "FIXED",
"amount": 300,
"name": "XIAOMI REDMI DONATION",
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI",
"email": "[email protected]",
"supportCard": True,
"supportBankTransfer": True,
"webhookURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"callbackURL": "https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c",
"bearer": "account",
"subaccountId": "bb4ef1f3-68a8-4856-9e02-c27bf1b847e3"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amountType: 'FIXED',
amount: 300,
name: 'XIAOMI REDMI DONATION',
description: 'XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI',
email: '[email protected]',
supportCard: true,
supportBankTransfer: true,
webhookURL: 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
callbackURL: 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
bearer: 'account',
subaccountId: 'bb4ef1f3-68a8-4856-9e02-c27bf1b847e3'
})
};
fetch('https://nini.monieswitch.com/payment-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nini.monieswitch.com/payment-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amountType' => 'FIXED',
'amount' => 300,
'name' => 'XIAOMI REDMI DONATION',
'description' => 'XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI',
'email' => '[email protected]',
'supportCard' => true,
'supportBankTransfer' => true,
'webhookURL' => 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
'callbackURL' => 'https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c',
'bearer' => 'account',
'subaccountId' => 'bb4ef1f3-68a8-4856-9e02-c27bf1b847e3'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nini.monieswitch.com/payment-link"
payload := strings.NewReader("{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nini.monieswitch.com/payment-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nini.monieswitch.com/payment-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amountType\": \"FIXED\",\n \"amount\": 300,\n \"name\": \"XIAOMI REDMI DONATION\",\n \"description\": \"XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue↵↵Processor : UNI\",\n \"email\": \"[email protected]\",\n \"supportCard\": true,\n \"supportBankTransfer\": true,\n \"webhookURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"callbackURL\": \"https://webhook.site/90c92062-f0a8-4deb-a36e-da774a702f1c\",\n \"bearer\": \"account\",\n \"subaccountId\": \"bb4ef1f3-68a8-4856-9e02-c27bf1b847e3\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Payment link created successfully",
"data": {
"id": "14340e69-d632-46c0-abb0-afc7d486f24e",
"link": "http://localhost:3001/65j83QBEcCVGFlVQxIOLvlxhwn2rsn",
"name": "XIAOMI REDMI DONATION",
"logo": "https://d1hhqx6q67lhms.cloudfront.net/Ck2jHba7OzcBAbvsbt9Dxj2iF_Background-Image-2x.jpg",
"email": "[email protected]",
"amount": 3700,
"bearer": "account",
"reference": "GZhxwXkeCYmSGno4Rdy6fn1ixgEhIa",
"amountType": "FIXED",
"webhookURL": null,
"description": "XIAOMI REDMI A5 - 6.88 3GB RAM/64GB ROM -- Ocean Blue\n\nProcessor : UNI",
"createdAt": "2025-08-05T20:21:14.826Z"
}
}{
"message": "You specified an already existing link",
"status": false
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Show child attributes
Show child attributes
⌘I