Skip to content

FISCALISTO / API / REFERENCE

Get a test environment · Test environments

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/sandboxes/{id}

A test environment: its name, its issuer and how many of its resets it has used today.

Before you call

  • A test key (fk_test_): this doesn't exist in production.

  • A key for the whole account: not limited to some issuers or to a test environment.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Path parameters

id*string

The object's id.

Response body

OK.

application/json
  1. response

A sandbox: a person's own test mode, with its own issuer, keys, webhooks and events.

id*string

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

object*string

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

livemode*boolean

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

name*string

Name.

issuers*integer

Active issuers in the sandbox.

Range-9007199254740991 <= value <= 9007199254740991
issuer?|

The SAT test issuer it starts with (only when created).

key?

Only when created.

created_at*|

When it was created, ISO 8601 with Mexico City time (-06:00).

deleted?boolean

Always true.

Errors

  • This exists only in test mode: use your fk_test_ key.

  • This key belongs to a sandbox and the request is for the whole account: use the account's test key.

  • This key is limited to some issuers and the request touches another one (or creates one, or uses something of the whole account, like webhooks).

  • There's no object with that id (or it belongs to another issuer or the other mode).

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

curl -X GET 'https://api.fiscalisto.com/v1/sandboxes/sbx_4kQm8ZtR2wLp9XbN' \  -H 'Authorization: Bearer fk_test_…'
{  "id": "sbx_4kQm8ZtR2wLp9XbN",  "object": "sandbox",  "livemode": false,  "name": "Ana",  "issuers": 1,  "created_at": "2026-10-25T09:40:00-06:00"}

Was this page helpful?