Give your agent these sources
The index links above select this release to avoid an older cached copy at the unversioned URLs. Both text exports
include a matching
Documentation revision digest; use that to detect mixed revisions.
The workflow JSON and OpenAPI links provide structured inputs for the examples.
The documentation search MCP is available at https://docs.gigstack.io/mcp.
It searches the documentation; it does not grant access to a gigstack account or execute
account operations. Supply API credentials separately through your local environment.
Start without an account
An agent can quote prices and open a test account before the person has an API key. Both paths cover Mexico only for now.Check prices
country) it returns the Pricing v3 catalog in MXN before IVA; 16% IVA is added on top.
available: false means the country has no catalog yet, not that it is free.
Quote only prices the list returns. An item missing from the list has no public price; do not
fill it from memory. For an existing account, Read Pricing v3 prices
returns the account’s list and the billing summary its credits
and usage so far.
Create a sandbox for the person
Create a test-only sandbox account opens a pricing v3 account for a person and returns one test key (sk_test_). It needs no key, only an Idempotency-Key:
- The test key is returned once, in the first
201. Store it in the local environment right away. Replaying the same key and body answers200with the sameteam_idandapi_key.test: null; after a timeout, replay with the sameIdempotency-Key, never a new one. - The sandbox normally carries SAT’s public test CSD, so the agent can create clients and stamp
test invoices. Check
test_issuerin the response first;nullmeans none was installed. Nothing is stamped before the SAT and nothing is charged. - The route answers
404 not_foundwhere it is not enabled.409 sandbox_pending_claimmeans the email already has an unclaimed sandbox and a new code was sent;409 email_already_existsmeans the person should sign in instead. For409 sandbox_claim_locked,idempotency_conflict,idempotency_in_progressorsandbox_outcome_unknown, stop and report; never retry with a new key. Requests are limited per IP, per email domain and per email (429withRetry-After), and disposable inboxes get400 email_not_allowed. - Until it is claimed, the key works only with test business data. Users, keys, team members,
billing, go-live, portals and webhooks answer
403 sandbox_unclaimed. - An unclaimed sandbox expires 7 days after creation and its keys are revoked.
Hand the account to the person
gigstack emails the person a six-digit code; it is never returned to the agent. Ask the person for it, then call Claim a sandbox withteam_id and code. The
code works once and locks after 5 wrong tries; a wrong, spent or expired code always answers the
same 400 invalid_or_expired_code. The person then receives a link to set a password and sign in
to app.gigstack.pro.
Going live stays with the person, usually from the app: a billing admin replaces the test CSD
with the RFC’s own CSD, adds a card through a Stripe Checkout that charges nothing by itself, and
takes the team live. The usage subscription then starts with
the first RFC’s monthly fee as a fixed item, and the signup_credits are granted. See
Account billing.
A starting prompt without an account
A concrete starting prompt
Match completion to the business result
Rules that prevent common mistakes
- Read each workflow’s countryScope. Do not reuse a Mexico fiscal workflow for Colombia.
- Never invent IDs, fiscal codes, required fields, or universal idempotency support.
- Treat a JSON value such as
${CLIENT_ID}in a workflow file as a placeholder to resolve. - Match the base URL to the key’s environment. Test mode is separate from staging.
- For draft updates, send the complete intended body and verify the persisted result.
- For stamping, inspect the stored draft’s mode; a test key does not convert a live draft.
- Save
data.uuidafter stamping. Do not keep using the previous draft ID. - A payment registration can finish before its complement. Check both results separately.
- After a timeout, reconcile the first attempt before retrying a consequential write.