This endpoint allows you to create a payment link with the specified details.
curl --request POST \
--url https://api.blockradar.co/v1/payment_links \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form amount=100 \
--form 'description=Test Payment link description' \
--form inactiveMessage= \
--form metadata= \
--form 'name=Payment link name' \
--form paymentLimit= \
--form redirectUrl= \
--form slug=payment-link \
--form successMessage=
{
"data": {
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-04-30T14:00:48.522Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "7dfa86ff-fd3a-45e1-8ecf-dc8a06ef65cd",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "payment-link-10012",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-04-30T14:00:48.522Z",
"url": "https://pay.blockradar.co/payment-link-10012"
},
"message": "Payment Link created successfully",
"statusCode": 200
}
200
The response is of type object
.
curl --request POST \
--url https://api.blockradar.co/v1/payment_links \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form amount=100 \
--form 'description=Test Payment link description' \
--form inactiveMessage= \
--form metadata= \
--form 'name=Payment link name' \
--form paymentLimit= \
--form redirectUrl= \
--form slug=payment-link \
--form successMessage=
{
"data": {
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-04-30T14:00:48.522Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "7dfa86ff-fd3a-45e1-8ecf-dc8a06ef65cd",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "payment-link-10012",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-04-30T14:00:48.522Z",
"url": "https://pay.blockradar.co/payment-link-10012"
},
"message": "Payment Link created successfully",
"statusCode": 200
}
This endpoint allows you to create a payment link with the specified details.
curl --request POST \
--url https://api.blockradar.co/v1/payment_links \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form amount=100 \
--form 'description=Test Payment link description' \
--form inactiveMessage= \
--form metadata= \
--form 'name=Payment link name' \
--form paymentLimit= \
--form redirectUrl= \
--form slug=payment-link \
--form successMessage=
{
"data": {
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-04-30T14:00:48.522Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "7dfa86ff-fd3a-45e1-8ecf-dc8a06ef65cd",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "payment-link-10012",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-04-30T14:00:48.522Z",
"url": "https://pay.blockradar.co/payment-link-10012"
},
"message": "Payment Link created successfully",
"statusCode": 200
}
200
The response is of type object
.
curl --request POST \
--url https://api.blockradar.co/v1/payment_links \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form amount=100 \
--form 'description=Test Payment link description' \
--form inactiveMessage= \
--form metadata= \
--form 'name=Payment link name' \
--form paymentLimit= \
--form redirectUrl= \
--form slug=payment-link \
--form successMessage=
{
"data": {
"active": true,
"amount": null,
"configurations": {},
"createdAt": "2025-04-30T14:00:48.522Z",
"createdChannel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "7dfa86ff-fd3a-45e1-8ecf-dc8a06ef65cd",
"imageUrl": null,
"inactiveMessage": null,
"metadata": null,
"name": "Payment Link",
"network": "testnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "payment-link-10012",
"successMessage": null,
"type": "payment",
"updatedAt": "2025-04-30T14:00:48.522Z",
"url": "https://pay.blockradar.co/payment-link-10012"
},
"message": "Payment Link created successfully",
"statusCode": 200
}