heruAPI
Point of sale

Create a console link

LiveServed by the v1 API in development with the same checks as production; production opens on the same contract. The capabilities from before v1 keep running in production at the path your account team gives you.

POST
/merchants/{id}/console-link

Creates a link that opens the merchant's own console without a heru login: its invoices, the KPIs of the month and an accountant report with CSV. Give it to the merchant from your back office. The link can be opened as many times as needed until expires_at (a day by default). Each call creates a new link and revokes the merchant's previous ones, so repeating the request does not return the same link and needs no Idempotency-Key. url is null in an environment that has no console configured. Answers 409 when the merchant is closed.

Needs the merchants:console scope.

Authorization

oauth2 merchants:console
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Exchange your client_id and client_secret at /oauth/token of the environment for a bearer token valid for one hour. The playground of every operation asks for your own client and keeps it in your browser tab only.

Scope: merchants:console

Path parameters

id*string

The merchant id.

Match^mer_[0-7][0-9a-hjkmnp-tv-z]{25}$

Response body

Created

application/json
  1. response
url*|

Page hosted by heru where the merchant sees its console. null when the environment has no console configured.

Formaturi
expires_at*string

When the link stops working.

Formatdate-time
curl -X POST 'https://api.dev.b2b.heru.app/v1/merchants/mer_01m4xnvf23ecb963n48h2j9vxz/console-link'
{  "url": "https://api.dev.b2b.heru.app/dashboard/m/EXAMPLE-NOT-A-REAL-TOKEN",  "expires_at": "2026-10-28T17:02:41.219Z"}
© 2026 Kuarto Inc. (heru)heru.appQuestions about your integration? Contact your heru account team.