Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Update a payment link

Change a draft link. An active link can't change: duplicate it instead.

POST/v1/payment_links/{id}

Change a draft link. An active link can't change: duplicate it instead.

Endpoint

http
POST /v1/payment_links/{id}

Path parameters

NameTypeDescription
idstringThe link's ID, pl_....

Request body

NameTypeRequiredDescription
namestringOptionalAny field of a new link, changed.
line_itemsarrayOptionalThe full list of lines.

Example request

bash
curl -X POST https://api.sovgate.com/v1/payment_links/pl_test_535017777c54702cfa78467c \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 8099aa71-4b2a-4c1d-9e3f-909e29e1fae6" \  -H "Content-Type: application/json" \  -d '{  "name": "Pottery workshop: two seats",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 2    }  ]}'

Example response

json
{  "id": "pl_test_535017777c54702cfa78467c",  "object": "payment_link",  "livemode": false,  "reference": "PL-1042",  "name": "Pottery workshop: two seats",  "description": null,  "status": "draft",  "pricing": "fixed",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 2    }  ],  "amount": 8000,  "url": null,  "max_payments": null,  "max_payments_per_customer": null,  "expires_at": null,  "call_to_action": "book",  "collect_address": "none",  "collect_tax_ids": false,  "require_tax_id": false,  "allow_promotion_codes": false,  "save_payment_details": false,  "confirmation": "message",  "confirmation_message": "Thank you! Your receipt is on its way.",  "redirect_url": null,  "payments_count": 0,  "amount_collected": 0,  "amount_refunded": 0,  "created": "2026-11-27T14:00:00Z",  "archived_at": null}

Errors

CodeWhen
invalid_stateOnly a draft can be changed.