curl --request PATCH \
--url https://api.cashful.africa/api/canary/payment-links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"orderId": "12345"
}
}
'{
"statusCode": 400,
"message": [
"Bad Request"
],
"error": "Bad Request"
}Update an existing payment link
curl --request PATCH \
--url https://api.cashful.africa/api/canary/payment-links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"orderId": "12345"
}
}
'{
"statusCode": 400,
"message": [
"Bad Request"
],
"error": "Bad Request"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the payment link
Payment link update details
Optional custom metadata
{ "orderId": "12345" }The name of the payment link
A description of the payment link
Whether the payment link is active
The URL to redirect to on successful payment
The URL to redirect to if customer cancels
Configuration for the hosted checkout page
Show child attributes
Payment link updated successfully