PayclaveDocs

Payclave developers

Subscriptions

Schedule recurring invoices and manage pause, resume, and cancellation.

Access and availability
Requires subscription access and a secret key. Customers authorize each invoice payment through hosted checkout. Server SDK 0.5.0 includes these helpers; use direct HTTP with older versions.

Billing schedules

POST

POST /v1/subscriptions

Required requestKey (8-128 characters; reuse identical body on retries), cadence (weekly/monthly/yearly), future UTC anchor, and rich invoice template with explicit walletId and customer email. Omit issue, send, dueAt.

GET

GET /v1/subscriptions

No body; secret key scopes merchant and mode. Optional startingAfter cursor.

GET

GET /v1/subscriptions/:id

Subscription id.

Pause, resume, and cancellation

POST

POST /v1/subscriptions/:id

action: pause/resume/cancel and current version. cancel optionally accepts endOfPeriod:true.

On this page