PATCH/v1/payment-links/:id

Update payment link

Updates title, amount, expiry, or active status of a payment link.

Authentication

Secret Key — send Authorization: Bearer YOUR_KEY header.

Request parameters

ParameterTypeRequiredDescription
titlestringNoNew title
amountstringNoNew amount
expires_atstringNoNew expiry
activebooleanNoEnable or pause link

Response fields

FieldTypeDescription
idstringUpdated 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" } }