Skip to content

Search API reference

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

Create a payment link

Create a payment link as a draft.

POST/v1/payment_links

Create a payment link as a draft.

Endpoint

http
POST /v1/payment_links

Request body

NameTypeRequiredDescription
namestringRequiredWhat customers see. Up to 255 characters.
descriptionstringOptionalUp to 2,000 characters.
pricingenumRequiredfixed or customer_chooses.
currencystringRequiredusd.
line_itemsarrayRequiredUp to 20 one-time prices from your catalog, each with a price and a quantity up to 10,000. For customer_chooses, one price whose pricing model is customer-chooses.
call_to_actionenumOptionalThe button's words. Default pay.
collect_addressenumOptionalnone (the default), billing or billing_shipping.
collect_tax_idsbooleanOptionalDefault false.
require_tax_idbooleanOptionalDefault false.
allow_promotion_codesbooleanOptionalDefault false.
save_payment_detailsbooleanOptionalDefault false.
confirmationenumOptionalpage (the default), message or redirect.
confirmation_messagestringOptionalFor message. Up to 2,000 characters.
redirect_urlstringOptionalFor redirect: an https address.
max_paymentsintegerOptionalStop after this many payments.
max_payments_per_customerintegerOptionalPayments one customer can make.
expires_attimestampOptionalWhen it stops taking payments.

Example request

bash
curl -X POST https://api.sovgate.com/v1/payment_links \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 267f83da-4b2a-4c1d-9e3f-cd9877f4d6cd" \  -H "Content-Type: application/json" \  -d '{  "name": "Pottery workshop ticket",  "pricing": "fixed",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 1    }  ],  "call_to_action": "book",  "confirmation": "message",  "confirmation_message": "Thank you! Your receipt is on its way."}'

Example response

json
{  "id": "pl_test_535017777c54702cfa78467c",  "object": "payment_link",  "livemode": false,  "reference": "PL-1042",  "name": "Pottery workshop ticket",  "description": null,  "status": "draft",  "pricing": "fixed",  "currency": "usd",  "line_items": [    {      "price": "price_d2fcc8475d89f661d674185c",      "quantity": 1    }  ],  "amount": 4000,  "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}