Mint a hosted pay link
Returns a hosted checkout URL. Fails with 409 when the invoice is not OPEN.
Base URL https://payments.clocknext.com/api/v1
apiKeyAuthorizationBearer <cnk_…>Organisation-scoped key from Settings → API Keys.
id*stringInvoice id.
Pay link.
application/json- response
statusCode*integerThe HTTP status code of the response, repeated in the body.
statusDetail*The status of the request. status is SUCCESS, and message says what happened.
result*The hosted pay link for the invoice.
curl -X GET 'https://payments.clocknext.com/api/v1/invoices/inv_jkl012/pay-link'{ "statusCode": 200, "statusDetail": { "status": "SUCCESS", "message": "Request processed successfully." }, "result": { "url": "https://payments.clocknext.com/pay/<token>.ejhp0Il6436yYjAy3WTAYGTj1MepTmi3OZYXHfqnAVM", "invoiceId": "cmvgvkqs0005g08l2woad24kt", "invoiceNumber": "INV-0007" }}Types
Every object type on this page, with its fields.
PayLink
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | The hosted payment page for the invoice. Send it to the customer: they do not need to sign in. |
invoiceId | string | yes | The id of the invoice the link pays. |
invoiceNumber | string | yes | The workspace's reference for the invoice, such as INV-0042. |
Get an invoice GET
Previous Page
Record a payment POST
Records a payment received outside Clocknext (bank transfer, cash, UPI, …) and marks an `OPEN` invoice `PAID`; any other status is a `409`. Paying the first invoice starts the purchase once its start date has come. No receipt email is sent. Stripe and Paddle payments come from the gateway only.