Skip to content

Search API reference

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

The payment link object

One address that anyone can pay, for products from your catalog or an amount the customer chooses.

A payment link is one address you share anywhere. Whoever opens it pays on Sovgate's checkout page. A link is created as a draft, and only a draft can be changed; activating it gives it its address.

Attributes

NameTypeDescription
idstringUnique identifier, starting pl_live_ or pl_test_.
objectstringAlways payment_link.
livemodebooleantrue in live mode.
referencestringIts short reference, shown in the Dashboard.
namestringWhat customers see on the payment page.
descriptionstring or nullShown under the name.
statusenumdraft, active, inactive (deactivated) or archived.
pricingenumfixed: customers pay for the products. customer_chooses: customers choose what to pay.
currencystringusd.
line_itemsarrayWhat it sells: each a price (price_..., one-time) and a quantity.
amountinteger or nullWhat each payment comes to, in cents; null when the customer chooses.
urlstring or nullThe address to share, once it's active.
max_paymentsinteger or nullIt stops after this many payments; refunded ones still count.
max_payments_per_customerinteger or nullHow many times one customer, by email, can pay.
expires_attimestamp or nullWhen it stops taking payments.
call_to_actionenumThe button's words: pay, buy, book, book_appointment, subscribe, donate, reserve or rent.
collect_addressenumnone, billing or billing_shipping.
collect_tax_idsbooleanBusiness customers can add a VAT or GST number.
require_tax_idbooleanOnly customers with a tax ID can pay.
allow_promotion_codesbooleanCustomers can enter a promotion code.
save_payment_detailsbooleanOffers to keep the customer's card for their next payment.
confirmationenumAfter payment: page (the confirmation page), message or redirect.
confirmation_messagestring or nullThe message, for message.
redirect_urlstring or nullWhere customers are sent, for redirect.
payments_countintegerPayments made through it.
amount_collectedintegerWhat it collected, in cents.
amount_refundedintegerWhat was refunded of it, in cents.
createdtimestampWhen it was created.
archived_attimestamp or nullWhen it was archived.

Example

json
{  "id": "pl_test_535017777c54702cfa78467c",  "object": "payment_link",  "livemode": false,  "reference": "PL-1042",  "name": "Pottery workshop ticket",  "description": null,  "status": "active",  "pricing": "fixed",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 1    }  ],  "amount": 4000,  "url": "https://pay.sovgate.com/ppl_test_...",  "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": 12,  "amount_collected": 48000,  "amount_refunded": 0,  "created": "2026-11-27T14:00:00Z",  "archived_at": null}

Endpoints

EndpointWhat it does
POST /v1/payment_linksCreate a payment link as a draft.
GET /v1/payment_links/{id}Get a payment link by its ID.
POST /v1/payment_links/{id}Change a draft link. An active link can't change: duplicate it instead.
GET /v1/payment_linksList your payment links, newest first.
POST /v1/payment_links/{id}/activateTurn a draft or inactive link on, with a new address to share.
POST /v1/payment_links/{id}/deactivateStop a link taking payments. Its address stops working for good.
POST /v1/payment_links/{id}/archiveArchive a link for good: its address stops working and it leaves your list.
POST /v1/payment_links/{id}/duplicateCopy a link into a new draft, to change it or sell again.