PayclaveDocs

Payclave developers

Payment links

Configure shareable payment pages and their lifecycle.

Access and availability
Secret key required. Configuration fields and public submission contracts are described below. All authenticated mutations in this group support an optional Idempotency-Key.

POST

POST /v1/payment-links

Required: title, amountType, amount for fixed links or minimumAmount for customer_entered links. Optional payment-link fields below.

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"  }'
GET

Query: limit (default 25, use 1-100), startingAfter, status, amountType, usageType, currencyCode, search, createdFrom, createdTo. Dates are RFC 3339 timestamps.

GET

Path: authenticated payment-link id.

PATCH

Required: current version and complete editable configuration, including title and amountType. This replaces configuration, not just changed fields.

POST

POST /v1/payment-links/:id/duplicate

No body required.

POST

POST /v1/payment-links/:id/pause

No body required.

POST

POST /v1/payment-links/:id/resume

No body required.

POST

POST /v1/payment-links/:id/archive

No body required.

Reservations and payments

POST

POST /v1/payment-links/:id/release-reservation

JSON: { acknowledgeLatePaymentRisk: true }. Review the reserved invoice before releasing.

GET

Query: limit (default 25, use 1-100).

On this page