Payment Links
Update
Payment Links
Update
This endpoint allows you to update the details of a specific payment link.
PATCH
/
v1
/
payment_links
/
{id}
curl --request PATCH \
--url https://api.blockradar.co/v1/payment_links/{id} \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form active=true \
--form 'name=Updated Name' \
--form redirectUrl=https://www.blockradar.co/ \
--form slug=new-01 \
--form successMessage=Hey
{
"data": {
"active": true,
"amount": "100",
"configurations": {},
"createdAt": "2024-11-09T12:07:07.574Z",
"created_channel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "929685ad-3087-4ef2-9961-34817ee107ca",
"imageUrl": null,
"inactiveMessage": null,
"metadata": {},
"name": "Payment Link",
"network": "mainnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "iZ8d39yLN2",
"successMessage": null,
"type": "payment",
"updatedAt": "2024-11-09T12:08:24.226Z"
},
"message": "Payment Link updated successfully",
"statusCode": 200
}
Authorizations
Path Parameters
Response
200 - application/json
200
curl --request PATCH \
--url https://api.blockradar.co/v1/payment_links/{id} \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form active=true \
--form 'name=Updated Name' \
--form redirectUrl=https://www.blockradar.co/ \
--form slug=new-01 \
--form successMessage=Hey
{
"data": {
"active": true,
"amount": "100",
"configurations": {},
"createdAt": "2024-11-09T12:07:07.574Z",
"created_channel": "dashboard",
"currency": "USD",
"description": "Payment link description",
"id": "929685ad-3087-4ef2-9961-34817ee107ca",
"imageUrl": null,
"inactiveMessage": null,
"metadata": {},
"name": "Payment Link",
"network": "mainnet",
"redirectUrl": "https://www.blockradar.co/",
"slug": "iZ8d39yLN2",
"successMessage": null,
"type": "payment",
"updatedAt": "2024-11-09T12:08:24.226Z"
},
"message": "Payment Link updated successfully",
"statusCode": 200
}