Guides

API Client Management

The API Clients section lets you create and manage the OAuth2 credentials that your POS systems and integrations use to access the Puntjes API.


API clients list

Go to Business, then Integrations, and open API clients. The page shows:

  • Client count vs. limit: how many clients you have created, and the most you can have. Puntjes sets that number for every shop
  • Table: all clients with their label, client ID, default branch, status (Active/Revoked), and creation date

If you've reached your client limit, the create button is disabled with a warning message.


Creating a client

Click Create API client and enter a label for the new client (e.g., "Main POS Terminal", "Online Store").

After creation, the client secret is displayed in a dialog. Copy it immediately using the copy button. Later you can show it again with Reveal secret, after you confirm your password.

Save the secret immediately

Copy the client secret when the dialog shows it. To see it again, use Reveal secret and confirm your password. If a secret leaks, regenerate it: that invalidates the previous secret.


Client actions

Set the default branch

Pick a branch in the Default branch column. A transaction that arrives on this client with no branch in its payload is then recorded at that branch instead of staying unassigned. A payload that names a branch itself always wins.

Choose No default branch to undo this. Transactions already recorded keep the branch they were filed under.

A closed branch does not fall back

Deactivate a branch a client still defaults to and transactions sent without a branch are refused with BRANCH_INACTIVE (422), rather than filed as unassigned. Point the client at another branch first.

Reveal secret

Click the eye icon to reveal an existing client's secret. This requires password confirmation. The secret is shown in a modal with a copy button.

Regenerate secret

If a secret is compromised or lost, click Regenerate secret to create a new one. This requires password confirmation. The old secret is immediately invalidated. Any integrations using it will stop working until updated with the new secret.

Revoke client

Click Revoke and confirm to permanently disable a client. Revoked clients cannot authenticate and their tokens are invalidated. This action cannot be undone.

Clients a partner added

A partner app (a till or a webshop) can make its own client after you click Allow on the Puntjes screen that the app opens. Such a client shows Added by and the partner's name under its label. Point at Added by, or move to it with Tab, to see who allowed it and on which day the partner added it.

The page of an active partner under Integrations shows Connect to an admin of your business. An active partner is a partner that Puntjes has not stopped. Connect opens the partner's own page in a new tab, and you start the connection there. If the partner gave Puntjes no page for this, Connect opens the partner's website. A viewer, and a Puntjes operator who looks at your account, see only the button to the partner's website. That page has no button to create an API client, because the partner app makes the client after you click Allow.

The partner app keeps the secret, so this client has no Reveal secret and no Regenerate secret. You can still set its default branch and revoke it. To give the app a new secret, revoke the client and connect again from the partner app.


Best practices

  • One client per integration: create separate clients for each POS terminal or service for better auditability and easier revocation
  • Label clearly: use descriptive labels so you can identify which system each client belongs to
  • Rotate secrets periodically: regenerate them on a fixed schedule
  • Revoke immediately: if a client is compromised or a terminal is decommissioned, revoke the client right away

See Authentication for how to use client credentials to obtain API access tokens.