Payment Links
Update
API Documentation
Wallet Management
Address Operations
- GETGet Addresses
- POSTGenerate Address
- GETGet Address
- PATCHUpdate Address
- POSTWhitelist address
- DELUnwhitelist address
- GETGet Balance
- GETGet Balances
- GETGet transactions
- POSTWithdraw Network Fee
- POSTWithdraw
- POSTGet Swap Quote
- POSTSwap Execute
- POSTCustom Smart Contract Network Fee
- POSTCustom Smart Contract Read
- POSTCustom Smart Contract Write
Withdrawals
Custom Smart Contracts
Asset Management
Transactions
AML(Anti Money Laundering)
Auto Settlements
Asset Recovery
Payment Links
Miscellaneous
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
Example:
"Payment_link_id"
Body
multipart/form-data
Response
200 - application/json
200
The response is of type object
.
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
}