PayclaveDocs

Payclave developers

Payment links

Fixed-price and customer-entered links, versions, reservations, and expiry.

Configure a shareable payment page

A fixed link sets the merchant-owned price. A customer-entered link uses minimumAmount and optional maximumAmount to bound the payer's choice. Choose reusable or single_use usage and configure which customer fields are required. Keep test links and live links separate.

Live return URLs use HTTPS and the merchant's reviewed website origin. The link retains its settlement wallet selection. Create a new link when you need a different destination rather than expecting a later default-wallet change to reroute it.

bash
curl https://api.payclave.com/v1/payment-links \  -H "Authorization: Bearer sk_test_..." \  -H "Content-Type: application/json" \  -H "Idempotency-Key: consulting_deposit_123" \  -d '{    "title": "Consulting deposit",    "amountType": "fixed",    "amount": "250.00",    "usageType": "single_use",    "collect": { "email": true, "reference": true },    "successUrl": "https://merchant.example/orders/paid"  }'

Submit the latest public configuration

Send customers the returned link URL. A custom public form must first read the public configuration and submit its current version, an Idempotency-Key, and the required customer fields. Send amount only for a customer_entered link. Public configuration omits merchant metadata and secrets.

A single-use reservation can block another checkout with LINK_RESERVED. Public throttling can return RATE_LIMITED; respect Retry-After. A stale version must be refreshed before submission. Pausing, expiring, or archiving a link controls new collections; inspect existing invoice and payment state before deciding that an earlier payment did not complete.

Payment-link fields

FieldContract
title, descriptiontitle is required (1-120 UTF-8 bytes). description is optional customer-facing text up to 1000 UTF-8 bytes.
amountType, amount, minimumAmount, maximumAmountamountType is fixed or customer_entered. Fixed links require amount. Customer-entered links require minimumAmount and may set maximumAmount. All amounts are positive decimal strings with at most 6 fractional digits. minimumAmount must not exceed maximumAmount; the customer-entered maximum is also bounded by the service limit.
currencyCode, modeOptional currencyCode must match the mode's USDC or USDT settlement wallet. Optional mode must match the API key; it cannot switch modes.
usageTypesingle_use or reusable; defaults to reusable. A single-use reservation prevents another checkout until it completes, expires or is explicitly released under the lifecycle rules.
activeAt, expiresAtOptional RFC 3339 timestamps or null. These control when customers can start new checkouts. expiresAt must be later than activeAt when both are set.
collectOptional { email, name, reference } booleans. Public submission uses email, name and customerReference as field names.
referencePrefixOptional prefix for generated invoice references, at most 50 letters, numbers, underscores or hyphens.
successUrl, cancelUrl, successMessageOptional return URLs (at most 2048 UTF-8 bytes) and message (at most 500 UTF-8 bytes). Live return URLs must use HTTPS and match the merchant's reviewed website origin.
metadataOptional JSON object up to 16 KiB attached to merchant records; not included in the customer-safe public configuration.
versionRequired on PATCH with the complete editable configuration. Use the value from the latest GET response.

On this page