Skip to content

FISCALISTO / API / REFERENCE

Change the API version · Account

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/account

Moves the account's API version: the one your requests get without the Fiscalisto-Version header and your webhooks without their own api_version. First, try the new one by sending Fiscalisto-Version in your requests. With an account key with every permission (not one of a test environment). It's recorded in Desarrolladores › Actividad.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Headers

Idempotency-Key?string

Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).

Length1 <= length <= 255

Request body

application/json
  1. body
api_version*string

The account's API version: the one your requests get without Fiscalisto-Version and your webhooks without their own api_version. Try the new one first with the header.

Response body

OK.

application/json
  1. response

The API account of the key that made the request.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

name*string

The API account's name.

api_version*string

The account's API version (the one used by your requests without Fiscalisto-Version). See Versions.

latest_api_version*string

The latest API version.

key*

The key the request was made with: id, name and the issuers it is limited to.

Errors

  • There's no such API version (in Fiscalisto-Version or api_version). See Versiones in the docs for the ones there are.

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X POST 'https://api.fiscalisto.com/v1/account' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "api_version": "2026-10-24"}'
{  "id": "org_39c5a6b2-02b3-8453-9c35-aba6b43c876a",  "object": "account",  "livemode": false,  "name": "Mi plataforma",  "api_version": "2026-10-24",  "latest_api_version": "2026-10-24",  "key": {    "id": "key_vFQbeTxgHVoTlowHaTLR",    "name": "Pruebas",    "issuers": null,    "read_only": false,    "expires_at": null,    "sandbox": null  }}

Was this page helpful?