anaf_create_token_link
Create a 24-hour link the certificate holder opens on their own device to authorize ANAF access without a Storno account; returns link URL, token, company ID, exclusivity, and expiry.
Instructions
Create a link the certificate holder opens on their own device to authorize ANAF access (no Storno account needed there). Returns linkToken, linkUrl, companyId, exclusive and expiresAt. A link lasts 24 hours and a user may hold 5 active links, or the higher limit set on the organization. With exclusive=true the resulting token is bound to that company and used for it alone: the certificate must have SPV rights on its CIF, no other token of the organization is ever used for the company, and deleting the token revokes that one company. Without it, tokens are shared: any token of the organization can serve any of its companies (one certificate for all companies).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "anaf_create_token_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Company UUID the link is for. The token is validated against the CIF of this company. Required when exclusive is true. | |
| exclusive | No | Bind the resulting token to the company and use it for that company only. Default false (shared tokens). |