PATCH
/v1/payment-links/:idUpdate payment link
Updates title, amount, expiry, or active status of a payment link.
Authentication
Secret Key — send Authorization: Bearer YOUR_KEY header.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | No | New title |
amount | string | No | New amount |
expires_at | string | No | New expiry |
active | boolean | No | Enable or pause link |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Updated link ID |
Code examples
bash
curl -X PATCH https://api.watenga.africa/v1/payment-links/plink_01HQ \
-H "Authorization: Bearer sk_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Updated"
}'Response example
json
{ "success": true, "data": { "id": "plink_01HQ" } }