Skip to main content
Start with a task such as “record the bank transfer for order 1042”. The agent should first confirm the issuing team’s country and issuer setup, then choose the matching recipe before constructing a request. Read Shared fields, followed by Mexico or Colombia. The customer’s country is not the issuer selection.

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

Read the public price list needs no key. For Mexico (the default 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 answers 200 with the same team_id and api_key.test: null; after a timeout, replay with the same Idempotency-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_issuer in the response first; null means none was installed. Nothing is stamped before the SAT and nothing is charged.
  • The route answers 404 not_found where it is not enabled. 409 sandbox_pending_claim means the email already has an unclaimed sandbox and a new code was sent; 409 email_already_exists means the person should sign in instead. For 409 sandbox_claim_locked, idempotency_conflict, idempotency_in_progress or sandbox_outcome_unknown, stop and report; never retry with a new key. Requests are limited per IP, per email domain and per email (429 with Retry-After), and disposable inboxes get 400 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 with team_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

For cancellations, follow submit and verify cancellation. For refunds, follow record versus processor refund; the payment-registration idempotency pattern does not apply to refunds.

Match completion to the business result

Rules that prevent common mistakes

  1. Read each workflow’s countryScope. Do not reuse a Mexico fiscal workflow for Colombia.
  2. Never invent IDs, fiscal codes, required fields, or universal idempotency support.
  3. Treat a JSON value such as ${CLIENT_ID} in a workflow file as a placeholder to resolve.
  4. Match the base URL to the key’s environment. Test mode is separate from staging.
  5. For draft updates, send the complete intended body and verify the persisted result.
  6. For stamping, inspect the stored draft’s mode; a test key does not convert a live draft.
  7. Save data.uuid after stamping. Do not keep using the previous draft ID.
  8. A payment registration can finish before its complement. Check both results separately.
  9. After a timeout, reconcile the first attempt before retrying a consequential write.
A guide describes how to perform an operation. It is not permission to issue or cancel invoices, collect or refund money, send messages, change credentials, or delete records.