Grant Credits to Your Customers
For partners that invoice their own customers. Top up the accounts you referred; the credits are invoiced to you every month.
If you invoice your own customers, you top up their NextSign accounts yourself. A grant adds credits to a customer's balance for free. NextSign records it on your agreement and invoices you on the 1st of every month for the credits you granted the month before, at your agreed price per credit. You then invoice your customer as you see fit.
POST https://api.nextsign.dk/v3/api/partner/customers/{id}/credits
GET https://api.nextsign.dk/v3/api/partner/customers
GET https://api.nextsign.dk/v3/api/partner/customers/{id}
GET https://api.nextsign.dk/v3/api/partner/creditsBefore you start
Use an API key of your own company (the partner), created in your dashboard by a user who is still a member of it. Do not use the keys you received for your customers through the integration webhook: those act as the customer.
Both are set on your company by NextSign:
- Invoicing your own customers is switched on for you. Every endpoint on this page needs it.
- A price per credit is agreed. Granting needs it.
You can only grant to companies you referred. Any other company ID returns 404.
Grant credits
curl --request POST 'https://api.nextsign.dk/v3/api/partner/customers/65ab12cd34ef56ab78cd90b0/credits' \
--header "Authorization: Bearer $NEXTSIGN_API_KEY" \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: order-1042-credits' \
--data '{ "credits": 100, "reference": "order-1042" }'| Property | Required | Meaning |
|---|---|---|
credits | Yes | Credits to add: a positive number with at most two decimals, at most 100,000. |
reference | No | Your own reference, up to 200 characters. Shown in the grant list. |
Unknown properties are rejected. You cannot take credits back through the API; contact NextSign if a grant was a mistake.
Send an Idempotency-Key header (1–200 characters) and reuse it after a timeout or network failure: a retry with the same key returns the first grant with 200 OK and grants nothing more. The same key with another customer or amount returns 409 idempotency-key-reused. See Idempotency.
Response
A new grant returns 201 Created:
{
"grant": {
"id": "65ab12cd34ef56ab78cd90c1",
"customer": { "id": "65ab12cd34ef56ab78cd90b0", "name": "Kunde ApS" },
"credits": 100,
"pricePerCredit": 9,
"amount": 900,
"currency": "dkk",
"reference": "order-1042",
"source": "api",
"createdAt": "2026-11-12T09:30:00.000Z",
"invoiced": false
},
"customer": { "id": "65ab12cd34ef56ab78cd90b0", "credits": 112.5 }
}pricePerCredit is your agreed price at the time of the grant, in DKK excluding VAT, and amount is what the grant adds to your next invoice. A price change only applies to later grants. customer.credits is the customer's balance after the grant.
List your customers
GET /v3/api/partner/customers returns the companies you referred, newest first. Pass limit (1–200, default 50) and cursor (nextCursor from the previous page).
{
"data": [
{
"id": "65ab12cd34ef56ab78cd90b0",
"name": "Kunde ApS",
"cvr": "12345678",
"credits": 112.5,
"billing": "partner",
"referredAt": "2026-10-01T08:00:00.000Z",
"createdAt": "2026-10-01T08:00:00.000Z"
}
],
"nextCursor": null
}billing is partner for a customer you invoice. A customer that buys its own credits from NextSign shows prepaid (or monthly); you can still grant it credits, and they are still invoiced to you.
GET /v3/api/partner/customers/{id} returns one customer as { "customer": { … } }.
List your grants
GET /v3/api/partner/credits returns your grants, newest first, with the same limit and cursor parameters. Add customer (a customer ID) to see one customer's grants. invoiced turns true once a grant is on a monthly invoice. source says who made it: api (you), nextsign (NextSign, for you) or auto-refill (the automatic top-up).
Automatic top-up
NextSign can top up your customers automatically, like auto-refill: when a customer's balance drops to a threshold you agree with us, for example 50 credits, a set number of credits, for example 100, is granted. It is a grant like any other: free for the customer, at your price per credit, on your next monthly invoice, and you get the webhook. With the top-up on, your customers' sends are no longer held back by their balance, just as auto-refill works for other customers. Ask NextSign to switch it on or change the numbers.
Get told about every grant
Add a webhook with the trigger partner.customer.credits_granted to your own company (Dashboard → Webhooks, or the webhooks API). It is sent for every grant to one of your customers: yours, NextSign's and the automatic top-up's. It is retried like case webhooks.
{
"trigger": "partner.customer.credits_granted",
"company": { "id": "65ab12cd34ef56ab78cd90b0", "name": "Kunde ApS", "cvr": "12345678" },
"grant": {
"id": "65ab12cd34ef56ab78cd90c1",
"customer": { "id": "65ab12cd34ef56ab78cd90b0", "name": "Kunde ApS" },
"credits": 100,
"pricePerCredit": 9,
"amount": 900,
"currency": "dkk",
"reference": "Automatisk påfyldning (under 50 kreditter)",
"source": "auto-refill",
"createdAt": "2026-11-12T09:30:00.000Z",
"invoiced": false
},
"balance": 148
}company is the customer that got the credits, grant has the same shape as in the grant list, and balance is the customer's balance right after the grant. Use grant.id to recognise a delivery you already handled.
Your monthly invoice
On the 1st of every month NextSign invoices you for the credits granted the month before (00:00 Copenhagen time is the cut-off). The invoice has one line per customer and price, so you can pass the costs on. Credits your customers have not used yet are still invoiced: a grant is a sale to you, not a usage charge.
A customer you invoice never buys credits from NextSign and is never invoiced by NextSign. Without the automatic top-up, a send its credits do not cover is refused until you grant more: in the dashboard and through every API, which answers 402 insufficient-credits (cases already sent are not affected, and forms and webflows filled in by the public are never blocked). NextSign is alerted when one of your customers is refused, so we can tell you.
Errors
| Status | error | Meaning |
|---|---|---|
400 | validation-failed | The body, the ID or a query parameter is invalid. details lists the fields. |
403 | not-a-partner | The key's company is not a partner. |
403 | partner-billing-not-enabled | Invoicing your own customers is not switched on for you. All endpoints on this page answer this. |
403 | partner-agreement-missing | No price per credit is agreed yet. |
403 | key-has-no-user | Granting needs a key created by a user. |
404 | customer-not-found | No company you referred has this ID. |
409 | idempotency-key-reused | The key was already used for another grant. |
See Errors for the general format.