Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer.
Create a new income invoice with CFDI 4.0 compliance.
Safe retries with idempotency_key. Send your own identifier for the invoice (for example your
order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so
repeating the request cannot issue a second CFDI or charge twice:
The invoice already exists: 400 with message.duplicate: true and message.uuid.
Another request with the key is still being processed: 409idempotency_in_progress. Retry later.
The PAC’s answer was lost: 503PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same
key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made.
The PAC can’t confirm an earlier attempt: 409STAMP_NEEDS_REVIEW. Don’t retry; contact support.
The serie and folio already belong to another CFDI of the issuer’s RFC (for example, another account
on the same RFC): 400FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With
your own folio_number, send another one; with gigstack’s folios, give the team a serie of its own
first, since the other account keeps using that serie.
The SAT or PAC rejected the data: 400, and the key is free again for a corrected request.
Without an idempotency_key none of this applies, and after a 503PAC_OUTCOME_UNKNOWN
(retryable: false) you can’t tell whether the invoice exists: look it up before sending it again.
To issue many invoices at once, use POST /invoices/income/batch.
Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note
through this same endpoint with document_kind: "debit_note", a motive, and
related_documents: [{ "relationship": "02", "documents": ["<invoice uuid or DIAN number>"] }]
naming the one sales invoice being debited. items are the additional amounts charged, not the
original invoice’s items. gigstack sends it to DIAN through Factus as a debit note that references
that invoice. It needs an active “Nota Débito” numbering range in the team’s Factus account; without
one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN’s (for
example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: "debit_note" and motive, and the debit note is listed by GET /invoices/income.
A debit note can’t be cancelled: to reverse it, issue a credit note on the original invoice. A credit
or debit note can’t be the document a debit note references. Malformed debit-note requests (no
motive, wrong related_documents, combined with global, or from a team not invoicing in
Colombia) are answered 400 before a credit is consumed or a folio reserved.
gigstack Connect: Create invoices for other teams using the team parameter.
Errors: credential failures are answered by the authentication layer with a raw
{ "message": … } body, not the standardized envelope — 401 for a missing, malformed or
expired token, 403 for a revoked key or a plan without API access. See the Unauthorized
and AuthForbidden responses.
Query Parameters
team
string
gigstack Connect: Target team ID for multi-team access.
Requires gigstack Connect enabled on your team and shared billing account.
Also requires the multipleIssuerAccounts feature on your plan. Requests targeting a
team other than the one your API key belongs to return 403 without it.
Only API keys can use it: an OAuth access token sent with another team's id is rejected with
403 Team mismatch with OAuth token.
Optional — omit it entirely unless you are acting on another team. It deliberately
carries no example value so generated snippets do not emit ?team=undefined; when the
parameter is absent, the team is derived from your API key.
Example:?team=team_xyz789
Body
application/json
Unknown top-level keys are rejected (400 validation_failed / unexpected_key) — body
validation runs in strict allowlist mode, so a field the schema does not declare
produces that error. In particular there is no client_id field: reference an
existing client with client: { "id": "client_…" }, or look one up with
client: { "search": { "on_key": "tax_id", "on_value": "…" } }. Supplying both id
and search on the same object is a 400.
team, livemode and owner are reserved and injected by the auth middleware.
client
object
required
Show child attributes
currency
string
required
Example:
"MXN"
use
string
required
Example:
"G03"
items
object[]
required
Show child attributes
payment_form
enum<string>
required
SAT forma de pago. 99 (Por definir) needs payment_method PPD; with PUE it is refused with 400, except on a factura global.
Available options:
01,
02,
03,
04,
05,
06,
08,
12,
13,
14,
15,
17,
23,
24,
25,
26,
27,
28,
29,
30,
31,
99
Example:
"03"
payment_method
enum<string>
required
Available options:
PPD,
PUE
Example:
"PUE"
date
number
return_files
boolean
Return base64 encoded PDF and XML files in response
Example:
true
exchange_rate
number
Exchange rate for currency conversion. If not provided, the latest rate from our rates collection will be used automatically. A rate of 1 on a currency other than the team's local currency is refused with 400.
Example:
1
folio_number
number
Example:
123
series
string
Optional. Defaults to the team's invoice serie. For a Colombian debit note it defaults to the
team's debit-note serie, then ND, so a debit note never takes a number from the sales-invoice
serie. In Colombia the series and folio stored on the issued document are the ones DIAN
assigned (for example ND3 is series ND, folio 3).
Example:
"A"
idempotency_key
string | null
Your identifier for this invoice, for example your order id. With it, sending the same request
again cannot issue a second CFDI or charge a second credit:
Once the invoice exists, the same key answers 400 with duplicate: true and the existing uuid.
While another request with the key is being processed, it answers 409idempotency_in_progress.
After a 503PAC_OUTCOME_UNKNOWN, a retry with the key resends the exact same XML and folio, so
the PAC either stamps it once or reports the stamp it already made.
A definitive rejection (for example the SAT refusing the data) frees the key, so you can fix the
body and send it again under the same key.
Scoped to your team and the credential's mode. Required on every item of POST /invoices/income/batch.
Example:
"unique_key_123"
exports
enum<string> | null
Available options:
01,
02,
03,
04,
null
Example:
"01"
complements
object[] | null
Show child attributes
carta_porte
object
Mexico, carriers and freight forwarders only: bills the freight as a CFDI de ingreso with the
Carta Porte 3.1 complement (road transport). Same object and SAT attribute names as
POST /invoices/transfer. At least one item must be a transport service
(product_key 78101500-78102205, 78121603, 78141500/01, 84121806, 92121800-02); the goods
go in carta_porte.Mercancias. Not available on global invoices or debit notes, in
currency XXX, or next to a donatarias complement.
Show child attributes
related_documents
object[] | null
Earlier documents this invoice relates to. In Mexico, relationship is a SAT
CFDI relationship code and documents lists fiscal UUIDs.
Colombia, debit note (document_kind: debit_note): exactly one entry, with
relationship: "02" and one document: the invoice being debited, given as its
uuid (CUFE) or its DIAN number (for example FV69), or the credit note the debit
note reverses, given the same way (for example NCP27).
Show child attributes
invoice_pdf_notes
string
Example:
"Additional notes for PDF"
pdf_fields
object[] | null
Colombia (DIAN) only. Label/value pairs printed beside the dates on the PDF gigstack
draws for teams that use their own Colombian PDF, for example a purchase order number.
They are printed only: they are not part of the DIAN XML. Up to 10. A field with the same
label as one the team prints from metadata replaces it; with an empty value it hides
it on this invoice. Ignored in Mexico.
Maximum array length: 10
Show child attributes
addenda
string | null
Example:
"<addenda>...</addenda>"
send_email
boolean
Whether to send the document via email to the client. Defaults to true.
Example:
true
ignore_emails
boolean | null
Suppress all notification emails for this document. Takes precedence over
send_email — when true, no mail is sent even if send_email is true.
Example:
false
emails
string<email>[]
Example:
["client@example.com"]
metadata
object
Custom key-value metadata. Colombia: the team setting order_reference (e.g. {metadata.orderId?}) can send a metadata value to DIAN as the sales invoice's purchase order.
Example:
{ "orderId": "OC-4501" }
automation_type
enum<string>
Optional. Invoice automation type:
payment: Create invoice with payment automation
none: No automation, create invoice only
Available options:
payment,
none
Example:
"payment"
global
object | null
Factura global period. Required when the client is PUBLICO EN GENERAL (XAXX010101000); without it the invoice is refused instead of being stamped for the current month.
Show child attributes
payment_due_date
string
Colombia (DIAN) only. Due date of a credit invoice (payment_method: PPD), as YYYY-MM-DD. Required for a Colombian PPD invoice, on or after the stamping day in Bogotá; printed on the DIAN document as "Fecha de vencimiento", with the term ("Plazo: N días") at the start of the observations. Refused for other countries and for PUE.
Pattern: ^\d{4}-\d{2}-\d{2}$
Example:
"2026-11-19"
document_kind
enum<string> | null
Colombia (DIAN) only. Which document to issue. Omitted, null or invoice issues a
regular sales invoice (factura de venta). debit_note issues a DIAN debit note (nota débito)
that charges an additional amount on an invoice you already issued. A debit note:
requires motive;
must reference exactly one invoice: related_documents: [{ "relationship": "02", "documents": ["<invoice uuid or DIAN number>"] }]. The referenced document must be a sales
invoice of the same team and mode, or a credit note it reverses (see billing_period),
never another debit note;
cannot be combined with global;
carries in items only the additional amounts being charged (interest, collection
costs, the price increase), not the original invoice's items.
Teams that don't invoice in Colombia get 400 for debit_note. These checks run before a
credit is consumed or a folio reserved.
Available options:
invoice,
debit_note,
null
Example:
"debit_note"
motive
enum<string> | null
Colombia (DIAN) only. Required when document_kind is debit_note, refused (400) on
any other invoice. The DIAN concept of the debit note, by code or by name:
Code
Name
DIAN concept
1
interest
Intereses
2
collection_expenses
Gastos por cobrar
3
value_change
Cambio del valor
4
other
Otros
These codes are not the credit-note or cancellation motives: 2 means "Gastos por cobrar"
here.
Available options:
1,
2,
3,
4,
interest,
collection_expenses,
value_change,
other,
null
Example:
"1"
billing_period
object | null
Colombia (DIAN) only, debit notes that reverse a credit note. The period the debit
note covers. Required when the debit note reverses a credit note (related_documents
names a credit note): DIAN then issues it as a debit note without an invoice reference
(operation type 32), which must carry a billing period. Refused (400) on a debit note
that debits a sales invoice and on any other invoice. Both checks run before a credit is
consumed or a folio reserved.
start_time defaults to 00:00:00 and end_time to 23:59:59; the dates must be days that
exist and the period must end no earlier than it starts.
Show child attributes
Response
Invoice created successfully
message
string
Example:
"Invoice created successfully"
data
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"gigstack","description":"Build invoicing and payment integrations with the gigstack API.","colors":{"primary":"#527A16","light":"#B4E44B","dark":"#527A16"},"logo":{"light":"https://mintcdn.com/gigstack-736714cc/n52DA3e1uZaES4AD/logo/light.svg?fit=max\u0026auto=format\u0026n=n52DA3e1uZaES4AD\u0026q=85\u0026s=c2a76374f23410e1b668aa0f9c87e282","dark":"https://mintcdn.com/gigstack-736714cc/n52DA3e1uZaES4AD/logo/dark.svg?fit=max\u0026auto=format\u0026n=n52DA3e1uZaES4AD\u0026q=85\u0026s=4943719d5ca8657f1121e499d7c7e64b"},"favicon":"https://mintcdn.com/gigstack-736714cc/n52DA3e1uZaES4AD/logo/favicon.svg?fit=max\u0026auto=format\u0026n=n52DA3e1uZaES4AD\u0026q=85\u0026s=06d40fd65140bc9023b235ed1b456268","api":{"playground":{"display":"interactive"},"examples":{"languages":["bash","javascript","python"]}},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"links":[{"href":"mailto:support@gigstack.io","label":"Support"}],"primary":{"type":"button","label":"Open gigstack","href":"https://app.gigstack.pro"}},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gigstack-736714cc","hasAudioNarration":false,"actualSubdomain":"gigstack-736714cc","customDomains":["docs.gigstack.io"],"gitSource":{"type":"github","owner":"disruptive-learning","repo":"backend","deployBranch":"main","contentDirectory":"docs/api","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b011d7213bcca0e1928b2ef","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":351},{"language":"default","tag":"Core resources","count":95},{"language":"default","tag":"Teams and access","count":88},{"language":"default","tag":"Account settings and integrations","count":76},{"language":"default","tag":"Guides","count":57},{"language":"default","tag":"Automation and data","count":55},{"language":"default","tag":"Teams","count":43},{"language":"default","tag":"Integrations","count":36},{"language":"default","tag":"SAT and fiscal tools","count":35},{"language":"default","tag":"Invoices","count":33}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"reference/createInvoicesIncome","slug":"/reference/createInvoicesIncome","pageMetadata":{"openapi":"openapi.json POST /invoices/income","title":"Create income invoice","description":"[Small working example](/recipes/paid-later)\n\n**Integration note:** This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read [shared fields](/concepts/shared-fields) and the [Mexico](/countries/mexico) or [Colombia](/countries/colombia) guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer.\n\nCreate a new income invoice with CFDI 4.0 compliance.\n\n**Safe retries with `idempotency_key`.** Send your own identifier for the invoice (for example your\norder id) in `idempotency_key`. gigstack claims the key before charging a credit or stamping, so\nrepeating the request cannot issue a second CFDI or charge twice:\n\n- The invoice already exists: `400` with `message.duplicate: true` and `message.uuid`.\n- Another request with the key is still being processed: `409` `idempotency_in_progress`. Retry later.\n- The PAC's answer was lost: `503` `PAC_OUTCOME_UNKNOWN` with `retryable: true`. Retry with the same\n key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made.\n- The PAC can't confirm an earlier attempt: `409` `STAMP_NEEDS_REVIEW`. Don't retry; contact support.\n- The serie and folio already belong to another CFDI of the issuer's RFC (for example, another account\n on the same RFC): `400` `FOLIO_ALREADY_USED`. Nothing was stamped and the key is free again. With\n your own `folio_number`, send another one; with gigstack's folios, give the team a serie of its own\n first, since the other account keeps using that serie.\n- The SAT or PAC rejected the data: `400`, and the key is free again for a corrected request.\n\nWithout an `idempotency_key` none of this applies, and after a `503` `PAC_OUTCOME_UNKNOWN`\n(`retryable: false`) you can't tell whether the invoice exists: look it up before sending it again.\n\nTo issue many invoices at once, use `POST /invoices/income/batch`.\n\n**Colombia: debit notes (notas débito).** A team invoicing in Colombia issues a DIAN debit note\nthrough this same endpoint with `document_kind: \"debit_note\"`, a `motive`, and\n`related_documents: [{ \"relationship\": \"02\", \"documents\": [\"\u003cinvoice uuid or DIAN number>\"] }]`\nnaming the one sales invoice being debited. `items` are the additional amounts charged, not the\noriginal invoice's items. gigstack sends it to DIAN through Factus as a debit note that references\nthat invoice. It needs an active \"Nota Débito\" numbering range in the team's Factus account; without\none the request fails with `COL_NUMBERING_RANGE_ERROR`. The series and folio returned are DIAN's (for\nexample `ND3`). The response is the usual income invoice (`invoice_type: I`) plus `document_kind:\n\"debit_note\"` and `motive`, and the debit note is listed by `GET /invoices/income`.\n\nA debit note can't be cancelled: to reverse it, issue a credit note on the original invoice. A credit\nor debit note can't be the document a debit note references. Malformed debit-note requests (no\n`motive`, wrong `related_documents`, combined with `global`, or from a team not invoicing in\nColombia) are answered `400` before a credit is consumed or a folio reserved.\n\n**gigstack Connect:** Create invoices for other teams using the `team` parameter.\n","href":"/reference/createInvoicesIncome"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: _jsx(_components.a, {\n href: \"/recipes/paid-later\",\n children: \"Small working example\"\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Integration note:\"\n }), \" This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read \", _jsx(_components.a, {\n href: \"/concepts/shared-fields\",\n children: \"shared fields\"\n }), \" and the \", _jsx(_components.a, {\n href: \"/countries/mexico\",\n children: \"Mexico\"\n }), \" or \", _jsx(_components.a, {\n href: \"/countries/colombia\",\n children: \"Colombia\"\n }), \" guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Create a new income invoice with CFDI 4.0 compliance.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [\"Safe retries with \", _jsx(_components.code, {\n children: \"idempotency_key\"\n }), \".\"]\n }), \" Send your own identifier for the invoice (for example your\\norder id) in \", _jsx(_components.code, {\n children: \"idempotency_key\"\n }), \". gigstack claims the key before charging a credit or stamping, so\\nrepeating the request cannot issue a second CFDI or charge twice:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"The invoice already exists: \", _jsx(_components.code, {\n children: \"400\"\n }), \" with \", _jsx(_components.code, {\n children: \"message.duplicate: true\"\n }), \" and \", _jsx(_components.code, {\n children: \"message.uuid\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Another request with the key is still being processed: \", _jsx(_components.code, {\n children: \"409\"\n }), \" \", _jsx(_components.code, {\n children: \"idempotency_in_progress\"\n }), \". Retry later.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The PAC’s answer was lost: \", _jsx(_components.code, {\n children: \"503\"\n }), \" \", _jsx(_components.code, {\n children: \"PAC_OUTCOME_UNKNOWN\"\n }), \" with \", _jsx(_components.code, {\n children: \"retryable: true\"\n }), \". Retry with the same\\nkey: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The PAC can’t confirm an earlier attempt: \", _jsx(_components.code, {\n children: \"409\"\n }), \" \", _jsx(_components.code, {\n children: \"STAMP_NEEDS_REVIEW\"\n }), \". Don’t retry; contact support.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The serie and folio already belong to another CFDI of the issuer’s RFC (for example, another account\\non the same RFC): \", _jsx(_components.code, {\n children: \"400\"\n }), \" \", _jsx(_components.code, {\n children: \"FOLIO_ALREADY_USED\"\n }), \". Nothing was stamped and the key is free again. With\\nyour own \", _jsx(_components.code, {\n children: \"folio_number\"\n }), \", send another one; with gigstack’s folios, give the team a serie of its own\\nfirst, since the other account keeps using that serie.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The SAT or PAC rejected the data: \", _jsx(_components.code, {\n children: \"400\"\n }), \", and the key is free again for a corrected request.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Without an \", _jsx(_components.code, {\n children: \"idempotency_key\"\n }), \" none of this applies, and after a \", _jsx(_components.code, {\n children: \"503\"\n }), \" \", _jsx(_components.code, {\n children: \"PAC_OUTCOME_UNKNOWN\"\n }), \"\\n(\", _jsx(_components.code, {\n children: \"retryable: false\"\n }), \") you can’t tell whether the invoice exists: look it up before sending it again.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"To issue many invoices at once, use \", _jsx(_components.code, {\n children: \"POST /invoices/income/batch\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Colombia: debit notes (notas débito).\"\n }), \" A team invoicing in Colombia issues a DIAN debit note\\nthrough this same endpoint with \", _jsx(_components.code, {\n children: \"document_kind: \\\"debit_note\\\"\"\n }), \", a \", _jsx(_components.code, {\n children: \"motive\"\n }), \", and\\n\", _jsx(_components.code, {\n children: \"related_documents: [{ \\\"relationship\\\": \\\"02\\\", \\\"documents\\\": [\\\"\u003cinvoice uuid or DIAN number>\\\"] }]\"\n }), \"\\nnaming the one sales invoice being debited. \", _jsx(_components.code, {\n children: \"items\"\n }), \" are the additional amounts charged, not the\\noriginal invoice’s items. gigstack sends it to DIAN through Factus as a debit note that references\\nthat invoice. It needs an active “Nota Débito” numbering range in the team’s Factus account; without\\none the request fails with \", _jsx(_components.code, {\n children: \"COL_NUMBERING_RANGE_ERROR\"\n }), \". The series and folio returned are DIAN’s (for\\nexample \", _jsx(_components.code, {\n children: \"ND3\"\n }), \"). The response is the usual income invoice (\", _jsx(_components.code, {\n children: \"invoice_type: I\"\n }), \") plus \", _jsx(_components.code, {\n children: \"document_kind: \\\"debit_note\\\"\"\n }), \" and \", _jsx(_components.code, {\n children: \"motive\"\n }), \", and the debit note is listed by \", _jsx(_components.code, {\n children: \"GET /invoices/income\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A debit note can’t be cancelled: to reverse it, issue a credit note on the original invoice. A credit\\nor debit note can’t be the document a debit note references. Malformed debit-note requests (no\\n\", _jsx(_components.code, {\n children: \"motive\"\n }), \", wrong \", _jsx(_components.code, {\n children: \"related_documents\"\n }), \", combined with \", _jsx(_components.code, {\n children: \"global\"\n }), \", or from a team not invoicing in\\nColombia) are answered \", _jsx(_components.code, {\n children: \"400\"\n }), \" before a credit is consumed or a folio reserved.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"gigstack Connect:\"\n }), \" Create invoices for other teams using the \", _jsx(_components.code, {\n children: \"team\"\n }), \" parameter.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"openapi.json POST /invoices/income","title":"Create income invoice","description":"[Small working example](/recipes/paid-later)\n\n**Integration note:** This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read [shared fields](/concepts/shared-fields) and the [Mexico](/countries/mexico) or [Colombia](/countries/colombia) guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer.\n\nCreate a new income invoice with CFDI 4.0 compliance.\n\n**Safe retries with `idempotency_key`.** Send your own identifier for the invoice (for example your\norder id) in `idempotency_key`. gigstack claims the key before charging a credit or stamping, so\nrepeating the request cannot issue a second CFDI or charge twice:\n\n- The invoice already exists: `400` with `message.duplicate: true` and `message.uuid`.\n- Another request with the key is still being processed: `409` `idempotency_in_progress`. Retry later.\n- The PAC's answer was lost: `503` `PAC_OUTCOME_UNKNOWN` with `retryable: true`. Retry with the same\n key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made.\n- The PAC can't confirm an earlier attempt: `409` `STAMP_NEEDS_REVIEW`. Don't retry; contact support.\n- The serie and folio already belong to another CFDI of the issuer's RFC (for example, another account\n on the same RFC): `400` `FOLIO_ALREADY_USED`. Nothing was stamped and the key is free again. With\n your own `folio_number`, send another one; with gigstack's folios, give the team a serie of its own\n first, since the other account keeps using that serie.\n- The SAT or PAC rejected the data: `400`, and the key is free again for a corrected request.\n\nWithout an `idempotency_key` none of this applies, and after a `503` `PAC_OUTCOME_UNKNOWN`\n(`retryable: false`) you can't tell whether the invoice exists: look it up before sending it again.\n\nTo issue many invoices at once, use `POST /invoices/income/batch`.\n\n**Colombia: debit notes (notas débito).** A team invoicing in Colombia issues a DIAN debit note\nthrough this same endpoint with `document_kind: \"debit_note\"`, a `motive`, and\n`related_documents: [{ \"relationship\": \"02\", \"documents\": [\"\u003cinvoice uuid or DIAN number>\"] }]`\nnaming the one sales invoice being debited. `items` are the additional amounts charged, not the\noriginal invoice's items. gigstack sends it to DIAN through Factus as a debit note that references\nthat invoice. It needs an active \"Nota Débito\" numbering range in the team's Factus account; without\none the request fails with `COL_NUMBERING_RANGE_ERROR`. The series and folio returned are DIAN's (for\nexample `ND3`). The response is the usual income invoice (`invoice_type: I`) plus `document_kind:\n\"debit_note\"` and `motive`, and the debit note is listed by `GET /invoices/income`.\n\nA debit note can't be cancelled: to reverse it, issue a credit note on the original invoice. A credit\nor debit note can't be the document a debit note references. Malformed debit-note requests (no\n`motive`, wrong `related_documents`, combined with `global`, or from a team not invoicing in\nColombia) are answered `400` before a credit is consumed or a folio reserved.\n\n**gigstack Connect:** Create invoices for other teams using the `team` parameter.\n","href":"/reference/createInvoicesIncome"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createInvoicesIncome","tags":["Invoices"],"summary":"Create income invoice","description":"[Small working example](/recipes/paid-later)\n\n**Integration note:** This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read [shared fields](/concepts/shared-fields) and the [Mexico](/countries/mexico) or [Colombia](/countries/colombia) guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer.\n\nCreate a new income invoice with CFDI 4.0 compliance.\n\n**Safe retries with `idempotency_key`.** Send your own identifier for the invoice (for example your\norder id) in `idempotency_key`. gigstack claims the key before charging a credit or stamping, so\nrepeating the request cannot issue a second CFDI or charge twice:\n\n- The invoice already exists: `400` with `message.duplicate: true` and `message.uuid`.\n- Another request with the key is still being processed: `409` `idempotency_in_progress`. Retry later.\n- The PAC's answer was lost: `503` `PAC_OUTCOME_UNKNOWN` with `retryable: true`. Retry with the same\n key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made.\n- The PAC can't confirm an earlier attempt: `409` `STAMP_NEEDS_REVIEW`. Don't retry; contact support.\n- The serie and folio already belong to another CFDI of the issuer's RFC (for example, another account\n on the same RFC): `400` `FOLIO_ALREADY_USED`. Nothing was stamped and the key is free again. With\n your own `folio_number`, send another one; with gigstack's folios, give the team a serie of its own\n first, since the other account keeps using that serie.\n- The SAT or PAC rejected the data: `400`, and the key is free again for a corrected request.\n\nWithout an `idempotency_key` none of this applies, and after a `503` `PAC_OUTCOME_UNKNOWN`\n(`retryable: false`) you can't tell whether the invoice exists: look it up before sending it again.\n\nTo issue many invoices at once, use `POST /invoices/income/batch`.\n\n**Colombia: debit notes (notas débito).** A team invoicing in Colombia issues a DIAN debit note\nthrough this same endpoint with `document_kind: \"debit_note\"`, a `motive`, and\n`related_documents: [{ \"relationship\": \"02\", \"documents\": [\"\u003cinvoice uuid or DIAN number>\"] }]`\nnaming the one sales invoice being debited. `items` are the additional amounts charged, not the\noriginal invoice's items. gigstack sends it to DIAN through Factus as a debit note that references\nthat invoice. It needs an active \"Nota Débito\" numbering range in the team's Factus account; without\none the request fails with `COL_NUMBERING_RANGE_ERROR`. The series and folio returned are DIAN's (for\nexample `ND3`). The response is the usual income invoice (`invoice_type: I`) plus `document_kind:\n\"debit_note\"` and `motive`, and the debit note is listed by `GET /invoices/income`.\n\nA debit note can't be cancelled: to reverse it, issue a credit note on the original invoice. A credit\nor debit note can't be the document a debit note references. Malformed debit-note requests (no\n`motive`, wrong `related_documents`, combined with `global`, or from a team not invoicing in\nColombia) are answered `400` before a credit is consumed or a folio reserved.\n\n**gigstack Connect:** Create invoices for other teams using the `team` parameter.\n","security":["d700b753-84ca-4732-ac87-166f42d5a5ae"],"parameters":["e266b750-b355-4e31-a9d4-0ea26b748e83"],"requestBody":"80751e95-6fe2-4bb4-b9b0-f7aa7bcccc7d","responses":{"200":"14c5d510-70e5-405c-9119-ca24372fed9f","400":"15d9dc73-9c3c-46be-ad42-bb9eb8ac6942","401":"5f33f517-759d-4cca-8376-9c88a7eadc04","403":"5ba734f4-814d-4e67-aac4-50cde8285dca","404":"b08e0068-b505-41c1-900d-6e7da4629027","409":"2d867d4a-9047-4599-adaf-59925fbac85a","412":"f1dd4362-b430-4172-9619-5d8e5867af22","429":"e32bfd05-4128-407e-96b7-5d4817827bc7","500":"3bf4aeba-07eb-44cd-a7e3-9ef581816883","503":"cb777582-0f3e-4a06-a3ef-0368fcc85f0a"},"method":"post","type":"path","servers":["87059d0e-ccc8-43e7-97f3-afea666258e3"],"path":"/invoices/income","baseUrlOptions":["https://api.gigstack.io/v2"],"title":"Create income invoice","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e266b750-b355-4e31-a9d4-0ea26b748e83":{"name":"team","in":"query","required":false,"schema":{"type":"string","isRequired":false,"description":"**gigstack Connect:** Target team ID for multi-team access.\n\nRequires gigstack Connect enabled on your team and shared billing account.\n\nAlso requires the `multipleIssuerAccounts` feature on your plan. Requests targeting a\nteam other than the one your API key belongs to return `403` without it.\n\nOnly API keys can use it: an OAuth access token sent with another team's id is rejected with\n`403 Team mismatch with OAuth token`.\n\n**Optional — omit it entirely** unless you are acting on another team. It deliberately\ncarries no example value so generated snippets do not emit `?team=undefined`; when the\nparameter is absent, the team is derived from your API key.\n\n**Example:** `?team=team_xyz789`\n","uniqueKey":"","typeLabel":"string"},"description":"**gigstack Connect:** Target team ID for multi-team access.\n\nRequires gigstack Connect enabled on your team and shared billing account.\n\nAlso requires the `multipleIssuerAccounts` feature on your plan. Requests targeting a\nteam other than the one your API key belongs to return `403` without it.\n\nOnly API keys can use it: an OAuth access token sent with another team's id is rejected with\n`403 Team mismatch with OAuth token`.\n\n**Optional — omit it entirely** unless you are acting on another team. It deliberately\ncarries no example value so generated snippets do not emit `?team=undefined`; when the\nparameter is absent, the team is derived from your API key.\n\n**Example:** `?team=team_xyz789`\n"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Unknown top-level keys are rejected (`400 validation_failed` / `unexpected_key`) — body\nvalidation runs in strict allowlist mode, so a field the schema does not declare\nproduces that error. In particular there is no `client_id` field: reference an\nexisting client with `client: { \"id\": \"client_…\" }`, or look one up with\n`client: { \"search\": { \"on_key\": \"tax_id\", \"on_value\": \"…\" } }`. Supplying both `id`\nand `search` on the same object is a `400`.\n\n`team`, `livemode` and `owner` are reserved and injected by the auth middleware.\n","type":"object","additionalProperties":false,"required":["client","currency","use","items","payment_form","payment_method"],"properties":{"client":{"type":"object","additionalProperties":false,"properties":{"id":{"oneOf":[{"type":"string","uniqueKey":"client.id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.id","typeLabel":"string | null"},"search":{"oneOf":[{"type":"object","additionalProperties":false,"required":["on_key","on_value"],"properties":{"on_key":{"type":"string","isRequired":true,"uniqueKey":"client.search.oneOf.0.on_key","typeLabel":"string"},"on_value":{"type":"string","isRequired":true,"uniqueKey":"client.search.oneOf.0.on_value","typeLabel":"string"},"auto_create":{"oneOf":[{"type":"boolean","uniqueKey":"client.search.oneOf.0.auto_create.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"client.search.oneOf.0.auto_create.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.search.oneOf.0.auto_create","typeLabel":"boolean | null"},"safety_check":{"oneOf":[{"type":"boolean","uniqueKey":"client.search.oneOf.0.safety_check.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"client.search.oneOf.0.safety_check.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.search.oneOf.0.safety_check","typeLabel":"boolean | null"},"update":{"oneOf":[{"type":"boolean","uniqueKey":"client.search.oneOf.0.update.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"client.search.oneOf.0.update.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.search.oneOf.0.update","typeLabel":"boolean | null"}},"uniqueKey":"client.search.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":false,"required":["on_key","on_value"],"properties":{"on_key":{"type":"string"},"on_value":{"type":"string"},"auto_create":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"safety_check":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"update":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"uniqueKey":"client.search.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.search","typeLabel":"object | null"},"address":{"oneOf":[{"additionalProperties":false,"properties":{"country":{"oneOf":[{"maxLength":3,"type":"string","uniqueKey":"client.address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"maxLength":3,"type":"null","uniqueKey":"client.address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.country","typeLabel":"string | null"},"street":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.street.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.street.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.street","typeLabel":"string | null"},"zip":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.zip.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.zip.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.zip","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.state","typeLabel":"string | null"},"exterior":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.exterior.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.exterior.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.exterior","typeLabel":"string | null"},"interior":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.interior.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.interior.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.interior","typeLabel":"string | null"},"municipality":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.municipality.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.municipality.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.municipality","typeLabel":"string | null"},"neighborhood":{"oneOf":[{"type":"string","uniqueKey":"client.address.oneOf.0.neighborhood.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.address.oneOf.0.neighborhood.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address.oneOf.0.neighborhood","typeLabel":"string | null"}},"type":"object","uniqueKey":"client.address.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"properties":{"country":{"oneOf":[{"maxLength":3,"type":"string"},{"maxLength":3,"type":"null"}]},"street":{"oneOf":[{"type":"string"},{"type":"null"}]},"zip":{"oneOf":[{"type":"string"},{"type":"null"}]},"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"state":{"oneOf":[{"type":"string"},{"type":"null"}]},"exterior":{"oneOf":[{"type":"string"},{"type":"null"}]},"interior":{"oneOf":[{"type":"string"},{"type":"null"}]},"municipality":{"oneOf":[{"type":"string"},{"type":"null"}]},"neighborhood":{"oneOf":[{"type":"string"},{"type":"null"}]}},"type":"null","uniqueKey":"client.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.address","typeLabel":"object | null"},"name":{"oneOf":[{"type":"string","uniqueKey":"client.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"client.company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.company","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"client.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.phone","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"client.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.email","typeLabel":"string | null"},"bcc":{"type":"array","items":{"type":"string","uniqueKey":"client.bcc.items.[INDEX]","typeLabel":"string"},"uniqueKey":"client.bcc","typeLabel":"string[]"},"metadata":{"type":"object","additionalProperties":true,"properties":{},"uniqueKey":"client.metadata","typeLabel":"object"},"legal_name":{"oneOf":[{"type":"string","uniqueKey":"client.legal_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.legal_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.legal_name","typeLabel":"string | null"},"tax_id":{"oneOf":[{"type":"string","uniqueKey":"client.tax_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.tax_id","typeLabel":"string | null"},"use":{"oneOf":[{"type":"string","uniqueKey":"client.use.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.use.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.use","typeLabel":"string | null"},"tax_system":{"oneOf":[{"type":"string","uniqueKey":"client.tax_system.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"client.tax_system.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.tax_system","typeLabel":"string | null"},"document_type":{"oneOf":[{"description":"DIAN identification document code","type":"string","enum":["","11","12","13","21","22","31","41","42","47","48","50","91",null],"uniqueKey":"client.document_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"DIAN identification document code","type":"null","enum":["","11","12","13","21","22","31","41","42","47","48","50","91",null],"uniqueKey":"client.document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.document_type","typeLabel":"enum\u003cstring> | null"},"organization_type":{"oneOf":[{"type":"string","description":"1 = persona jurídica, 2 = persona natural","enum":["","1","2",null],"uniqueKey":"client.organization_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"1 = persona jurídica, 2 = persona natural","enum":["","1","2",null],"uniqueKey":"client.organization_type.oneOf.1","typeLabel":"null"},{"type":"number","description":"1 = persona jurídica, 2 = persona natural","enum":[1,2],"uniqueKey":"client.organization_type.oneOf.2","typeLabel":"enum\u003cnumber>"}],"uniqueKey":"client.organization_type","typeLabel":"enum\u003cstring> | null | enum\u003cnumber>"},"tribute_code":{"oneOf":[{"description":"'01' = responsable de IVA, 'ZZ' = no aplica","type":"string","enum":["","01","ZZ",null],"uniqueKey":"client.tribute_code.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"'01' = responsable de IVA, 'ZZ' = no aplica","type":"null","enum":["","01","ZZ",null],"uniqueKey":"client.tribute_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.tribute_code","typeLabel":"enum\u003cstring> | null"},"fiscal_responsibilities":{"oneOf":[{"description":"DIAN responsabilidades fiscales (lista 53). Omitted means 'R-99-PN' (no responsable)","type":"array","items":{"type":"string","enum":["O-13","O-15","O-23","O-47","R-99-PN"],"uniqueKey":"client.fiscal_responsibilities.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"client.fiscal_responsibilities.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"description":"DIAN responsabilidades fiscales (lista 53). Omitted means 'R-99-PN' (no responsable)","type":"null","items":{"type":"string","enum":["O-13","O-15","O-23","O-47","R-99-PN"]},"uniqueKey":"client.fiscal_responsibilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.fiscal_responsibilities","typeLabel":"enum\u003cstring>[] | null"},"dv":{"oneOf":[{"description":"NIT verification digit","type":"string","pattern":"^[0-9]?$","uniqueKey":"client.dv.oneOf.0","typeLabel":"string"},{"description":"NIT verification digit","type":"null","pattern":"^[0-9]?$","uniqueKey":"client.dv.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.dv","typeLabel":"string | null"},"municipality_code":{"oneOf":[{"description":"DANE municipality code, only for clients domiciled in Colombia","type":"string","pattern":"^([0-9]{5})?$","uniqueKey":"client.municipality_code.oneOf.0","typeLabel":"string"},{"description":"DANE municipality code, only for clients domiciled in Colombia","type":"null","pattern":"^([0-9]{5})?$","uniqueKey":"client.municipality_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"client.municipality_code","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"client","typeLabel":"object"},"currency":{"type":"string","example":"MXN","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"use":{"type":"string","example":"G03","isRequired":true,"uniqueKey":"use","typeLabel":"string"},"items":{"type":"array","items":{"description":"A line item on an income invoice: the same fields as `InvoiceItemInput`, plus `local_taxes`.\nOnly `quantity` is required; everything else is optional, or resolved from the referenced\nservice when `id`/`search` is used. `id` and `search` are mutually exclusive — supplying both\nis a `400`.\n\nUnknown keys are rejected. Note there is no per-item `metadata` field.\n","type":"object","additionalProperties":false,"required":["quantity"],"properties":{"quantity":{"description":"Item quantity","example":1,"type":"number","isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"number"},"id":{"oneOf":[{"description":"Service/product ID reference. The line inherits the service's catalog fields;\non Mexican invoices that includes its cuenta predial, stamped as the\nconcepto's `CuentaPredial` node (one per account) for arrendamiento.\n","example":"service_1234567890","type":"string","uniqueKey":"\\items.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"description":"Service/product ID reference. The line inherits the service's catalog fields;\non Mexican invoices that includes its cuenta predial, stamped as the\nconcepto's `CuentaPredial` node (one per account) for arrendamiento.\n","example":"service_1234567890","type":"null","uniqueKey":"\\items.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string | null"},"search":{"oneOf":[{"type":"object","additionalProperties":false,"required":["on_key","on_value"],"properties":{"on_key":{"description":"Field to search on (sku, name, etc.)","example":"sku","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].search.oneOf.0.on_key","typeLabel":"string"},"on_value":{"description":"Value to search for","example":"CONS-001","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].search.oneOf.0.on_value","typeLabel":"string"},"auto_create":{"oneOf":[{"description":"Create service if not found","example":true,"type":"boolean","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.auto_create.oneOf.0","typeLabel":"boolean"},{"description":"Create service if not found","example":true,"type":"null","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.auto_create.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].search.oneOf.0.auto_create","typeLabel":"boolean | null"},"safety_check":{"oneOf":[{"description":"When true, prevents using multiple matching results (returns error). When false, uses the first result found. Default: false","example":false,"type":"boolean","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.safety_check.oneOf.0","typeLabel":"boolean"},{"description":"When true, prevents using multiple matching results (returns error). When false, uses the first result found. Default: false","example":false,"type":"null","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.safety_check.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].search.oneOf.0.safety_check","typeLabel":"boolean | null"},"update":{"oneOf":[{"type":"boolean","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.update.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"\\items.items.[INDEX].search.oneOf.0.update.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].search.oneOf.0.update","typeLabel":"boolean | null"}},"uniqueKey":"\\items.items.[INDEX].search.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":false,"required":["on_key","on_value"],"properties":{"on_key":{"description":"Field to search on (sku, name, etc.)","example":"sku","type":"string"},"on_value":{"description":"Value to search for","example":"CONS-001","type":"string"},"auto_create":{"oneOf":[{"description":"Create service if not found","example":true,"type":"boolean"},{"description":"Create service if not found","example":true,"type":"null"}]},"safety_check":{"oneOf":[{"description":"When true, prevents using multiple matching results (returns error). When false, uses the first result found. Default: false","example":false,"type":"boolean"},{"description":"When true, prevents using multiple matching results (returns error). When false, uses the first result found. Default: false","example":false,"type":"null"}]},"update":{"oneOf":[{"type":"boolean"},{"type":"null"}]}},"uniqueKey":"\\items.items.[INDEX].search.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].search","typeLabel":"object | null"},"description":{"oneOf":[{"description":"Item description","example":"Consulting services","type":"string","uniqueKey":"\\items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"description":"Item description","example":"Consulting services","type":"null","uniqueKey":"\\items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string | null"},"sku":{"oneOf":[{"description":"Stock keeping unit","example":"CONS-001","type":"string","uniqueKey":"\\items.items.[INDEX].sku.oneOf.0","typeLabel":"string"},{"description":"Stock keeping unit","example":"CONS-001","type":"null","uniqueKey":"\\items.items.[INDEX].sku.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].sku","typeLabel":"string | null"},"product_key":{"oneOf":[{"description":"SAT product key (c_ClaveProdServ)","example":"80141503","type":"string","uniqueKey":"\\items.items.[INDEX].product_key.oneOf.0","typeLabel":"string"},{"description":"SAT product key (c_ClaveProdServ)","example":"80141503","type":"null","uniqueKey":"\\items.items.[INDEX].product_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product_key","typeLabel":"string | null"},"unit_key":{"oneOf":[{"description":"SAT unit key (c_ClaveUnidad)","example":"E48","type":"string","uniqueKey":"\\items.items.[INDEX].unit_key.oneOf.0","typeLabel":"string"},{"description":"SAT unit key (c_ClaveUnidad)","example":"E48","type":"null","uniqueKey":"\\items.items.[INDEX].unit_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].unit_key","typeLabel":"string | null"},"unit_name":{"oneOf":[{"description":"Unit name","example":"Servicio","type":"string","uniqueKey":"\\items.items.[INDEX].unit_name.oneOf.0","typeLabel":"string"},{"description":"Unit name","example":"Servicio","type":"null","uniqueKey":"\\items.items.[INDEX].unit_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].unit_name","typeLabel":"string | null"},"unit_price":{"oneOf":[{"description":"Unit price","example":1000,"type":"number","uniqueKey":"\\items.items.[INDEX].unit_price.oneOf.0","typeLabel":"number"},{"description":"Unit price","example":1000,"type":"null","uniqueKey":"\\items.items.[INDEX].unit_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].unit_price","typeLabel":"number | null"},"discount":{"oneOf":[{"description":"Discount amount (absolute value in the item currency, not a percentage)","example":0,"type":"number","uniqueKey":"\\items.items.[INDEX].discount.oneOf.0","typeLabel":"number"},{"description":"Discount amount (absolute value in the item currency, not a percentage)","example":0,"type":"null","uniqueKey":"\\items.items.[INDEX].discount.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].discount","typeLabel":"number | null"},"taxability":{"oneOf":[{"description":"SAT `c_ObjetoImp` — whether the item is subject to tax.","example":"02","type":"string","enum":["01","02","03","04","05","06","07","08",null],"uniqueKey":"\\items.items.[INDEX].taxability.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"SAT `c_ObjetoImp` — whether the item is subject to tax.","example":"02","type":"null","enum":["01","02","03","04","05","06","07","08",null],"uniqueKey":"\\items.items.[INDEX].taxability.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxability","typeLabel":"enum\u003cstring> | null"},"taxes":{"description":"Tax elements applied to this item","type":"array","items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"base":{"oneOf":[{"type":"number","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.base.oneOf.0","typeLabel":"number"},{"type":"null","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.base.oneOf.1","typeLabel":"null"},{"type":"string","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.base.oneOf.2","typeLabel":"string"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.base","typeLabel":"number | null | string"},"factor":{"oneOf":[{"type":"string","example":"Tasa","description":"SAT tax factor (Tasa, Cuota, Exento)","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.factor.oneOf.0","typeLabel":"string"},{"type":"null","example":"Tasa","description":"SAT tax factor (Tasa, Cuota, Exento)","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.factor.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.factor","typeLabel":"string | null"},"inclusive":{"oneOf":[{"type":"boolean","example":false,"description":"Whether the tax is included in the unit price","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.inclusive.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"description":"Whether the tax is included in the unit price","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.inclusive.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.inclusive","typeLabel":"boolean | null"},"rate":{"oneOf":[{"description":"Tax rate (e.g., 0.16 for 16% IVA)","example":0.16,"type":"number","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.rate.oneOf.0","typeLabel":"number"},{"description":"Tax rate (e.g., 0.16 for 16% IVA)","example":0.16,"type":"null","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.rate","typeLabel":"number | null"},"type":{"oneOf":[{"description":"Type of tax","example":"IVA","type":"string","enum":["IVA","ISR","IEPS",null],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Type of tax","example":"IVA","type":"null","enum":["IVA","ISR","IEPS",null],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.type.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring> | null"},"withholding":{"oneOf":[{"type":"boolean","example":false,"description":"Whether this is a withholding tax","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.withholding.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"description":"Whether this is a withholding tax","uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.withholding.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0.withholding","typeLabel":"boolean | null"}},"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":false,"properties":{"base":{"oneOf":[{"type":"number","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100},{"type":"null","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100},{"type":"string","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100}]},"factor":{"oneOf":[{"type":"string","example":"Tasa","description":"SAT tax factor (Tasa, Cuota, Exento)"},{"type":"null","example":"Tasa","description":"SAT tax factor (Tasa, Cuota, Exento)"}]},"inclusive":{"oneOf":[{"type":"boolean","example":false,"description":"Whether the tax is included in the unit price"},{"type":"null","example":false,"description":"Whether the tax is included in the unit price"}]},"rate":{"oneOf":[{"description":"Tax rate (e.g., 0.16 for 16% IVA)","example":0.16,"type":"number"},{"description":"Tax rate (e.g., 0.16 for 16% IVA)","example":0.16,"type":"null"}]},"type":{"oneOf":[{"description":"Type of tax","example":"IVA","type":"string","enum":["IVA","ISR","IEPS",null]},{"description":"Type of tax","example":"IVA","type":"null","enum":["IVA","ISR","IEPS",null]}]},"withholding":{"oneOf":[{"type":"boolean","example":false,"description":"Whether this is a withholding tax"},{"type":"null","example":false,"description":"Whether this is a withholding tax"}]}},"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object | null"},"uniqueKey":"\\items.items.[INDEX].taxes","typeLabel":"(object | null)[]"},"third_party":{"oneOf":[{"description":"Third party information for items provided by external parties","type":"object","additionalProperties":false,"properties":{"legal_name":{"oneOf":[{"description":"Third party legal name","example":"Third Party SA","type":"string","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.legal_name.oneOf.0","typeLabel":"string"},{"description":"Third party legal name","example":"Third Party SA","type":"null","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.legal_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.legal_name","typeLabel":"string | null"},"tax_id":{"oneOf":[{"description":"Third party RFC (tax ID)","example":"TPR800101ABC","type":"string","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_id.oneOf.0","typeLabel":"string"},{"description":"Third party RFC (tax ID)","example":"TPR800101ABC","type":"null","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_id","typeLabel":"string | null"},"tax_system":{"oneOf":[{"description":"Third party tax system","example":"601","type":"string","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_system.oneOf.0","typeLabel":"string"},{"description":"Third party tax system","example":"601","type":"null","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_system.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.tax_system","typeLabel":"string | null"},"zip":{"oneOf":[{"description":"Third party ZIP code","example":"03100","type":"string","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.zip.oneOf.0","typeLabel":"string"},{"description":"Third party ZIP code","example":"03100","type":"null","uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.zip.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0.zip","typeLabel":"string | null"}},"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.0","typeLabel":"object"},{"description":"Third party information for items provided by external parties","type":"null","additionalProperties":false,"properties":{"legal_name":{"oneOf":[{"description":"Third party legal name","example":"Third Party SA","type":"string"},{"description":"Third party legal name","example":"Third Party SA","type":"null"}]},"tax_id":{"oneOf":[{"description":"Third party RFC (tax ID)","example":"TPR800101ABC","type":"string"},{"description":"Third party RFC (tax ID)","example":"TPR800101ABC","type":"null"}]},"tax_system":{"oneOf":[{"description":"Third party tax system","example":"601","type":"string"},{"description":"Third party tax system","example":"601","type":"null"}]},"zip":{"oneOf":[{"description":"Third party ZIP code","example":"03100","type":"string"},{"description":"Third party ZIP code","example":"03100","type":"null"}]}},"uniqueKey":"\\items.items.[INDEX].third_party.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].third_party","typeLabel":"object | null"},"item_complement":{"oneOf":[{"description":"CFDI item-level complement.","type":"object","additionalProperties":false,"properties":{"hydrocarbons":{"oneOf":[{"description":"Complemento de hidrocarburos. All four fields are required when this object is present.","type":"object","additionalProperties":false,"required":["permit_type","permit_number","fuel_code","fuel_sub_product"],"properties":{"permit_type":{"example":"PL/12345/EXP/ES/2020","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.0.permit_type","typeLabel":"string"},"permit_number":{"example":"12345","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.0.permit_number","typeLabel":"string"},"fuel_code":{"example":"PR03","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.0.fuel_code","typeLabel":"string"},"fuel_sub_product":{"example":"10","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.0.fuel_sub_product","typeLabel":"string"}},"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.0","typeLabel":"object"},{"description":"Complemento de hidrocarburos. All four fields are required when this object is present.","type":"null","additionalProperties":false,"required":["permit_type","permit_number","fuel_code","fuel_sub_product"],"properties":{"permit_type":{"example":"PL/12345/EXP/ES/2020","type":"string"},"permit_number":{"example":"12345","type":"string"},"fuel_code":{"example":"PR03","type":"string"},"fuel_sub_product":{"example":"10","type":"string"}},"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0.hydrocarbons","typeLabel":"object | null"}},"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.0","typeLabel":"object"},{"description":"CFDI item-level complement.","type":"null","additionalProperties":false,"properties":{"hydrocarbons":{"oneOf":[{"description":"Complemento de hidrocarburos. All four fields are required when this object is present.","type":"object","additionalProperties":false,"required":["permit_type","permit_number","fuel_code","fuel_sub_product"],"properties":{"permit_type":{"example":"PL/12345/EXP/ES/2020","type":"string"},"permit_number":{"example":"12345","type":"string"},"fuel_code":{"example":"PR03","type":"string"},"fuel_sub_product":{"example":"10","type":"string"}}},{"description":"Complemento de hidrocarburos. All four fields are required when this object is present.","type":"null","additionalProperties":false,"required":["permit_type","permit_number","fuel_code","fuel_sub_product"],"properties":{"permit_type":{"example":"PL/12345/EXP/ES/2020","type":"string"},"permit_number":{"example":"12345","type":"string"},"fuel_code":{"example":"PR03","type":"string"},"fuel_sub_product":{"example":"10","type":"string"}}}]}},"uniqueKey":"\\items.items.[INDEX].item_complement.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].item_complement","typeLabel":"object | null"},"note":{"oneOf":[{"description":"**Colombia (DIAN) only.** Free text printed under this item on the PDF gigstack draws\nfor teams that use their own Colombian PDF. It is printed only: it is not sent to Factus\nand is not part of the DIAN XML. Belongs to this invoice only: it is never saved on the\nreferenced service. On a payment, it is carried to the invoice the payment stamps. Ignored in Mexico.\n","example":"Licencias para 7 colaboradores, vigencia 12 meses desde la activación","type":"string","maxLength":1000,"uniqueKey":"\\items.items.[INDEX].note.oneOf.0","typeLabel":"string"},{"description":"**Colombia (DIAN) only.** Free text printed under this item on the PDF gigstack draws\nfor teams that use their own Colombian PDF. It is printed only: it is not sent to Factus\nand is not part of the DIAN XML. Belongs to this invoice only: it is never saved on the\nreferenced service. On a payment, it is carried to the invoice the payment stamps. Ignored in Mexico.\n","example":"Licencias para 7 colaboradores, vigencia 12 meses desde la activación","type":"null","maxLength":1000,"uniqueKey":"\\items.items.[INDEX].note.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].note","typeLabel":"string | null"},"local_taxes":{"oneOf":[{"description":"Local (state) taxes of the item, such as the lodging tax (ISH), ISN, ISAI or Impuesto Cedular. They are\nnot part of `taxes`: the CFDI is stamped with the Impuestos Locales complement.\nMexican CFDI only.\n","type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["type","rate"],"properties":{"type":{"description":"Name printed in the complement. `ISH`, `ISN`, `ISAI`, or free text such as `Impuesto Cedular`.","example":"ISH","type":"string","minLength":1,"maxLength":100,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].type","typeLabel":"string"},"rate":{"description":"A fraction, like `taxes`. `0.02` is 2%. Must be greater than 0.","example":0.02,"type":"number","minimum":0,"maximum":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"withholding":{"oneOf":[{"description":"`true` for a local retención, subtracted from the total.","example":false,"type":"boolean","uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].withholding.oneOf.0","typeLabel":"boolean"},{"description":"`true` for a local retención, subtracted from the total.","example":false,"type":"null","uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].withholding.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].withholding","typeLabel":"boolean | null"},"inclusive":{"oneOf":[{"description":"`true` when `unit_price` already contains the tax. Not allowed together with `withholding`.","example":false,"type":"boolean","uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].inclusive.oneOf.0","typeLabel":"boolean"},{"description":"`true` when `unit_price` already contains the tax. Not allowed together with `withholding`.","example":false,"type":"null","uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].inclusive.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX].inclusive","typeLabel":"boolean | null"}},"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.0","typeLabel":"object[]"},{"description":"Local (state) taxes of the item, such as the lodging tax (ISH), ISN, ISAI or Impuesto Cedular. They are\nnot part of `taxes`: the CFDI is stamped with the Impuestos Locales complement.\nMexican CFDI only.\n","type":"null","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["type","rate"],"properties":{"type":{"description":"Name printed in the complement. `ISH`, `ISN`, `ISAI`, or free text such as `Impuesto Cedular`.","example":"ISH","type":"string","minLength":1,"maxLength":100},"rate":{"description":"A fraction, like `taxes`. `0.02` is 2%. Must be greater than 0.","example":0.02,"type":"number","minimum":0,"maximum":1},"withholding":{"oneOf":[{"description":"`true` for a local retención, subtracted from the total.","example":false,"type":"boolean"},{"description":"`true` for a local retención, subtracted from the total.","example":false,"type":"null"}]},"inclusive":{"oneOf":[{"description":"`true` when `unit_price` already contains the tax. Not allowed together with `withholding`.","example":false,"type":"boolean"},{"description":"`true` when `unit_price` already contains the tax. Not allowed together with `withholding`.","example":false,"type":"null"}]}}},"uniqueKey":"\\items.items.[INDEX].local_taxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].local_taxes","typeLabel":"object[] | null"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"payment_form":{"description":"SAT forma de pago. `99` (Por definir) needs `payment_method` PPD; with PUE it is refused with 400, except on a factura global.","example":"03","type":"string","enum":["01","02","03","04","05","06","08","12","13","14","15","17","23","24","25","26","27","28","29","30","31","99"],"isRequired":true,"uniqueKey":"payment_form","typeLabel":"enum\u003cstring>"},"payment_method":{"example":"PUE","type":"string","enum":["PPD","PUE"],"isRequired":true,"uniqueKey":"payment_method","typeLabel":"enum\u003cstring>"},"date":{"type":"number","uniqueKey":"date","typeLabel":"number"},"return_files":{"description":"Return base64 encoded PDF and XML files in response","example":true,"type":"boolean","uniqueKey":"return_files","typeLabel":"boolean"},"exchange_rate":{"description":"Exchange rate for currency conversion. If not provided, the latest rate from our rates collection will be used automatically. A rate of 1 on a currency other than the team's local currency is refused with 400.","example":1,"type":"number","uniqueKey":"exchange_rate","typeLabel":"number"},"folio_number":{"example":123,"type":"number","uniqueKey":"folio_number","typeLabel":"number"},"series":{"description":"Optional. Defaults to the team's invoice serie. For a Colombian debit note it defaults to the\nteam's debit-note serie, then `ND`, so a debit note never takes a number from the sales-invoice\nserie. In Colombia the series and folio stored on the issued document are the ones DIAN\nassigned (for example `ND3` is series `ND`, folio `3`).\n","example":"A","type":"string","uniqueKey":"series","typeLabel":"string"},"idempotency_key":{"oneOf":[{"description":"Your identifier for this invoice, for example your order id. With it, sending the same request\nagain cannot issue a second CFDI or charge a second credit:\n\n- Once the invoice exists, the same key answers `400` with `duplicate: true` and the existing `uuid`.\n- While another request with the key is being processed, it answers `409` `idempotency_in_progress`.\n- After a `503` `PAC_OUTCOME_UNKNOWN`, a retry with the key resends the exact same XML and folio, so\n the PAC either stamps it once or reports the stamp it already made.\n- A definitive rejection (for example the SAT refusing the data) frees the key, so you can fix the\n body and send it again under the same key.\n\nScoped to your team and the credential's mode. Required on every item of `POST /invoices/income/batch`.\n","example":"unique_key_123","type":"string","uniqueKey":"idempotency_key.oneOf.0","typeLabel":"string"},{"description":"Your identifier for this invoice, for example your order id. With it, sending the same request\nagain cannot issue a second CFDI or charge a second credit:\n\n- Once the invoice exists, the same key answers `400` with `duplicate: true` and the existing `uuid`.\n- While another request with the key is being processed, it answers `409` `idempotency_in_progress`.\n- After a `503` `PAC_OUTCOME_UNKNOWN`, a retry with the key resends the exact same XML and folio, so\n the PAC either stamps it once or reports the stamp it already made.\n- A definitive rejection (for example the SAT refusing the data) frees the key, so you can fix the\n body and send it again under the same key.\n\nScoped to your team and the credential's mode. Required on every item of `POST /invoices/income/batch`.\n","example":"unique_key_123","type":"null","uniqueKey":"idempotency_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"idempotency_key","typeLabel":"string | null"},"exports":{"oneOf":[{"example":"01","type":"string","enum":["01","02","03","04",null],"uniqueKey":"exports.oneOf.0","typeLabel":"enum\u003cstring>"},{"example":"01","type":"null","enum":["01","02","03","04",null],"uniqueKey":"exports.oneOf.1","typeLabel":"null"}],"uniqueKey":"exports","typeLabel":"enum\u003cstring> | null"},"complements":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":false,"required":["type","data"],"properties":{"type":{"example":"custom","type":"string","isRequired":true,"uniqueKey":"complements.oneOf.0.items.[INDEX].type","typeLabel":"string"},"data":{"example":"\u003cxml>...\u003c/xml>","type":"string","isRequired":true,"uniqueKey":"complements.oneOf.0.items.[INDEX].data","typeLabel":"string"}},"uniqueKey":"complements.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"complements.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":false,"required":["type","data"],"properties":{"type":{"example":"custom","type":"string"},"data":{"example":"\u003cxml>...\u003c/xml>","type":"string"}}},"uniqueKey":"complements.oneOf.1","typeLabel":"null"}],"uniqueKey":"complements","typeLabel":"object[] | null"},"carta_porte":{"description":"Mexico, carriers and freight forwarders only: bills the freight as a CFDI de ingreso with the\nCarta Porte 3.1 complement (road transport). Same object and SAT attribute names as\n`POST /invoices/transfer`. At least one item must be a transport service\n(`product_key` 78101500-78102205, 78121603, 78141500/01, 84121806, 92121800-02); the goods\ngo in `carta_porte.Mercancias`. Not available on global invoices or debit notes, in\ncurrency `XXX`, or next to a donatarias complement.\n","type":"object","additionalProperties":false,"required":["TranspInternac","TotalDistRec","Ubicaciones","Mercancias","FiguraTransporte","Autotransporte"],"properties":{"TranspInternac":{"type":"string","enum":["Sí","Si","No"],"isRequired":true,"uniqueKey":"carta_porte.TranspInternac","typeLabel":"enum\u003cstring>"},"TotalDistRec":{"type":"number","maximum":99999,"minimum":0.01,"isRequired":true,"uniqueKey":"carta_porte.TotalDistRec","typeLabel":"number"},"Ubicaciones":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["TipoUbicacion","RFCRemitenteDestinatario","FechaHoraSalidaLlegada","Domicilio"],"properties":{"TipoUbicacion":{"type":"string","enum":["Origen","Destino"],"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].TipoUbicacion","typeLabel":"enum\u003cstring>"},"RFCRemitenteDestinatario":{"type":"string","minLength":12,"maxLength":13,"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].RFCRemitenteDestinatario","typeLabel":"string"},"FechaHoraSalidaLlegada":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$","isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].FechaHoraSalidaLlegada","typeLabel":"string"},"Domicilio":{"type":"object","additionalProperties":false,"required":["Estado","Pais","CodigoPostal"],"properties":{"Estado":{"type":"string","minLength":1,"maxLength":30,"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Estado","typeLabel":"string"},"Pais":{"type":"string","minLength":3,"maxLength":3,"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Pais","typeLabel":"string"},"CodigoPostal":{"type":"string","minLength":1,"maxLength":12,"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.CodigoPostal","typeLabel":"string"},"Calle":{"type":"string","maxLength":100,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Calle","typeLabel":"string"},"NumeroExterior":{"type":"string","maxLength":55,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.NumeroExterior","typeLabel":"string"},"NumeroInterior":{"type":"string","maxLength":55,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.NumeroInterior","typeLabel":"string"},"Colonia":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Colonia","typeLabel":"string"},"Localidad":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Localidad","typeLabel":"string"},"Referencia":{"type":"string","maxLength":250,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Referencia","typeLabel":"string"},"Municipio":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio.Municipio","typeLabel":"string"}},"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].Domicilio","typeLabel":"object"},"IDUbicacion":{"type":"string","pattern":"^$|^(?=[\\s\\S]{1,})(?:^(OR|DE)[0-9]{6}$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].IDUbicacion","typeLabel":"string"},"NombreRemitenteDestinatario":{"type":"string","maxLength":254,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].NombreRemitenteDestinatario","typeLabel":"string"},"NumRegIdTrib":{"type":"string","maxLength":40,"pattern":"^$|^(?=[\\s\\S]{6,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].NumRegIdTrib","typeLabel":"string"},"ResidenciaFiscal":{"type":"string","maxLength":3,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].ResidenciaFiscal","typeLabel":"string"},"DistanciaRecorrida":{"type":"number","maximum":99999,"minimum":0,"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX].DistanciaRecorrida","typeLabel":"number"}},"uniqueKey":"carta_porte.Ubicaciones.items.[INDEX]","typeLabel":"object"},"minItems":2,"isRequired":true,"uniqueKey":"carta_porte.Ubicaciones","typeLabel":"object[]"},"Mercancias":{"type":"object","additionalProperties":false,"required":["PesoBrutoTotal","UnidadPeso","NumTotalMercancias","Mercancia"],"properties":{"PesoBrutoTotal":{"type":"number","minimum":0.001,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.PesoBrutoTotal","typeLabel":"number"},"UnidadPeso":{"type":"string","minLength":1,"maxLength":8,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.UnidadPeso","typeLabel":"string"},"NumTotalMercancias":{"type":"number","minimum":1,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.NumTotalMercancias","typeLabel":"number"},"Mercancia":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["BienesTransp","Descripcion","Cantidad","ClaveUnidad","PesoEnKg"],"properties":{"BienesTransp":{"type":"string","minLength":1,"maxLength":8,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].BienesTransp","typeLabel":"string"},"Descripcion":{"type":"string","minLength":1,"maxLength":1000,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Descripcion","typeLabel":"string"},"Cantidad":{"type":"number","minimum":0.000001,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Cantidad","typeLabel":"number"},"ClaveUnidad":{"type":"string","minLength":1,"maxLength":3,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].ClaveUnidad","typeLabel":"string"},"PesoEnKg":{"type":"number","minimum":0.001,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].PesoEnKg","typeLabel":"number"},"Unidad":{"type":"string","maxLength":20,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Unidad","typeLabel":"string"},"Dimensiones":{"type":"string","pattern":"^$|^(?=[\\s\\S]{1,})(?:^([0-9]{1,3}\\/){2}[0-9]{1,3}(cm|plg)$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Dimensiones","typeLabel":"string"},"MaterialPeligroso":{"type":"string","enum":["Sí","Si","No"],"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].MaterialPeligroso","typeLabel":"enum\u003cstring>"},"CveMaterialPeligroso":{"type":"string","maxLength":8,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CveMaterialPeligroso","typeLabel":"string"},"Embalaje":{"type":"string","maxLength":8,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Embalaje","typeLabel":"string"},"DescripEmbalaje":{"type":"string","maxLength":100,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DescripEmbalaje","typeLabel":"string"},"SectorCOFEPRIS":{"type":"string","enum":["01","02","03","04","05"],"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].SectorCOFEPRIS","typeLabel":"enum\u003cstring>"},"NombreIngredienteActivo":{"type":"string","maxLength":1000,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].NombreIngredienteActivo","typeLabel":"string"},"NomQuimico":{"type":"string","maxLength":150,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].NomQuimico","typeLabel":"string"},"DenominacionGenericaProd":{"type":"string","maxLength":50,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DenominacionGenericaProd","typeLabel":"string"},"DenominacionDistintivaProd":{"type":"string","maxLength":50,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DenominacionDistintivaProd","typeLabel":"string"},"Fabricante":{"type":"string","maxLength":240,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Fabricante","typeLabel":"string"},"FechaCaducidad":{"type":"string","pattern":"^$|^(?=[\\s\\S]{1,})(?:^\\d{4}-\\d{2}-\\d{2}$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].FechaCaducidad","typeLabel":"string"},"LoteMedicamento":{"type":"string","maxLength":10,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].LoteMedicamento","typeLabel":"string"},"FormaFarmaceutica":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"],"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].FormaFarmaceutica","typeLabel":"enum\u003cstring>"},"CondicionesEspTransp":{"type":"string","enum":["01","02","03","04"],"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CondicionesEspTransp","typeLabel":"enum\u003cstring>"},"RegistroSanitarioFolioAutorizacion":{"type":"string","maxLength":15,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].RegistroSanitarioFolioAutorizacion","typeLabel":"string"},"PermisoImportacion":{"type":"string","maxLength":6,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].PermisoImportacion","typeLabel":"string"},"FolioImpoVUCEM":{"type":"string","maxLength":25,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].FolioImpoVUCEM","typeLabel":"string"},"NumCAS":{"type":"string","maxLength":15,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].NumCAS","typeLabel":"string"},"RazonSocialEmpImp":{"type":"string","maxLength":80,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].RazonSocialEmpImp","typeLabel":"string"},"NumRegSanPlagCOFEPRIS":{"type":"string","maxLength":60,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].NumRegSanPlagCOFEPRIS","typeLabel":"string"},"DatosFabricante":{"type":"string","maxLength":600,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DatosFabricante","typeLabel":"string"},"DatosFormulador":{"type":"string","maxLength":600,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DatosFormulador","typeLabel":"string"},"DatosMaquilador":{"type":"string","maxLength":600,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DatosMaquilador","typeLabel":"string"},"UsoAutorizado":{"type":"string","maxLength":1000,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].UsoAutorizado","typeLabel":"string"},"ValorMercancia":{"type":"number","minimum":0,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].ValorMercancia","typeLabel":"number"},"Moneda":{"type":"string","maxLength":3,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].Moneda","typeLabel":"string"},"FraccionArancelaria":{"type":"string","maxLength":10,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].FraccionArancelaria","typeLabel":"string"},"UUIDComercioExt":{"type":"string","pattern":"^$|^(?=[\\s\\S]{1,})(?:^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].UUIDComercioExt","typeLabel":"string"},"TipoMateria":{"type":"string","enum":["01","02","03","04","05"],"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].TipoMateria","typeLabel":"enum\u003cstring>"},"DescripcionMateria":{"type":"string","maxLength":50,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DescripcionMateria","typeLabel":"string"},"DocumentacionAduanera":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["TipoDocumento"],"properties":{"TipoDocumento":{"type":"string","enum":["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"],"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera.items.[INDEX].TipoDocumento","typeLabel":"enum\u003cstring>"},"NumPedimento":{"type":"string","pattern":"^$|^(?=[\\s\\S]{1,})(?:^[0-9]{2} {2}[0-9]{2} {2}[0-9]{4} {2}[0-9]{7}$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera.items.[INDEX].NumPedimento","typeLabel":"string"},"IdentDocAduanero":{"type":"string","maxLength":150,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera.items.[INDEX].IdentDocAduanero","typeLabel":"string"},"RFCImpo":{"type":"string","maxLength":13,"pattern":"^$|^(?=[\\s\\S]{12,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera.items.[INDEX].RFCImpo","typeLabel":"string"}},"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].DocumentacionAduanera","typeLabel":"object[]"},"GuiasIdentificacion":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["NumeroGuiaIdentificacion","DescripGuiaIdentificacion","PesoGuiaIdentificacion"],"properties":{"NumeroGuiaIdentificacion":{"type":"string","minLength":10,"maxLength":30,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].GuiasIdentificacion.items.[INDEX].NumeroGuiaIdentificacion","typeLabel":"string"},"DescripGuiaIdentificacion":{"type":"string","minLength":1,"maxLength":1000,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].GuiasIdentificacion.items.[INDEX].DescripGuiaIdentificacion","typeLabel":"string"},"PesoGuiaIdentificacion":{"type":"number","minimum":0.001,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].GuiasIdentificacion.items.[INDEX].PesoGuiaIdentificacion","typeLabel":"number"}},"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].GuiasIdentificacion.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].GuiasIdentificacion","typeLabel":"object[]"},"CantidadTransporta":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["Cantidad","IDOrigen","IDDestino"],"properties":{"Cantidad":{"type":"number","minimum":0.000001,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CantidadTransporta.items.[INDEX].Cantidad","typeLabel":"number"},"IDOrigen":{"type":"string","pattern":"^OR[0-9]{6}$","isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CantidadTransporta.items.[INDEX].IDOrigen","typeLabel":"string"},"IDDestino":{"type":"string","pattern":"^DE[0-9]{6}$","isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CantidadTransporta.items.[INDEX].IDDestino","typeLabel":"string"}},"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CantidadTransporta.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX].CantidadTransporta","typeLabel":"object[]"}},"uniqueKey":"carta_porte.Mercancias.Mercancia.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"carta_porte.Mercancias.Mercancia","typeLabel":"object[]"},"PesoNetoTotal":{"type":"number","minimum":0.001,"uniqueKey":"carta_porte.Mercancias.PesoNetoTotal","typeLabel":"number"},"LogisticaInversaRecoleccionDevolucion":{"type":"string","enum":["Sí","Si"],"uniqueKey":"carta_porte.Mercancias.LogisticaInversaRecoleccionDevolucion","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"carta_porte.Mercancias","typeLabel":"object"},"FiguraTransporte":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["TipoFigura","NombreFigura"],"properties":{"TipoFigura":{"type":"string","enum":["01","02","03","04","05"],"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].TipoFigura","typeLabel":"enum\u003cstring>"},"NombreFigura":{"type":"string","minLength":1,"maxLength":254,"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].NombreFigura","typeLabel":"string"},"RFCFigura":{"type":"string","maxLength":13,"pattern":"^$|^(?=[\\s\\S]{12,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].RFCFigura","typeLabel":"string"},"NumLicencia":{"type":"string","maxLength":16,"pattern":"^$|^(?=[\\s\\S]{6,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].NumLicencia","typeLabel":"string"},"NumRegIdTribFigura":{"type":"string","maxLength":40,"pattern":"^$|^(?=[\\s\\S]{6,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].NumRegIdTribFigura","typeLabel":"string"},"ResidenciaFiscalFigura":{"type":"string","maxLength":3,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].ResidenciaFiscalFigura","typeLabel":"string"},"PartesTransporte":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["ParteTransporte"],"properties":{"ParteTransporte":{"type":"string","enum":["PT01","PT02","PT03","PT04","PT05","PT06","PT07","PT08","PT09","PT10","PT11","PT12"],"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].PartesTransporte.items.[INDEX].ParteTransporte","typeLabel":"enum\u003cstring>"}},"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].PartesTransporte.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].PartesTransporte","typeLabel":"object[]"},"Domicilio":{"type":"object","additionalProperties":false,"required":["Estado","Pais","CodigoPostal"],"properties":{"Estado":{"type":"string","minLength":1,"maxLength":30,"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Estado","typeLabel":"string"},"Pais":{"type":"string","minLength":3,"maxLength":3,"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Pais","typeLabel":"string"},"CodigoPostal":{"type":"string","minLength":1,"maxLength":12,"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.CodigoPostal","typeLabel":"string"},"Calle":{"type":"string","maxLength":100,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Calle","typeLabel":"string"},"NumeroExterior":{"type":"string","maxLength":55,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.NumeroExterior","typeLabel":"string"},"NumeroInterior":{"type":"string","maxLength":55,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.NumeroInterior","typeLabel":"string"},"Colonia":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Colonia","typeLabel":"string"},"Localidad":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Localidad","typeLabel":"string"},"Referencia":{"type":"string","maxLength":250,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Referencia","typeLabel":"string"},"Municipio":{"type":"string","maxLength":120,"pattern":"^$|^(?=[\\s\\S]{1,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio.Municipio","typeLabel":"string"}},"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX].Domicilio","typeLabel":"object"}},"uniqueKey":"carta_porte.FiguraTransporte.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"carta_porte.FiguraTransporte","typeLabel":"object[]"},"Autotransporte":{"type":"object","additionalProperties":false,"required":["PermSCT","NumPermisoSCT","IdentificacionVehicular","Seguros"],"properties":{"PermSCT":{"type":"string","minLength":1,"maxLength":6,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.PermSCT","typeLabel":"string"},"NumPermisoSCT":{"type":"string","minLength":1,"maxLength":50,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.NumPermisoSCT","typeLabel":"string"},"IdentificacionVehicular":{"type":"object","additionalProperties":false,"required":["ConfigVehicular","PesoBrutoVehicular","PlacaVM","AnioModeloVM"],"properties":{"ConfigVehicular":{"type":"string","minLength":1,"maxLength":8,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.IdentificacionVehicular.ConfigVehicular","typeLabel":"string"},"PesoBrutoVehicular":{"type":"number","minimum":0.01,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.IdentificacionVehicular.PesoBrutoVehicular","typeLabel":"number"},"PlacaVM":{"type":"string","pattern":"^[^(?!.*\\s)-]{5,7}$","isRequired":true,"uniqueKey":"carta_porte.Autotransporte.IdentificacionVehicular.PlacaVM","typeLabel":"string"},"AnioModeloVM":{"type":"number","maximum":2099,"minimum":1900,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.IdentificacionVehicular.AnioModeloVM","typeLabel":"number"}},"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.IdentificacionVehicular","typeLabel":"object"},"Seguros":{"type":"object","additionalProperties":false,"required":["AseguraRespCivil","PolizaRespCivil"],"properties":{"AseguraRespCivil":{"type":"string","minLength":3,"maxLength":50,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.Seguros.AseguraRespCivil","typeLabel":"string"},"PolizaRespCivil":{"type":"string","minLength":3,"maxLength":30,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.Seguros.PolizaRespCivil","typeLabel":"string"},"AseguraMedAmbiente":{"type":"string","maxLength":50,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Autotransporte.Seguros.AseguraMedAmbiente","typeLabel":"string"},"PolizaMedAmbiente":{"type":"string","maxLength":30,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Autotransporte.Seguros.PolizaMedAmbiente","typeLabel":"string"},"AseguraCarga":{"type":"string","maxLength":50,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Autotransporte.Seguros.AseguraCarga","typeLabel":"string"},"PolizaCarga":{"type":"string","maxLength":30,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.Autotransporte.Seguros.PolizaCarga","typeLabel":"string"},"PrimaSeguro":{"type":"number","minimum":0,"uniqueKey":"carta_porte.Autotransporte.Seguros.PrimaSeguro","typeLabel":"number"}},"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.Seguros","typeLabel":"object"},"Remolques":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["SubTipoRem","Placa"],"properties":{"SubTipoRem":{"type":"string","minLength":1,"maxLength":6,"isRequired":true,"uniqueKey":"carta_porte.Autotransporte.Remolques.items.[INDEX].SubTipoRem","typeLabel":"string"},"Placa":{"type":"string","pattern":"^[^(?!.*\\s)-]{5,7}$","isRequired":true,"uniqueKey":"carta_porte.Autotransporte.Remolques.items.[INDEX].Placa","typeLabel":"string"}},"uniqueKey":"carta_porte.Autotransporte.Remolques.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":2,"uniqueKey":"carta_porte.Autotransporte.Remolques","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"carta_porte.Autotransporte","typeLabel":"object"},"EntradaSalidaMerc":{"type":"string","enum":["Entrada","Salida"],"uniqueKey":"carta_porte.EntradaSalidaMerc","typeLabel":"enum\u003cstring>"},"PaisOrigenDestino":{"type":"string","maxLength":3,"pattern":"^$|^(?=[\\s\\S]{3,})(?:[\\s\\S]*$)","uniqueKey":"carta_porte.PaisOrigenDestino","typeLabel":"string"},"ViaEntradaSalida":{"type":"string","enum":["01","02","03","04"],"uniqueKey":"carta_porte.ViaEntradaSalida","typeLabel":"enum\u003cstring>"},"RegistroISTMO":{"type":"string","enum":["Sí","Si"],"uniqueKey":"carta_porte.RegistroISTMO","typeLabel":"enum\u003cstring>"},"UbicacionPoloOrigen":{"type":"string","enum":["01","02","03","04","05","06"],"uniqueKey":"carta_porte.UbicacionPoloOrigen","typeLabel":"enum\u003cstring>"},"UbicacionPoloDestino":{"type":"string","enum":["01","02","03","04","05","06"],"uniqueKey":"carta_porte.UbicacionPoloDestino","typeLabel":"enum\u003cstring>"},"RegimenesAduaneros":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["RegimenAduanero"],"properties":{"RegimenAduanero":{"type":"string","enum":["IMD","EXD","ITR","ITE","ETR","ETE","DFI","RFE","RFS","TRA"],"isRequired":true,"uniqueKey":"carta_porte.RegimenesAduaneros.items.[INDEX].RegimenAduanero","typeLabel":"enum\u003cstring>"}},"uniqueKey":"carta_porte.RegimenesAduaneros.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":10,"uniqueKey":"carta_porte.RegimenesAduaneros","typeLabel":"object[]"}},"uniqueKey":"carta_porte","typeLabel":"object"},"related_documents":{"oneOf":[{"description":"Earlier documents this invoice relates to. In Mexico, `relationship` is a SAT\nCFDI relationship code and `documents` lists fiscal UUIDs.\n\n**Colombia, debit note** (`document_kind: debit_note`): exactly one entry, with\n`relationship: \"02\"` and one document: the invoice being debited, given as its\n`uuid` (CUFE) or its DIAN number (for example `FV69`), or the credit note the debit\nnote reverses, given the same way (for example `NCP27`).\n","type":"array","items":{"type":"object","additionalProperties":false,"required":["relationship","documents"],"properties":{"relationship":{"example":"04","type":"string","isRequired":true,"uniqueKey":"related_documents.oneOf.0.items.[INDEX].relationship","typeLabel":"string"},"documents":{"type":"array","items":{"example":"12345678-1234-1234-1234-123456789012","type":"string","uniqueKey":"related_documents.oneOf.0.items.[INDEX].documents.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"related_documents.oneOf.0.items.[INDEX].documents","typeLabel":"string[]"}},"uniqueKey":"related_documents.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"related_documents.oneOf.0","typeLabel":"object[]"},{"description":"Earlier documents this invoice relates to. In Mexico, `relationship` is a SAT\nCFDI relationship code and `documents` lists fiscal UUIDs.\n\n**Colombia, debit note** (`document_kind: debit_note`): exactly one entry, with\n`relationship: \"02\"` and one document: the invoice being debited, given as its\n`uuid` (CUFE) or its DIAN number (for example `FV69`), or the credit note the debit\nnote reverses, given the same way (for example `NCP27`).\n","type":"null","items":{"type":"object","additionalProperties":false,"required":["relationship","documents"],"properties":{"relationship":{"example":"04","type":"string"},"documents":{"type":"array","items":{"example":"12345678-1234-1234-1234-123456789012","type":"string"}}}},"uniqueKey":"related_documents.oneOf.1","typeLabel":"null"}],"uniqueKey":"related_documents","typeLabel":"object[] | null"},"invoice_pdf_notes":{"example":"Additional notes for PDF","type":"string","uniqueKey":"invoice_pdf_notes","typeLabel":"string"},"pdf_fields":{"oneOf":[{"description":"**Colombia (DIAN) only.** Label/value pairs printed beside the dates on the PDF gigstack\ndraws for teams that use their own Colombian PDF, for example a purchase order number.\nThey are printed only: they are not part of the DIAN XML. Up to 10. A field with the same\nlabel as one the team prints from `metadata` replaces it; with an empty `value` it hides\nit on this invoice. Ignored in Mexico.\n","type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"example":"Número de compra","type":"string","minLength":1,"maxLength":60,"isRequired":true,"uniqueKey":"pdf_fields.oneOf.0.items.[INDEX].label","typeLabel":"string"},"value":{"oneOf":[{"description":"Missing or empty hides a team field with the same label on this invoice","example":"OC-2026-0458","type":"string","maxLength":300,"uniqueKey":"pdf_fields.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"description":"Missing or empty hides a team field with the same label on this invoice","example":"OC-2026-0458","type":"null","maxLength":300,"uniqueKey":"pdf_fields.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"uniqueKey":"pdf_fields.oneOf.0.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"pdf_fields.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"pdf_fields.oneOf.0","typeLabel":"object[]"},{"description":"**Colombia (DIAN) only.** Label/value pairs printed beside the dates on the PDF gigstack\ndraws for teams that use their own Colombian PDF, for example a purchase order number.\nThey are printed only: they are not part of the DIAN XML. Up to 10. A field with the same\nlabel as one the team prints from `metadata` replaces it; with an empty `value` it hides\nit on this invoice. Ignored in Mexico.\n","type":"null","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"example":"Número de compra","type":"string","minLength":1,"maxLength":60},"value":{"oneOf":[{"description":"Missing or empty hides a team field with the same label on this invoice","example":"OC-2026-0458","type":"string","maxLength":300},{"description":"Missing or empty hides a team field with the same label on this invoice","example":"OC-2026-0458","type":"null","maxLength":300}]}}},"uniqueKey":"pdf_fields.oneOf.1","typeLabel":"null"}],"uniqueKey":"pdf_fields","typeLabel":"object[] | null"},"addenda":{"oneOf":[{"example":"\u003caddenda>...\u003c/addenda>","type":"string","uniqueKey":"addenda.oneOf.0","typeLabel":"string"},{"example":"\u003caddenda>...\u003c/addenda>","type":"null","uniqueKey":"addenda.oneOf.1","typeLabel":"null"}],"uniqueKey":"addenda","typeLabel":"string | null"},"send_email":{"description":"Whether to send the document via email to the client. Defaults to `true`.","example":true,"type":"boolean","uniqueKey":"send_email","typeLabel":"boolean"},"ignore_emails":{"oneOf":[{"description":"Suppress all notification emails for this document. Takes precedence over\n`send_email` — when `true`, no mail is sent even if `send_email` is `true`.\n","example":false,"type":"boolean","uniqueKey":"ignore_emails.oneOf.0","typeLabel":"boolean"},{"description":"Suppress all notification emails for this document. Takes precedence over\n`send_email` — when `true`, no mail is sent even if `send_email` is `true`.\n","example":false,"type":"null","uniqueKey":"ignore_emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"ignore_emails","typeLabel":"boolean | null"},"emails":{"example":["client@example.com"],"type":"array","items":{"type":"string","format":"email","uniqueKey":"emails.items.[INDEX]","typeLabel":"string\u003cemail>"},"uniqueKey":"emails","typeLabel":"string\u003cemail>[]"},"metadata":{"description":"Custom key-value metadata. Colombia: the team setting `order_reference` (e.g. {metadata.orderId?}) can send a metadata value to DIAN as the sales invoice's purchase order.","type":"object","additionalProperties":true,"properties":{},"example":{"orderId":"OC-4501"},"uniqueKey":"metadata","typeLabel":"object"},"automation_type":{"description":"Optional. Invoice automation type:\n- `payment`: Create invoice with payment automation\n- `none`: No automation, create invoice only\n","example":"payment","type":"string","enum":["payment","none"],"uniqueKey":"automation_type","typeLabel":"enum\u003cstring>"},"global":{"oneOf":[{"description":"Factura global period. Required when the client is PUBLICO EN GENERAL (XAXX010101000); without it the invoice is refused instead of being stamped for the current month.","type":"object","additionalProperties":false,"required":["periodicity","months","year"],"properties":{"periodicity":{"description":"Periodicity of a factura global (`InformacionGlobal/@Periodicidad`): the SAT\n`c_Periodicidad` code or its name — `01`/`day`, `02`/`week`, `03`/`fortnight`,\n`04`/`month`, `05`/`two_months`. gigstack stores and returns the name. With `05`,\n`months` must be a bimester (`13`–`18`); otherwise a month (`01`–`12`).\n","enum":["01","02","03","04","05","day","week","fortnight","month","two_months"],"example":"04","type":"string","isRequired":true,"uniqueKey":"global.oneOf.0.periodicity","typeLabel":"enum\u003cstring>"},"months":{"example":"01","type":"string","isRequired":true,"uniqueKey":"global.oneOf.0.months","typeLabel":"string"},"year":{"example":2024,"type":"integer","isRequired":true,"uniqueKey":"global.oneOf.0.year","typeLabel":"integer"}},"uniqueKey":"global.oneOf.0","typeLabel":"object"},{"description":"Factura global period. Required when the client is PUBLICO EN GENERAL (XAXX010101000); without it the invoice is refused instead of being stamped for the current month.","type":"null","additionalProperties":false,"required":["periodicity","months","year"],"properties":{"periodicity":{"description":"Periodicity of a factura global (`InformacionGlobal/@Periodicidad`): the SAT\n`c_Periodicidad` code or its name — `01`/`day`, `02`/`week`, `03`/`fortnight`,\n`04`/`month`, `05`/`two_months`. gigstack stores and returns the name. With `05`,\n`months` must be a bimester (`13`–`18`); otherwise a month (`01`–`12`).\n","enum":["01","02","03","04","05","day","week","fortnight","month","two_months"],"example":"04","type":"string"},"months":{"example":"01","type":"string"},"year":{"example":2024,"type":"integer"}},"uniqueKey":"global.oneOf.1","typeLabel":"null"}],"uniqueKey":"global","typeLabel":"object | null"},"payment_due_date":{"description":"Colombia (DIAN) only. Due date of a credit invoice (`payment_method: PPD`), as YYYY-MM-DD. Required for a Colombian PPD invoice, on or after the stamping day in Bogotá; printed on the DIAN document as \"Fecha de vencimiento\", with the term (\"Plazo: N días\") at the start of the observations. Refused for other countries and for PUE.","example":"2026-11-19","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","uniqueKey":"payment_due_date","typeLabel":"string"},"document_kind":{"oneOf":[{"description":"**Colombia (DIAN) only.** Which document to issue. Omitted, `null` or `invoice` issues a\nregular sales invoice (factura de venta). `debit_note` issues a DIAN debit note (nota débito)\nthat charges an additional amount on an invoice you already issued. A debit note:\n\n- requires `motive`;\n- must reference exactly one invoice: `related_documents: [{ \"relationship\": \"02\",\n \"documents\": [\"\u003cinvoice uuid or DIAN number>\"] }]`. The referenced document must be a sales\n invoice of the same team and mode, or a credit note it reverses (see `billing_period`),\n never another debit note;\n- cannot be combined with `global`;\n- carries in `items` only the **additional** amounts being charged (interest, collection\n costs, the price increase), not the original invoice's items.\n\nTeams that don't invoice in Colombia get `400` for `debit_note`. These checks run before a\ncredit is consumed or a folio reserved.\n","example":"debit_note","type":"string","enum":["invoice","debit_note",null],"uniqueKey":"document_kind.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"**Colombia (DIAN) only.** Which document to issue. Omitted, `null` or `invoice` issues a\nregular sales invoice (factura de venta). `debit_note` issues a DIAN debit note (nota débito)\nthat charges an additional amount on an invoice you already issued. A debit note:\n\n- requires `motive`;\n- must reference exactly one invoice: `related_documents: [{ \"relationship\": \"02\",\n \"documents\": [\"\u003cinvoice uuid or DIAN number>\"] }]`. The referenced document must be a sales\n invoice of the same team and mode, or a credit note it reverses (see `billing_period`),\n never another debit note;\n- cannot be combined with `global`;\n- carries in `items` only the **additional** amounts being charged (interest, collection\n costs, the price increase), not the original invoice's items.\n\nTeams that don't invoice in Colombia get `400` for `debit_note`. These checks run before a\ncredit is consumed or a folio reserved.\n","example":"debit_note","type":"null","enum":["invoice","debit_note",null],"uniqueKey":"document_kind.oneOf.1","typeLabel":"null"}],"uniqueKey":"document_kind","typeLabel":"enum\u003cstring> | null"},"motive":{"oneOf":[{"description":"**Colombia (DIAN) only. Required when `document_kind` is `debit_note`**, refused (`400`) on\nany other invoice. The DIAN concept of the debit note, by code or by name:\n\n| Code | Name | DIAN concept |\n| --- | --- | --- |\n| `1` | `interest` | Intereses |\n| `2` | `collection_expenses` | Gastos por cobrar |\n| `3` | `value_change` | Cambio del valor |\n| `4` | `other` | Otros |\n\nThese codes are not the credit-note or cancellation motives: `2` means \"Gastos por cobrar\"\nhere.\n","example":"1","type":"string","enum":["1","2","3","4","interest","collection_expenses","value_change","other",null],"uniqueKey":"motive.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"**Colombia (DIAN) only. Required when `document_kind` is `debit_note`**, refused (`400`) on\nany other invoice. The DIAN concept of the debit note, by code or by name:\n\n| Code | Name | DIAN concept |\n| --- | --- | --- |\n| `1` | `interest` | Intereses |\n| `2` | `collection_expenses` | Gastos por cobrar |\n| `3` | `value_change` | Cambio del valor |\n| `4` | `other` | Otros |\n\nThese codes are not the credit-note or cancellation motives: `2` means \"Gastos por cobrar\"\nhere.\n","example":"1","type":"null","enum":["1","2","3","4","interest","collection_expenses","value_change","other",null],"uniqueKey":"motive.oneOf.1","typeLabel":"null"}],"uniqueKey":"motive","typeLabel":"enum\u003cstring> | null"},"billing_period":{"oneOf":[{"description":"**Colombia (DIAN) only, debit notes that reverse a credit note.** The period the debit\nnote covers. **Required when the debit note reverses a credit note** (`related_documents`\nnames a credit note): DIAN then issues it as a debit note without an invoice reference\n(operation type 32), which must carry a billing period. Refused (`400`) on a debit note\nthat debits a sales invoice and on any other invoice. Both checks run before a credit is\nconsumed or a folio reserved.\n\n`start_time` defaults to `00:00:00` and `end_time` to `23:59:59`; the dates must be days that\nexist and the period must end no earlier than it starts.\n","type":"object","additionalProperties":false,"required":["start_date","end_date"],"properties":{"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-09-01","isRequired":true,"uniqueKey":"billing_period.oneOf.0.start_date","typeLabel":"string"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-09-30","isRequired":true,"uniqueKey":"billing_period.oneOf.0.end_date","typeLabel":"string"},"start_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$","example":"00:00:00","uniqueKey":"billing_period.oneOf.0.start_time","typeLabel":"string"},"end_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$","example":"23:59:59","uniqueKey":"billing_period.oneOf.0.end_time","typeLabel":"string"}},"uniqueKey":"billing_period.oneOf.0","typeLabel":"object"},{"description":"**Colombia (DIAN) only, debit notes that reverse a credit note.** The period the debit\nnote covers. **Required when the debit note reverses a credit note** (`related_documents`\nnames a credit note): DIAN then issues it as a debit note without an invoice reference\n(operation type 32), which must carry a billing period. Refused (`400`) on a debit note\nthat debits a sales invoice and on any other invoice. Both checks run before a credit is\nconsumed or a folio reserved.\n\n`start_time` defaults to `00:00:00` and `end_time` to `23:59:59`; the dates must be days that\nexist and the period must end no earlier than it starts.\n","type":"null","additionalProperties":false,"required":["start_date","end_date"],"properties":{"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-09-01"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-09-30"},"start_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$","example":"00:00:00"},"end_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$","example":"23:59:59"}},"uniqueKey":"billing_period.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_period","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"mexico_invoice":{"title":"mexico_invoice","summary":"Income invoice (Mexico)","value":{"automation_type":"payment","currency":"MXN","use":"G03","payment_form":"03","payment_method":"PUE","client":{"id":"client_1234567890"},"items":[{"description":"Professional consulting services","sku":"CONS-001","product_key":"80141503","unit_key":"ACT","unit_name":"Actividad","unit_price":1500,"taxability":"02","taxes":[{"type":"IVA","rate":0.16,"factor":"Tasa","withholding":false,"inclusive":false}],"quantity":1}],"send_email":true,"emails":["cliente@empresa.com"],"metadata":{"project_id":"PROJ-2024-001","department":"consulting"}}},"colombia_debit_note":{"title":"colombia_debit_note","summary":"Debit note on invoice FV69 (Colombia)","description":"Charges COP 50,000 of collection expenses plus 19% IVA on the sales invoice\n`FV69`. `use` is only the compatibility string the shared schema requires; it is\nnot sent to DIAN.\n","value":{"document_kind":"debit_note","motive":"collection_expenses","related_documents":[{"relationship":"02","documents":["FV69"]}],"client":{"id":"client_1234567890"},"currency":"COP","exchange_rate":1,"use":"G03","payment_form":"03","payment_method":"PUE","automation_type":"none","items":[{"description":"Gastos de cobranza factura FV69","product_key":"80101500","quantity":1,"unit_price":50000,"taxes":[{"type":"IVA","rate":0.19,"factor":"Tasa","withholding":false,"inclusive":false}]}],"send_email":false,"idempotency_key":"debit-note-fv69-collection-001"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"14c5d510-70e5-405c-9119-ca24372fed9f":{"description":"Invoice created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Invoice created successfully","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"uuid":{"type":"string","example":"B0C3E4F2-1A2B-4C5D-9E8F-0123456789AB","description":"SAT UUID (folio fiscal)","uniqueKey":"data.uuid","typeLabel":"string"},"client":{"type":"object","required":["id","email","from","livemode","owner","team","created_at"],"properties":{"id":{"type":"string","example":"client_1234567890","description":"Unique client identifier","isRequired":true,"uniqueKey":"data.client.id","typeLabel":"string"},"email":{"oneOf":[{"type":"string","format":"email","example":"juan.perez@ejemplo.com","description":"Client email address","isRequired":true,"uniqueKey":"data.client.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","example":"juan.perez@ejemplo.com","description":"Client email address","isRequired":true,"uniqueKey":"data.client.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.client.email","typeLabel":"string\u003cemail> | null"},"from":{"type":"string","example":"api","description":"Source of client creation. Documents created through the public API are stored with `api`; requests carrying the `X-Gigstack-Client: mcp` header (the gigstack MCP server) are stored with `mcp` and behave identically.","isRequired":true,"uniqueKey":"data.client.from","typeLabel":"string"},"livemode":{"type":"boolean","example":true,"description":"Whether this client is in live mode","isRequired":true,"uniqueKey":"data.client.livemode","typeLabel":"boolean"},"owner":{"type":"string","example":"user_1234567890","description":"User ID who owns this client","isRequired":true,"uniqueKey":"data.client.owner","typeLabel":"string"},"team":{"type":"string","example":"team_1234567890","description":"Team ID this client belongs to","isRequired":true,"uniqueKey":"data.client.team","typeLabel":"string"},"created_at":{"type":"number","example":1677651234,"description":"Unix timestamp of client creation","isRequired":true,"uniqueKey":"data.client.created_at","typeLabel":"number"},"address":{"type":"object","additionalProperties":false,"properties":{"country":{"oneOf":[{"example":"MEX","type":"string","maxLength":3,"uniqueKey":"data.client.address.country.oneOf.0","typeLabel":"string"},{"example":"MEX","type":"null","maxLength":3,"uniqueKey":"data.client.address.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.country","typeLabel":"string | null"},"street":{"oneOf":[{"example":"Av. Insurgentes Sur","type":"string","uniqueKey":"data.client.address.street.oneOf.0","typeLabel":"string"},{"example":"Av. Insurgentes Sur","type":"null","uniqueKey":"data.client.address.street.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.street","typeLabel":"string | null"},"zip":{"oneOf":[{"example":"03100","type":"string","uniqueKey":"data.client.address.zip.oneOf.0","typeLabel":"string"},{"example":"03100","type":"null","uniqueKey":"data.client.address.zip.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.zip","typeLabel":"string | null"},"city":{"oneOf":[{"example":"Ciudad de México","type":"string","uniqueKey":"data.client.address.city.oneOf.0","typeLabel":"string"},{"example":"Ciudad de México","type":"null","uniqueKey":"data.client.address.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.city","typeLabel":"string | null"},"state":{"oneOf":[{"example":"CDMX","type":"string","uniqueKey":"data.client.address.state.oneOf.0","typeLabel":"string"},{"example":"CDMX","type":"null","uniqueKey":"data.client.address.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.state","typeLabel":"string | null"},"exterior":{"oneOf":[{"example":"123","type":"string","uniqueKey":"data.client.address.exterior.oneOf.0","typeLabel":"string"},{"example":"123","type":"null","uniqueKey":"data.client.address.exterior.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.exterior","typeLabel":"string | null"},"interior":{"oneOf":[{"example":"4B","type":"string","uniqueKey":"data.client.address.interior.oneOf.0","typeLabel":"string"},{"example":"4B","type":"null","uniqueKey":"data.client.address.interior.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.interior","typeLabel":"string | null"},"municipality":{"oneOf":[{"example":"Benito Juárez","type":"string","uniqueKey":"data.client.address.municipality.oneOf.0","typeLabel":"string"},{"example":"Benito Juárez","type":"null","uniqueKey":"data.client.address.municipality.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.municipality","typeLabel":"string | null"},"neighborhood":{"oneOf":[{"example":"Del Valle","type":"string","uniqueKey":"data.client.address.neighborhood.oneOf.0","typeLabel":"string"},{"example":"Del Valle","type":"null","uniqueKey":"data.client.address.neighborhood.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.address.neighborhood","typeLabel":"string | null"}},"uniqueKey":"data.client.address","typeLabel":"object"},"name":{"oneOf":[{"type":"string","example":"Juan Pérez García","description":"Client name","uniqueKey":"data.client.name.oneOf.0","typeLabel":"string"},{"type":"null","example":"Juan Pérez García","description":"Client name","uniqueKey":"data.client.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","example":"Empresa SA de CV","description":"Client company name","uniqueKey":"data.client.company.oneOf.0","typeLabel":"string"},{"type":"null","example":"Empresa SA de CV","description":"Client company name","uniqueKey":"data.client.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.company","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","example":"+52 55 1234 5678","description":"Client phone number","uniqueKey":"data.client.phone.oneOf.0","typeLabel":"string"},{"type":"null","example":"+52 55 1234 5678","description":"Client phone number","uniqueKey":"data.client.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.phone","typeLabel":"string | null"},"bcc":{"oneOf":[{"type":"array","items":{"type":"string","format":"email","uniqueKey":"data.client.bcc.oneOf.0.items.[INDEX]","typeLabel":"string\u003cemail>"},"example":["admin@empresa.com"],"description":"BCC email addresses for client communications","uniqueKey":"data.client.bcc.oneOf.0","typeLabel":"string\u003cemail>[]"},{"type":"null","items":{"type":"string","format":"email"},"example":["admin@empresa.com"],"description":"BCC email addresses for client communications","uniqueKey":"data.client.bcc.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.bcc","typeLabel":"string\u003cemail>[] | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"example":{"custom_field":"value"},"description":"Additional metadata for the client","uniqueKey":"data.client.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"example":{"custom_field":"value"},"description":"Additional metadata for the client","uniqueKey":"data.client.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.metadata","typeLabel":"object | null"},"is_valid":{"oneOf":[{"type":"boolean","example":true,"description":"Whether the client data is valid","uniqueKey":"data.client.is_valid.oneOf.0","typeLabel":"boolean"},{"type":"null","example":true,"description":"Whether the client data is valid","uniqueKey":"data.client.is_valid.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.is_valid","typeLabel":"boolean | null"},"legal_name":{"oneOf":[{"type":"string","example":"Juan Pérez García","description":"Legal name for tax purposes","uniqueKey":"data.client.legal_name.oneOf.0","typeLabel":"string"},{"type":"null","example":"Juan Pérez García","description":"Legal name for tax purposes","uniqueKey":"data.client.legal_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.legal_name","typeLabel":"string | null"},"tax_id":{"oneOf":[{"type":"string","example":"PEGJ800101ABC","description":"RFC (Tax ID) for Mexican tax compliance","uniqueKey":"data.client.tax_id.oneOf.0","typeLabel":"string"},{"type":"null","example":"PEGJ800101ABC","description":"RFC (Tax ID) for Mexican tax compliance","uniqueKey":"data.client.tax_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.tax_id","typeLabel":"string | null"},"use":{"oneOf":[{"type":"string","example":"G03","description":"CFDI use code","uniqueKey":"data.client.use.oneOf.0","typeLabel":"string"},{"type":"null","example":"G03","description":"CFDI use code","uniqueKey":"data.client.use.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.use","typeLabel":"string | null"},"tax_system":{"oneOf":[{"type":"string","example":"601","description":"SAT tax system code","uniqueKey":"data.client.tax_system.oneOf.0","typeLabel":"string"},{"type":"null","example":"601","description":"SAT tax system code","uniqueKey":"data.client.tax_system.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.tax_system","typeLabel":"string | null"},"efos":{"oneOf":[{"type":"object","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":true,"description":"true = RFC is NOT on the EFOS (Art. 69-B) blacklist (safe). false = RFC appears on the blacklist.","uniqueKey":"data.client.efos.oneOf.0.is_valid.oneOf.0","typeLabel":"boolean"},{"type":"null","example":true,"description":"true = RFC is NOT on the EFOS (Art. 69-B) blacklist (safe). false = RFC appears on the blacklist.","uniqueKey":"data.client.efos.oneOf.0.is_valid.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.efos.oneOf.0.is_valid","typeLabel":"boolean | null"}},"description":"EFOS (Art. 69-B CFF) blacklist check. Independent from `fiscal_validation` — an RFC can fail one and pass the other.","uniqueKey":"data.client.efos.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":true,"description":"true = RFC is NOT on the EFOS (Art. 69-B) blacklist (safe). false = RFC appears on the blacklist."},{"type":"null","example":true,"description":"true = RFC is NOT on the EFOS (Art. 69-B) blacklist (safe). false = RFC appears on the blacklist."}]}},"description":"EFOS (Art. 69-B CFF) blacklist check. Independent from `fiscal_validation` — an RFC can fail one and pass the other.","uniqueKey":"data.client.efos.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.efos","typeLabel":"object | null"},"fiscal_validation":{"oneOf":[{"type":"object","description":"Result of attempting to stamp a test CFDI against the PAC. Only returned on create/update/validate; not persisted on the client doc.","properties":{"status":{"type":"string","enum":["valid","not_valid","skipped"],"example":"not_valid","description":"`valid` = PAC accepted; `not_valid` = PAC rejected (RFC/legal_name/CP do not match SAT registry); `skipped` = required fields missing.","uniqueKey":"data.client.fiscal_validation.oneOf.0.status","typeLabel":"enum\u003cstring>"},"message":{"oneOf":[{"type":"string","example":"Fiscal info validation failed. El campo DomicilioFiscalReceptor del receptor, debe pertenecer al nombre asociado al RFC registrado en el campo Rfc del Receptor.","description":"Human-readable reason when status is not_valid or skipped.","uniqueKey":"data.client.fiscal_validation.oneOf.0.message.oneOf.0","typeLabel":"string"},{"type":"null","example":"Fiscal info validation failed. El campo DomicilioFiscalReceptor del receptor, debe pertenecer al nombre asociado al RFC registrado en el campo Rfc del Receptor.","description":"Human-readable reason when status is not_valid or skipped.","uniqueKey":"data.client.fiscal_validation.oneOf.0.message.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.fiscal_validation.oneOf.0.message","typeLabel":"string | null"}},"uniqueKey":"data.client.fiscal_validation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Result of attempting to stamp a test CFDI against the PAC. Only returned on create/update/validate; not persisted on the client doc.","properties":{"status":{"type":"string","enum":["valid","not_valid","skipped"],"example":"not_valid","description":"`valid` = PAC accepted; `not_valid` = PAC rejected (RFC/legal_name/CP do not match SAT registry); `skipped` = required fields missing."},"message":{"oneOf":[{"type":"string","example":"Fiscal info validation failed. El campo DomicilioFiscalReceptor del receptor, debe pertenecer al nombre asociado al RFC registrado en el campo Rfc del Receptor.","description":"Human-readable reason when status is not_valid or skipped."},{"type":"null","example":"Fiscal info validation failed. El campo DomicilioFiscalReceptor del receptor, debe pertenecer al nombre asociado al RFC registrado en el campo Rfc del Receptor.","description":"Human-readable reason when status is not_valid or skipped."}]}},"uniqueKey":"data.client.fiscal_validation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.fiscal_validation","typeLabel":"object | null"},"sat_status":{"oneOf":[{"type":"object","description":"Unified SAT risk signal combining the EFOS check with 20 SAT Datos Abiertos lists (Art. 69, 69-B, 69-B Bis)\nsynced weekly into Firestore. A hit on any \"risky\" list (Cancelados, No localizados, CSD sin efectos, Definitivos 69-B,\nPresuntos 69-B, etc.) or a failed EFOS check sets `is_risky: true`.\n","properties":{"is_risky":{"type":"boolean","example":true,"description":"true if any risky list hit OR `efos.is_valid === false`.","uniqueKey":"data.client.sat_status.oneOf.0.is_risky","typeLabel":"boolean"},"efos":{"oneOf":[{"type":"object","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":false,"uniqueKey":"data.client.sat_status.oneOf.0.efos.oneOf.0.is_valid.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"uniqueKey":"data.client.sat_status.oneOf.0.efos.oneOf.0.is_valid.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.sat_status.oneOf.0.efos.oneOf.0.is_valid","typeLabel":"boolean | null"}},"description":"EFOS check result (duplicated here for convenience).","uniqueKey":"data.client.sat_status.oneOf.0.efos.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":false},{"type":"null","example":false}]}},"description":"EFOS check result (duplicated here for convenience).","uniqueKey":"data.client.sat_status.oneOf.0.efos.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.sat_status.oneOf.0.efos","typeLabel":"object | null"},"hits":{"type":"array","description":"Every SAT list the RFC appears on, with the full row from the source CSV.","items":{"type":"object","properties":{"list":{"type":"string","example":"art_69b_definitivos","description":"List key (matches the source filename). See /sat_rfc_list_entries for all.","uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX].list","typeLabel":"string"},"label":{"type":"string","example":"Definitivos 69-B","uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX].label","typeLabel":"string"},"source":{"type":"string","enum":["art_69","art_69b","art_69b_bis"],"example":"art_69b","uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"is_risky":{"type":"boolean","example":true,"description":"Whether a hit on this specific list marks the RFC unsafe.","uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX].is_risky","typeLabel":"boolean"},"detail":{"type":"object","additionalProperties":true,"description":"Full SAT record (razón social, situación, dates, oficios DOF, etc.). Shape varies per list.","uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX].detail","typeLabel":"object"}},"uniqueKey":"data.client.sat_status.oneOf.0.hits.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.client.sat_status.oneOf.0.hits","typeLabel":"object[]"},"checked_at":{"type":"number","example":1776887458784,"description":"Unix timestamp (ms) of when this check was run.","uniqueKey":"data.client.sat_status.oneOf.0.checked_at","typeLabel":"number"}},"uniqueKey":"data.client.sat_status.oneOf.0","typeLabel":"object"},{"type":"null","description":"Unified SAT risk signal combining the EFOS check with 20 SAT Datos Abiertos lists (Art. 69, 69-B, 69-B Bis)\nsynced weekly into Firestore. A hit on any \"risky\" list (Cancelados, No localizados, CSD sin efectos, Definitivos 69-B,\nPresuntos 69-B, etc.) or a failed EFOS check sets `is_risky: true`.\n","properties":{"is_risky":{"type":"boolean","example":true,"description":"true if any risky list hit OR `efos.is_valid === false`."},"efos":{"oneOf":[{"type":"object","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":false},{"type":"null","example":false}]}},"description":"EFOS check result (duplicated here for convenience)."},{"type":"null","properties":{"is_valid":{"oneOf":[{"type":"boolean","example":false},{"type":"null","example":false}]}},"description":"EFOS check result (duplicated here for convenience)."}]},"hits":{"type":"array","description":"Every SAT list the RFC appears on, with the full row from the source CSV.","items":{"type":"object","properties":{"list":{"type":"string","example":"art_69b_definitivos","description":"List key (matches the source filename). See /sat_rfc_list_entries for all."},"label":{"type":"string","example":"Definitivos 69-B"},"source":{"type":"string","enum":["art_69","art_69b","art_69b_bis"],"example":"art_69b"},"is_risky":{"type":"boolean","example":true,"description":"Whether a hit on this specific list marks the RFC unsafe."},"detail":{"type":"object","additionalProperties":true,"description":"Full SAT record (razón social, situación, dates, oficios DOF, etc.). Shape varies per list."}}}},"checked_at":{"type":"number","example":1776887458784,"description":"Unix timestamp (ms) of when this check was run."}},"uniqueKey":"data.client.sat_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.sat_status","typeLabel":"object | null"},"defaults":{"oneOf":[{"type":"object","properties":{"keep_full_legal_name":{"oneOf":[{"type":"boolean","example":false,"description":"Keep full legal name in documents","uniqueKey":"data.client.defaults.oneOf.0.keep_full_legal_name.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"description":"Keep full legal name in documents","uniqueKey":"data.client.defaults.oneOf.0.keep_full_legal_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.defaults.oneOf.0.keep_full_legal_name","typeLabel":"boolean | null"},"issue_automatic_invoices":{"oneOf":[{"type":"boolean","example":false,"description":"Issue automatic invoices","uniqueKey":"data.client.defaults.oneOf.0.issue_automatic_invoices.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"description":"Issue automatic invoices","uniqueKey":"data.client.defaults.oneOf.0.issue_automatic_invoices.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.defaults.oneOf.0.issue_automatic_invoices","typeLabel":"boolean | null"},"issue_invoiceable_receipts":{"oneOf":[{"type":"boolean","example":true,"description":"Issue invoiceable receipts","uniqueKey":"data.client.defaults.oneOf.0.issue_invoiceable_receipts.oneOf.0","typeLabel":"boolean"},{"type":"null","example":true,"description":"Issue invoiceable receipts","uniqueKey":"data.client.defaults.oneOf.0.issue_invoiceable_receipts.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.defaults.oneOf.0.issue_invoiceable_receipts","typeLabel":"boolean | null"}},"description":"Client default settings","uniqueKey":"data.client.defaults.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"keep_full_legal_name":{"oneOf":[{"type":"boolean","example":false,"description":"Keep full legal name in documents"},{"type":"null","example":false,"description":"Keep full legal name in documents"}]},"issue_automatic_invoices":{"oneOf":[{"type":"boolean","example":false,"description":"Issue automatic invoices"},{"type":"null","example":false,"description":"Issue automatic invoices"}]},"issue_invoiceable_receipts":{"oneOf":[{"type":"boolean","example":true,"description":"Issue invoiceable receipts"},{"type":"null","example":true,"description":"Issue invoiceable receipts"}]}},"description":"Client default settings","uniqueKey":"data.client.defaults.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.defaults","typeLabel":"object | null"},"document_type":{"oneOf":[{"type":"string","description":"Colombia (DIAN) only: identification document code (`11`, `12`, `13`, `21`, `22`, `31`, `41`, `42`, `47`, `48`, `50`, `91`).","uniqueKey":"data.client.document_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"Colombia (DIAN) only: identification document code (`11`, `12`, `13`, `21`, `22`, `31`, `41`, `42`, `47`, `48`, `50`, `91`).","uniqueKey":"data.client.document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.document_type","typeLabel":"string | null"},"organization_type":{"oneOf":[{"type":"integer","description":"Colombia (DIAN) only: `1` legal entity, `2` natural person.","uniqueKey":"data.client.organization_type.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Colombia (DIAN) only: `1` legal entity, `2` natural person.","uniqueKey":"data.client.organization_type.oneOf.1","typeLabel":"string"},{"type":"object","enum":[null],"uniqueKey":"data.client.organization_type.oneOf.2","typeLabel":"object"},{"type":"null","enum":[null],"uniqueKey":"data.client.organization_type.oneOf.3","typeLabel":"null"}],"uniqueKey":"data.client.organization_type","typeLabel":"integer | string | object | null"},"tribute_code":{"oneOf":[{"type":"string","description":"Colombia (DIAN) only: `01` IVA responsible, `ZZ` not applicable.","uniqueKey":"data.client.tribute_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Colombia (DIAN) only: `01` IVA responsible, `ZZ` not applicable.","uniqueKey":"data.client.tribute_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.tribute_code","typeLabel":"string | null"},"fiscal_responsibilities":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"data.client.fiscal_responsibilities.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Colombia (DIAN) only: fiscal responsibilities (list 53), e.g. `O-13`, `R-99-PN`.","uniqueKey":"data.client.fiscal_responsibilities.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Colombia (DIAN) only: fiscal responsibilities (list 53), e.g. `O-13`, `R-99-PN`.","uniqueKey":"data.client.fiscal_responsibilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.fiscal_responsibilities","typeLabel":"string[] | null"},"dv":{"oneOf":[{"type":"string","description":"Colombia (DIAN) only: NIT verification digit (informational).","uniqueKey":"data.client.dv.oneOf.0","typeLabel":"string"},{"type":"null","description":"Colombia (DIAN) only: NIT verification digit (informational).","uniqueKey":"data.client.dv.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.dv","typeLabel":"string | null"},"municipality_code":{"oneOf":[{"type":"string","description":"Colombia (DIAN) only: 5-digit DANE municipality code.","uniqueKey":"data.client.municipality_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Colombia (DIAN) only: 5-digit DANE municipality code.","uniqueKey":"data.client.municipality_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.client.municipality_code","typeLabel":"string | null"}},"uniqueKey":"data.client","typeLabel":"object"},"created_at":{"type":"number","example":1677651234,"description":"Invoice creation timestamp","uniqueKey":"data.created_at","typeLabel":"number"},"currency":{"type":"string","example":"MXN","description":"Invoice currency","uniqueKey":"data.currency","typeLabel":"string"},"exchange_rate":{"type":"number","example":1,"description":"Exchange rate used","uniqueKey":"data.exchange_rate","typeLabel":"number"},"total":{"type":"number","example":1160,"description":"Total invoice amount","uniqueKey":"data.total","typeLabel":"number"},"subtotal":{"type":"number","example":1000,"description":"Subtotal before taxes","uniqueKey":"data.subtotal","typeLabel":"number"},"taxes":{"type":"number","example":160,"description":"Total tax amount","uniqueKey":"data.taxes","typeLabel":"number"},"discount":{"type":"number","example":0,"description":"Total discount amount","uniqueKey":"data.discount","typeLabel":"number"},"withholding_taxes":{"type":"number","example":0,"description":"Total withholding tax amount","uniqueKey":"data.withholding_taxes","typeLabel":"number"},"series":{"description":"Invoice series","example":"A","type":"string","uniqueKey":"data.series","typeLabel":"string"},"folio_number":{"type":"number","example":123,"description":"Invoice folio number","uniqueKey":"data.folio_number","typeLabel":"number"},"invoice_type":{"type":"string","enum":["I","E","P","N"],"example":"I","description":"Invoice type (I=Income, E=Egress, P=Payment, N=Nomina). A Colombian debit note is an `I`.","uniqueKey":"data.invoice_type","typeLabel":"enum\u003cstring>"},"document_kind":{"type":"string","enum":["debit_note"],"example":"debit_note","description":"**Colombia (DIAN) only.** Present, with `debit_note`, only when the document is a DIAN\ndebit note (nota débito). Absent on every other invoice, including Colombian sales invoices.\n","uniqueKey":"data.document_kind","typeLabel":"enum\u003cstring>"},"motive":{"oneOf":[{"type":"string","example":"1","description":"**Colombia (DIAN) only.** Present only on debit notes: the DIAN concept as sent in the\nrequest (`1`/`interest` Intereses, `2`/`collection_expenses` Gastos por cobrar,\n`3`/`value_change` Cambio del valor, `4`/`other` Otros).\n","uniqueKey":"data.motive.oneOf.0","typeLabel":"string"},{"type":"null","example":"1","description":"**Colombia (DIAN) only.** Present only on debit notes: the DIAN concept as sent in the\nrequest (`1`/`interest` Intereses, `2`/`collection_expenses` Gastos por cobrar,\n`3`/`value_change` Cambio del valor, `4`/`other` Otros).\n","uniqueKey":"data.motive.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.motive","typeLabel":"string | null"},"billing_period":{"oneOf":[{"type":"object","description":"**Colombia (DIAN) only.** Present only on debit notes: the billing period sent in the\nrequest (`start_date`, `end_date` and optional `start_time`/`end_time`), or `null`.\n","properties":{"start_date":{"type":"string","example":"2026-09-01","uniqueKey":"data.billing_period.oneOf.0.start_date","typeLabel":"string"},"end_date":{"type":"string","example":"2026-09-30","uniqueKey":"data.billing_period.oneOf.0.end_date","typeLabel":"string"},"start_time":{"type":"string","example":"00:00:00","uniqueKey":"data.billing_period.oneOf.0.start_time","typeLabel":"string"},"end_time":{"type":"string","example":"23:59:59","uniqueKey":"data.billing_period.oneOf.0.end_time","typeLabel":"string"}},"uniqueKey":"data.billing_period.oneOf.0","typeLabel":"object"},{"type":"null","description":"**Colombia (DIAN) only.** Present only on debit notes: the billing period sent in the\nrequest (`start_date`, `end_date` and optional `start_time`/`end_time`), or `null`.\n","properties":{"start_date":{"type":"string","example":"2026-09-01"},"end_date":{"type":"string","example":"2026-09-30"},"start_time":{"type":"string","example":"00:00:00"},"end_time":{"type":"string","example":"23:59:59"}},"uniqueKey":"data.billing_period.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.billing_period","typeLabel":"object | null"},"use":{"type":"string","example":"G03","description":"Mexican SAT usage code","uniqueKey":"data.use","typeLabel":"string"},"payment_form":{"type":"string","example":"03","description":"Mexican SAT payment form code","uniqueKey":"data.payment_form","typeLabel":"string"},"payment_method":{"type":"string","example":"PUE","description":"Payment method (PUE/PPD)","uniqueKey":"data.payment_method","typeLabel":"string"},"payment_due_date":{"type":"string","example":"2026-11-19","description":"Colombia (DIAN) credit invoices only: due date printed on the document. Omitted when not set.","uniqueKey":"data.payment_due_date","typeLabel":"string"},"status":{"type":"string","enum":["draft","pending","valid","canceled","cancelled"],"example":"valid","description":"Invoice status as stored. A stamped invoice is `valid`; a cancelled one is\n`canceled`. `cancelled` (double L) appears only on older records — new writes\nalways use `canceled`. `draft` is a pre-factura that has not been stamped.\n","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"livemode":{"type":"boolean","example":true,"description":"Whether this is a live invoice","uniqueKey":"data.livemode","typeLabel":"boolean"},"owner":{"type":"string","example":"user_1234567890","description":"User who created the invoice","uniqueKey":"data.owner","typeLabel":"string"},"from":{"type":"string","example":"api","description":"Source of invoice creation. Documents created through the public API are stored with `api`; requests carrying the `X-Gigstack-Client: mcp` header (the gigstack MCP server) are stored with `mcp` and behave identically.","uniqueKey":"data.from","typeLabel":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"item_1234567890","uniqueKey":"data.\\items.items.[INDEX].id","typeLabel":"string"},"description":{"type":"string","example":"Professional consulting services","uniqueKey":"data.\\items.items.[INDEX].description","typeLabel":"string"},"product_key":{"type":"string","example":"80141503","uniqueKey":"data.\\items.items.[INDEX].product_key","typeLabel":"string"},"quantity":{"type":"number","example":1,"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"number","example":1000,"uniqueKey":"data.\\items.items.[INDEX].unit_price","typeLabel":"number"},"unit_key":{"type":"string","example":"E48","uniqueKey":"data.\\items.items.[INDEX].unit_key","typeLabel":"string"},"unit_name":{"type":"string","example":"Servicio","uniqueKey":"data.\\items.items.[INDEX].unit_name","typeLabel":"string"},"sku":{"type":"string","example":"CONS-001","uniqueKey":"data.\\items.items.[INDEX].sku","typeLabel":"string"},"taxability":{"type":"string","enum":["01","02"],"example":"01","uniqueKey":"data.\\items.items.[INDEX].taxability","typeLabel":"enum\u003cstring>"},"taxes":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"base":{"oneOf":[{"type":"number","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].base.oneOf.0","typeLabel":"number"},{"type":"null","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].base.oneOf.1","typeLabel":"null"},{"type":"string","description":"Taxable base amount. Accepts number or numeric string. If null, calculated automatically from item price.","example":100,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].base.oneOf.2","typeLabel":"string"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].base","typeLabel":"number | null | string"},"factor":{"oneOf":[{"example":"Tasa","type":"string","uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].factor.oneOf.0","typeLabel":"string"},{"example":"Tasa","type":"null","uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].factor.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].factor","typeLabel":"string | null"},"inclusive":{"oneOf":[{"type":"boolean","example":false,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].inclusive.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].inclusive.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].inclusive","typeLabel":"boolean | null"},"rate":{"oneOf":[{"example":0.16,"type":"number","uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].rate.oneOf.0","typeLabel":"number"},{"example":0.16,"type":"null","uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].rate","typeLabel":"number | null"},"type":{"oneOf":[{"example":"IVA","type":"string","enum":["IVA","ISR","IEPS",null],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"example":"IVA","type":"null","enum":["IVA","ISR","IEPS",null],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"withholding":{"oneOf":[{"type":"boolean","example":false,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].withholding.oneOf.0","typeLabel":"boolean"},{"type":"null","example":false,"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].withholding.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX].withholding","typeLabel":"boolean | null"}},"uniqueKey":"data.\\items.items.[INDEX].taxes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items.items.[INDEX].taxes","typeLabel":"object[]"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"string","uniqueKey":"data.payments.items.[INDEX]","typeLabel":"string"},"example":["payment_1234567890"],"description":"Associated payment IDs","uniqueKey":"data.payments","typeLabel":"string[]"},"invoices":{"type":"array","items":{"type":"string","uniqueKey":"data.invoices.items.[INDEX]","typeLabel":"string"},"example":[],"description":"Related invoice IDs","uniqueKey":"data.invoices","typeLabel":"string[]"},"stamp":{"oneOf":[{"type":"object","properties":{"sello":{"type":"string","example":"ABC123...","uniqueKey":"data.stamp.oneOf.0.sello","typeLabel":"string"},"stamp_at":{"type":"number","example":1677651234,"uniqueKey":"data.stamp.oneOf.0.stamp_at","typeLabel":"number"}},"uniqueKey":"data.stamp.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"sello":{"type":"string","example":"ABC123..."},"stamp_at":{"type":"number","example":1677651234}},"uniqueKey":"data.stamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.stamp","typeLabel":"object | null"},"cancellation":{"oneOf":[{"type":"object","properties":{"cancellation_status":{"type":"string","example":"cancelled","uniqueKey":"data.cancellation.oneOf.0.cancellation_status","typeLabel":"string"},"cancelled_at":{"type":"number","example":1677651234,"uniqueKey":"data.cancellation.oneOf.0.cancelled_at","typeLabel":"number"},"motive":{"type":"string","example":"02","uniqueKey":"data.cancellation.oneOf.0.motive","typeLabel":"string"},"code":{"type":"string","example":"201","uniqueKey":"data.cancellation.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"data.cancellation.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"cancellation_status":{"type":"string","example":"cancelled"},"cancelled_at":{"type":"number","example":1677651234},"motive":{"type":"string","example":"02"},"code":{"type":"string","example":"201"}},"uniqueKey":"data.cancellation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.cancellation","typeLabel":"object | null"},"verification_url":{"type":"string","example":"https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx","description":"SAT verification URL","uniqueKey":"data.verification_url","typeLabel":"string"},"exports":{"type":"string","example":"01","description":"Export indicator","uniqueKey":"data.exports","typeLabel":"string"},"addenda":{"type":"string","example":"","description":"Additional XML addenda","uniqueKey":"data.addenda","typeLabel":"string"},"invoice_pdf_notes":{"type":"string","example":"Additional notes for PDF","description":"Custom notes for PDF generation","uniqueKey":"data.invoice_pdf_notes","typeLabel":"string"},"files":{"oneOf":[{"type":"object","description":"Base64 encoded files (only returned when return_files=true)","properties":{"pdf":{"type":"string","example":"JVBERi0xLjQKJeLjz9MKMSAwIG9ia...","description":"Base64 encoded PDF file","uniqueKey":"data.files.oneOf.0.pdf","typeLabel":"string"},"xml":{"type":"string","example":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4...","description":"Base64 encoded XML file","uniqueKey":"data.files.oneOf.0.xml","typeLabel":"string"}},"uniqueKey":"data.files.oneOf.0","typeLabel":"object"},{"type":"null","description":"Base64 encoded files (only returned when return_files=true)","properties":{"pdf":{"type":"string","example":"JVBERi0xLjQKJeLjz9MKMSAwIG9ia...","description":"Base64 encoded PDF file"},"xml":{"type":"string","example":"PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4...","description":"Base64 encoded XML file"}},"uniqueKey":"data.files.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.files","typeLabel":"object | null"},"idempotency_key":{"oneOf":[{"type":"string","uniqueKey":"data.idempotency_key.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.idempotency_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.idempotency_key","typeLabel":"string | null"},"team":{"type":"string","example":"team_1234567890","uniqueKey":"data.team","typeLabel":"string"},"billing_account":{"oneOf":[{"type":"string","uniqueKey":"data.billing_account.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.billing_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.billing_account","typeLabel":"string | null"},"date":{"oneOf":[{"type":"integer","format":"int64","description":"Comprobante date, epoch ms.","uniqueKey":"data.date.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Comprobante date, epoch ms.","uniqueKey":"data.date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.date","typeLabel":"integer\u003cint64> | null"},"payment_conditions":{"oneOf":[{"type":"string","uniqueKey":"data.payment_conditions.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.payment_conditions.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payment_conditions","typeLabel":"string | null"},"global":{"oneOf":[{"type":"object","description":"Global-invoice period (see the Global Invoices guide).","properties":{"periodicity":{"type":"string","uniqueKey":"data.global.oneOf.0.periodicity","typeLabel":"string"},"months":{"type":"string","uniqueKey":"data.global.oneOf.0.months","typeLabel":"string"},"year":{"type":"integer","uniqueKey":"data.global.oneOf.0.year","typeLabel":"integer"}},"uniqueKey":"data.global.oneOf.0","typeLabel":"object"},{"type":"null","description":"Global-invoice period (see the Global Invoices guide).","properties":{"periodicity":{"type":"string"},"months":{"type":"string"},"year":{"type":"integer"}},"uniqueKey":"data.global.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.global","typeLabel":"object | null"},"related_documents":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"relationship":{"type":"string","uniqueKey":"data.related_documents.oneOf.0.items.[INDEX].relationship","typeLabel":"string"},"documents":{"type":"array","items":{"type":"string","uniqueKey":"data.related_documents.oneOf.0.items.[INDEX].documents.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.related_documents.oneOf.0.items.[INDEX].documents","typeLabel":"string[]"}},"uniqueKey":"data.related_documents.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.related_documents.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"relationship":{"type":"string"},"documents":{"type":"array","items":{"type":"string"}}}},"uniqueKey":"data.related_documents.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.related_documents","typeLabel":"object[] | null"},"complements":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"data.complements.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.complements.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"uniqueKey":"data.complements.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.complements","typeLabel":"object[] | null"},"metadata":{"oneOf":[{"additionalProperties":true,"type":"object","uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":true,"type":"null","uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata","typeLabel":"object | null"},"emails":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"data.emails.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.emails.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"data.emails.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.emails","typeLabel":"string[] | null"},"issuer_info":{"oneOf":[{"type":"object","properties":{"legal_name":{"type":"string","uniqueKey":"data.issuer_info.oneOf.0.legal_name","typeLabel":"string"},"tax_id":{"type":"string","uniqueKey":"data.issuer_info.oneOf.0.tax_id","typeLabel":"string"},"tax_system":{"type":"string","uniqueKey":"data.issuer_info.oneOf.0.tax_system","typeLabel":"string"},"zip":{"type":"string","uniqueKey":"data.issuer_info.oneOf.0.zip","typeLabel":"string"}},"uniqueKey":"data.issuer_info.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"legal_name":{"type":"string"},"tax_id":{"type":"string"},"tax_system":{"type":"string"},"zip":{"type":"string"}},"uniqueKey":"data.issuer_info.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.issuer_info","typeLabel":"object | null"},"namespaces":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"prefix":{"type":"string","uniqueKey":"data.namespaces.oneOf.0.items.[INDEX].prefix","typeLabel":"string"},"uri":{"type":"string","uniqueKey":"data.namespaces.oneOf.0.items.[INDEX].uri","typeLabel":"string"},"schema_location":{"type":"string","uniqueKey":"data.namespaces.oneOf.0.items.[INDEX].schema_location","typeLabel":"string"}},"uniqueKey":"data.namespaces.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.namespaces.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"prefix":{"type":"string"},"uri":{"type":"string"},"schema_location":{"type":"string"}}},"uniqueKey":"data.namespaces.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.namespaces","typeLabel":"object[] | null"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"mexico_invoice":{"title":"mexico_invoice","summary":"Income invoice (Mexico)","value":{"message":"Invoice created successfully","data":{"uuid":"B0C3E4F2-1A2B-4C5D-9E8F-0123456789AB","client":{"id":"client_1234567890","name":"Juan Pérez García","email":"juan.perez@ejemplo.com","tax_id":"PEGJ800101ABC","from":"api","livemode":true,"owner":"user_1234567890","team":"team_1234567890","created_at":1767225600000},"status":"valid","currency":"MXN","exchange_rate":1,"total":1160,"subtotal":1000,"taxes":160,"discount":0,"series":"A","folio_number":123,"invoice_type":"I","payment_method":"PUE","items":[{"id":"item_1234567890","description":"Professional consulting services","quantity":1,"unit_price":1000,"product_key":"80141503","unit_key":"E48"}],"created_at":1677651234,"livemode":true,"owner":"user_1234567890"}}},"colombia_debit_note":{"title":"colombia_debit_note","summary":"Debit note ND3 on invoice FV69 (Colombia, test mode)","description":"`uuid` is the identifier DIAN gave the debit note (its CUDE); keep it as an\nopaque string. `series` and `folio_number` are DIAN's number `ND3`.\n","value":{"message":"Invoice created","data":{"uuid":"7c1e9a4b2d8f6e3a5b0c9d7e1f2a4b6c8d0e3f5a7b9c1d2e4f6a8b0c2d4e6f8a1b3c5d7e9f0a2b4c6d8e1f3a5b7c9d0e2f4a6","client":{"id":"client_1234567890","name":"Comercializadora Andina de Prueba SAS","email":"customer@example.com","from":"api","livemode":false,"owner":"user_1234567890","team":"team_1234567890","created_at":1767225600000},"status":"valid","currency":"COP","exchange_rate":1,"total":59500,"subtotal":50000,"taxes":9500,"withholding_taxes":0,"discount":0,"series":"ND","folio_number":3,"invoice_type":"I","document_kind":"debit_note","motive":"collection_expenses","use":"G03","payment_form":"03","payment_method":"PUE","related_documents":[{"relationship":"02","documents":["FV69"]}],"items":[{"id":"item_1234567890","description":"Gastos de cobranza factura FV69","quantity":1,"unit_price":50000,"product_key":"80101500"}],"invoices":[],"payments":[],"created_at":1767225600000,"livemode":false,"owner":"user_1234567890","team":"team_1234567890","from":"api"}}}},"exampleType":"examples"}},"exampleType":"examples"},"15d9dc73-9c3c-46be-ad42-bb9eb8ac6942":{"description":"Bad Request. All bodies here are **raw**, not the standardized envelope.\n- Body validation: `{ \"message\": \"Invalid body\", \"errors\": [ { \"path\": …, \"code\": …, \"message\": … } ] }`.\n Unknown keys are rejected — there is no `client_id` field; use `client: { \"id\": … }`.\n- `{ \"message\": \"Billing account not found\", \"error\": \"Billing account is required\" }`\n- `{ \"message\": \"Invalid currency\", \"error\": … }`\n- `{ \"message\": \"Exchange rate not found\" }`\n- `{ \"message\": \"Resource resolution failed\", \"error\": … }` when the client/service\n reference is ambiguous (both `id` and `search`, or `safety_check` matched several).\n- Generic CFDI/PAC stamping failure, nested one level under `message`:\n `{ \"message\": { \"error\": …, \"code\": …, \"providerMessage\": …, \"retryable\": false } }`.\n A rejection frees the `idempotency_key`: a corrected request may reuse it.\n- **Duplicate `idempotency_key`.** An invoice already exists under the key. Same CFDI shape,\n `code: INVALID_INVOICE`, plus `duplicate: true` and the existing invoice's `uuid`. Nothing was\n stamped or charged. Treat it as success and read the invoice with `GET /invoices/income/{id}`.\n- **Colombian debit note, request refused** (before any credit or folio is used):\n `{ \"message\": \"Invalid body\", \"errors\": [\"\u003creason>\"] }`, where `errors` holds one **string**.\n Reasons: `motive` or `billing_period` sent without `document_kind: debit_note`; `debit_note`\n from a team that doesn't invoice in Colombia; combined with `global`; `related_documents` not\n exactly one `02` entry with one document; `motive` missing; `billing_period` ending before it\n starts, missing on a debit note that reverses a credit note, or sent on one that debits a\n sales invoice.\n- **Colombian debit note, refused while issuing** (CFDI shape under `message`):\n `COL_NUMBERING_RANGE_ERROR` (no active, or more than one, \"Nota Débito\" numbering range in the\n team's Factus account), `COL_BILL_NOT_FOUND` (the invoice referenced by `uuid` isn't found in this\n team, is of the other mode, has no DIAN number, or is itself a debit note; a DIAN\n number such as `FV69` not found in the team is passed to Factus as given),\n `COL_DEBIT_NOTE_ERROR` (an earlier debit note is still pending at DIAN; contact support), or\n `COL_STAMP_ERROR` (Factus or DIAN rejected the document).\n","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"oneOf.0.error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"oneOf.0.error.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.0.errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"oneOf.0.errors","typeLabel":"(object | string)[]"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","properties":{"message":{"type":"object","description":"Raw CFDI/PAC error body produced by `handleCFDIError`. **Not** the standardized\nenvelope. On `POST /v2/invoices/income`, `/egress` and `/invoices/draft/{id}/stamp`\nthis object is nested one level deeper, under a `message` key\n(`{ \"message\": { \"error\": …, \"code\": …, \"retryable\": … } }`); on\n`DELETE /v2/invoices/{id}` it is returned at the top level.\n","required":["error","code","retryable"],"properties":{"error":{"type":"string","description":"Human-readable Spanish error message shown to the end user.","example":"Error al timbrar la factura: El CSD del emisor no es válido.","isRequired":true,"uniqueKey":"oneOf.1.message.error","typeLabel":"string"},"code":{"type":"string","description":"CFDI/PAC error code: a SAT/PAC code (e.g. `CFDI40147`) or one of gigstack's own\n(`SAT_NOT_CONNECTED`, `CSD_VALIDATION_ERROR`, `PAC_UNAVAILABLE`, `PAC_OUTCOME_UNKNOWN`,\n`STAMP_NEEDS_REVIEW`, `INVALID_INVOICE`, `STAMPING_ERROR`, …).\n","example":"CSD_VALIDATION_ERROR","isRequired":true,"uniqueKey":"oneOf.1.message.code","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether sending the **same** request again is safe and can succeed. `true` for `503`\n`PAC_UNAVAILABLE`, and for `503` `PAC_OUTCOME_UNKNOWN` only when the request carried an\n`idempotency_key`. Every `400`, `409` and `412` is `false`.\n","example":false,"isRequired":true,"uniqueKey":"oneOf.1.message.retryable","typeLabel":"boolean"},"providerMessage":{"type":"string","description":"Raw message returned by the PAC. Only present on generic (400) stamping failures.","example":"CFDI40147 - El campo UsoCFDI no es válido","uniqueKey":"oneOf.1.message.providerMessage","typeLabel":"string"},"duplicate":{"type":"boolean","description":"Present and `true` only on the `400` answered for an `idempotency_key` whose invoice already\nexists. Nothing was stamped or charged by this request; `uuid` names the existing invoice.\n","example":true,"uniqueKey":"oneOf.1.message.duplicate","typeLabel":"boolean"},"uuid":{"type":"string","description":"With `duplicate`, the folio fiscal (UUID) of the invoice already issued under this `idempotency_key`.","example":"0f8fad5b-d9cb-469f-a165-70867728950e","uniqueKey":"oneOf.1.message.uuid","typeLabel":"string"}},"uniqueKey":"oneOf.1.message","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_body":{"title":"invalid_body","summary":"Body validation","value":{"message":"Invalid body","errors":[{"path":"client_id","code":"unexpected_key","message":"Unexpected field"}]}},"sat_rejection":{"title":"sat_rejection","summary":"The SAT rejected the document's data","value":{"message":{"error":"Error al timbrar la factura: CFDI40147 - El campo UsoCFDI no es válido [pcs_8f2a1c]","code":"CFDI40147","providerMessage":"CFDI40147 - El campo UsoCFDI no es válido","retryable":false}}},"duplicate_idempotency_key":{"title":"duplicate_idempotency_key","summary":"An invoice already exists under this idempotency_key","value":{"message":{"error":"Error al timbrar la factura: Ya existe un comprobante con la misma idempotencia (uuid: 0f8fad5b-d9cb-469f-a165-70867728950e)","code":"INVALID_INVOICE","providerMessage":"Ya existe un comprobante con la misma idempotencia (uuid: 0f8fad5b-d9cb-469f-a165-70867728950e)","retryable":false,"duplicate":true,"uuid":"0f8fad5b-d9cb-469f-a165-70867728950e"}}},"debit_note_missing_motive":{"title":"debit_note_missing_motive","summary":"Colombian debit note without a motive","value":{"message":"Invalid body","errors":["A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)"]}},"debit_note_wrong_reference":{"title":"debit_note_wrong_reference","summary":"Colombian debit note without exactly one 02 related document","value":{"message":"Invalid body","errors":["A debit note must reference exactly one invoice: related_documents [{ relationship: '02', documents: [\u003cinvoice uuid>] }]"]}},"debit_note_not_colombia":{"title":"debit_note_not_colombia","summary":"Debit note from a team that doesn't invoice in Colombia","value":{"message":"Invalid body","errors":["Debit notes (document_kind debit_note) are only available for teams invoicing in Colombia"]}},"debit_note_no_numbering_range":{"title":"debit_note_no_numbering_range","summary":"No active Nota Débito numbering range in Factus","value":{"message":{"error":"Error al timbrar la factura: El equipo no tiene un rango de numeración de notas débito activo en Factus. [pcs_5c6d7e]","code":"COL_NUMBERING_RANGE_ERROR","providerMessage":"El equipo no tiene un rango de numeración de notas débito activo en Factus.","retryable":false}}}},"exampleType":"examples"}},"exampleType":"examples"},"5f33f517-759d-4cca-8376-9c88a7eadc04":{"description":"Unauthorized. Raw shape with only a `message` key.","content":{"application/json":{"schema":{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"errors","typeLabel":"(object | string)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid body","error":"\u003cstring>","errors":[{"path":"client_id","code":"unexpected_key","message":"Unexpected field"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"5ba734f4-814d-4e67-aac4-50cde8285dca":{"description":"The referenced client or service belongs to another team, or its `livemode` does\nnot match the API key. Raw shape `{ \"message\": \"Resource resolution failed\", \"error\": … }`.\n","content":{"application/json":{"schema":{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"errors","typeLabel":"(object | string)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid body","error":"\u003cstring>","errors":[{"path":"client_id","code":"unexpected_key","message":"Unexpected field"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"b08e0068-b505-41c1-900d-6e7da4629027":{"description":"The referenced client or service id was not found. Raw shape.","content":{"application/json":{"schema":{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"errors","typeLabel":"(object | string)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid body","error":"\u003cstring>","errors":[{"path":"client_id","code":"unexpected_key","message":"Unexpected field"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"2d867d4a-9047-4599-adaf-59925fbac85a":{"description":"Three cases, all raw bodies:\n\n- **Client or service lock.** A concurrent create holds the lock for the same client or service\n (`search` + `auto_create`). `{ \"message\": \"Resource resolution failed\", \"error\": … }`. Retry\n after about a second.\n- **`idempotency_in_progress`.** Another request with the same `idempotency_key` is being\n processed (`IdempotencyInProgressResponse`, `retryable: true`). Retry later with the same key;\n you get the invoice's outcome (a `400` duplicate once it exists). A request that died mid-way\n holds the key for up to 10 minutes.\n- **`STAMP_NEEDS_REVIEW`.** An earlier attempt with this `idempotency_key` reached the PAC, and\n the PAC could not confirm whether it stamped (no UUID returned, or the SAT's 72-hour window\n has passed), or it stamped and the invoice could not be saved. CFDI shape under `message`,\n `retryable: false`. Retrying could issue a second CFDI, so every retry gets this answer.\n Contact support with the key.\n","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"oneOf.0.error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"oneOf.0.error.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"oneOf.0.errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"oneOf.0.errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"oneOf.0.errors","typeLabel":"(object | string)[]"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Raw `409` body of `POST /invoices/income` when another request with the same `idempotency_key` is being\nprocessed. Not the standardized envelope. Retry later with the same key.\n","required":["message","error","retryable"],"properties":{"message":{"type":"string","example":"An invoice with this idempotency_key is already being created","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["idempotency_in_progress"],"example":"idempotency_in_progress","isRequired":true,"uniqueKey":"oneOf.1.error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","example":"An invoice with this idempotency_key is already being created; retry later","isRequired":true,"uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"object"},"retryable":{"type":"boolean","enum":[true],"example":true,"isRequired":true,"uniqueKey":"oneOf.1.retryable","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["message"],"properties":{"message":{"type":"object","description":"Raw CFDI/PAC error body produced by `handleCFDIError`. **Not** the standardized\nenvelope. On `POST /v2/invoices/income`, `/egress` and `/invoices/draft/{id}/stamp`\nthis object is nested one level deeper, under a `message` key\n(`{ \"message\": { \"error\": …, \"code\": …, \"retryable\": … } }`); on\n`DELETE /v2/invoices/{id}` it is returned at the top level.\n","required":["error","code","retryable"],"properties":{"error":{"type":"string","description":"Human-readable Spanish error message shown to the end user.","example":"Error al timbrar la factura: El CSD del emisor no es válido.","isRequired":true,"uniqueKey":"oneOf.2.message.error","typeLabel":"string"},"code":{"type":"string","description":"CFDI/PAC error code: a SAT/PAC code (e.g. `CFDI40147`) or one of gigstack's own\n(`SAT_NOT_CONNECTED`, `CSD_VALIDATION_ERROR`, `PAC_UNAVAILABLE`, `PAC_OUTCOME_UNKNOWN`,\n`STAMP_NEEDS_REVIEW`, `INVALID_INVOICE`, `STAMPING_ERROR`, …).\n","example":"CSD_VALIDATION_ERROR","isRequired":true,"uniqueKey":"oneOf.2.message.code","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether sending the **same** request again is safe and can succeed. `true` for `503`\n`PAC_UNAVAILABLE`, and for `503` `PAC_OUTCOME_UNKNOWN` only when the request carried an\n`idempotency_key`. Every `400`, `409` and `412` is `false`.\n","example":false,"isRequired":true,"uniqueKey":"oneOf.2.message.retryable","typeLabel":"boolean"},"providerMessage":{"type":"string","description":"Raw message returned by the PAC. Only present on generic (400) stamping failures.","example":"CFDI40147 - El campo UsoCFDI no es válido","uniqueKey":"oneOf.2.message.providerMessage","typeLabel":"string"},"duplicate":{"type":"boolean","description":"Present and `true` only on the `400` answered for an `idempotency_key` whose invoice already\nexists. Nothing was stamped or charged by this request; `uuid` names the existing invoice.\n","example":true,"uniqueKey":"oneOf.2.message.duplicate","typeLabel":"boolean"},"uuid":{"type":"string","description":"With `duplicate`, the folio fiscal (UUID) of the invoice already issued under this `idempotency_key`.","example":"0f8fad5b-d9cb-469f-a165-70867728950e","uniqueKey":"oneOf.2.message.uuid","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"client_lock":{"title":"client_lock","summary":"Concurrent create of the same client","value":{"message":"Resource resolution failed","error":"Client creation in progress for tax_id=EKU9003173C9. Please retry."}},"idempotency_in_progress":{"title":"idempotency_in_progress","summary":"Same idempotency_key, still being processed","value":{"message":"An invoice with this idempotency_key is already being created","error":{"code":"idempotency_in_progress","message":"An invoice with this idempotency_key is already being created; retry later"},"retryable":true}},"stamp_needs_review":{"title":"stamp_needs_review","summary":"The PAC could not confirm an earlier attempt","value":{"message":{"error":"El PAC indica que el comprobante A-1284 ya fue timbrado pero no devolvió su UUID: Comprobante timbrado previamente [pcs_3b7e9d]","code":"STAMP_NEEDS_REVIEW","retryable":false}}}},"exampleType":"examples"}},"exampleType":"examples"},"f1dd4362-b430-4172-9619-5d8e5867af22":{"description":"**SAT not connected.** The team has no valid CSD, or the certificate failed\nvalidation. Returned in the CFDI error shape nested under `message`, with\n`retryable: false`. Upload a CSD via `POST /v2/teams/{id}/sat-connection`\nbefore retrying — retrying as-is will fail identically.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","description":"Raw CFDI/PAC error body produced by `handleCFDIError`. **Not** the standardized\nenvelope. On `POST /v2/invoices/income`, `/egress` and `/invoices/draft/{id}/stamp`\nthis object is nested one level deeper, under a `message` key\n(`{ \"message\": { \"error\": …, \"code\": …, \"retryable\": … } }`); on\n`DELETE /v2/invoices/{id}` it is returned at the top level.\n","required":["error","code","retryable"],"properties":{"error":{"type":"string","description":"Human-readable Spanish error message shown to the end user.","example":"Error al timbrar la factura: El CSD del emisor no es válido.","isRequired":true,"uniqueKey":"message.error","typeLabel":"string"},"code":{"type":"string","description":"CFDI/PAC error code: a SAT/PAC code (e.g. `CFDI40147`) or one of gigstack's own\n(`SAT_NOT_CONNECTED`, `CSD_VALIDATION_ERROR`, `PAC_UNAVAILABLE`, `PAC_OUTCOME_UNKNOWN`,\n`STAMP_NEEDS_REVIEW`, `INVALID_INVOICE`, `STAMPING_ERROR`, …).\n","example":"CSD_VALIDATION_ERROR","isRequired":true,"uniqueKey":"message.code","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether sending the **same** request again is safe and can succeed. `true` for `503`\n`PAC_UNAVAILABLE`, and for `503` `PAC_OUTCOME_UNKNOWN` only when the request carried an\n`idempotency_key`. Every `400`, `409` and `412` is `false`.\n","example":false,"isRequired":true,"uniqueKey":"message.retryable","typeLabel":"boolean"},"providerMessage":{"type":"string","description":"Raw message returned by the PAC. Only present on generic (400) stamping failures.","example":"CFDI40147 - El campo UsoCFDI no es válido","uniqueKey":"message.providerMessage","typeLabel":"string"},"duplicate":{"type":"boolean","description":"Present and `true` only on the `400` answered for an `idempotency_key` whose invoice already\nexists. Nothing was stamped or charged by this request; `uuid` names the existing invoice.\n","example":true,"uniqueKey":"message.duplicate","typeLabel":"boolean"},"uuid":{"type":"string","description":"With `duplicate`, the folio fiscal (UUID) of the invoice already issued under this `idempotency_key`.","example":"0f8fad5b-d9cb-469f-a165-70867728950e","uniqueKey":"message.uuid","typeLabel":"string"}},"uniqueKey":"message","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":{"error":"El certificado de sello digital (CSD) no está configurado o no es válido.","code":"CSD_VALIDATION_ERROR","retryable":false}},"examples":{"Example":{"title":"Example","value":{"message":{"error":"El certificado de sello digital (CSD) no está configurado o no es válido.","code":"CSD_VALIDATION_ERROR","retryable":false}}}},"exampleType":"examples"}},"exampleType":"examples"},"e32bfd05-4128-407e-96b7-5d4817827bc7":{"description":"**Team credit limit reached.** Raw shape carrying the limit and current usage.\nNo document is created.\n","content":{"application/json":{"schema":{"type":"object","description":"Raw credit-limit body (HTTP 429) returned by invoice income creation and draft\nstamping. Not the standardized envelope.\n","required":["message","error"],"properties":{"message":{"type":"string","example":"Team credit limit reached","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","description":"Reason reported by the credit checker.","example":"Credit limit of 100 documents reached for this billing period","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"credit_limit":{"type":"number","example":100,"uniqueKey":"credit_limit","typeLabel":"number"},"used_credits":{"type":"number","example":100,"uniqueKey":"used_credits","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Team credit limit reached","error":"Credit limit of 100 documents reached for this billing period","credit_limit":100,"used_credits":100},"examples":{"Example":{"title":"Example","value":{"message":"Team credit limit reached","error":"Credit limit of 100 documents reached for this billing period","credit_limit":100,"used_credits":100}}},"exampleType":"examples"}},"exampleType":"examples"},"3bf4aeba-07eb-44cd-a7e3-9ef581816883":{"description":"Internal Server Error. Raw shape — either\n`{ \"message\": \"Failed to save invoice\", \"error\": { \"code\": \"invoice_save_error\", … } }`\nor `{ \"message\": \"An error occurred while creating invoice\", \"error\": { \"code\": …, \"message\": … } }`.\nA `Failed to save invoice` after a stamp means the CFDI exists: with an `idempotency_key`, a retry\nanswers `409` `STAMP_NEEDS_REVIEW` instead of stamping again.\n","content":{"application/json":{"schema":{"type":"object","description":"Raw error body returned by handlers that do not use the standardized helpers.\nNote the absence of `success` and `timestamp`.\n","required":["message"],"properties":{"message":{"type":"string","example":"Invalid body","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"oneOf":[{"type":"string","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Present on most, but not all, legacy error paths.","uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"errors":{"type":"array","description":"Validation errors, when the failure came from body validation. Schema validation gives\nfield-level objects; some later checks (for example a Colombian debit note's rules on\n`POST /invoices/income`) give a single string reason.\n","items":{"oneOf":[{"type":"object","properties":{"path":{"type":"string","example":"client_id","uniqueKey":"errors.items.[INDEX].oneOf.0.path","typeLabel":"string"},"code":{"type":"string","example":"unexpected_key","uniqueKey":"errors.items.[INDEX].oneOf.0.code","typeLabel":"string"},"message":{"type":"string","example":"Unexpected field","uniqueKey":"errors.items.[INDEX].oneOf.0.message","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"A debit note needs a motive: 1 (interest), 2 (collection_expenses), 3 (value_change) or 4 (other)","uniqueKey":"errors.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"errors.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"errors","typeLabel":"(object | string)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid body","error":"\u003cstring>","errors":[{"path":"client_id","code":"unexpected_key","message":"Unexpected field"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"cb777582-0f3e-4a06-a3ef-0368fcc85f0a":{"description":"The stamp did not complete. CFDI error shape nested under `message`. Read `code`:\n\n- **`PAC_UNAVAILABLE`** (`retryable: true`). The PAC could not be reached, or refused the request\n before stamping (HTTP 4xx such as 429, maintenance). The document never reached the SAT and no\n CFDI exists. Wait a few minutes and retry.\n- **`PAC_OUTCOME_UNKNOWN`**. The request reached the PAC and its answer was lost (timeout, reset,\n HTTP 5xx, unreadable body), so the CFDI **may exist**. Its folio is never reused.\n - With an `idempotency_key`, `retryable: true`: retry with the **same** key. The same XML and\n folio are sent again, so the PAC either stamps it now or returns the stamp it already made; it\n cannot stamp twice, and the retry is not charged again. Any other failure after the XML was\n sent is also answered this way.\n - Without one, `retryable: false`: a new request would take a new folio and could issue a second\n CFDI. Check whether the invoice exists before sending it again.\n\nTimeouts and HTTP 5xx from the PAC used to be answered as `PAC_UNAVAILABLE`; they are now\n`PAC_OUTCOME_UNKNOWN`.\n","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","description":"Raw CFDI/PAC error body produced by `handleCFDIError`. **Not** the standardized\nenvelope. On `POST /v2/invoices/income`, `/egress` and `/invoices/draft/{id}/stamp`\nthis object is nested one level deeper, under a `message` key\n(`{ \"message\": { \"error\": …, \"code\": …, \"retryable\": … } }`); on\n`DELETE /v2/invoices/{id}` it is returned at the top level.\n","required":["error","code","retryable"],"properties":{"error":{"type":"string","description":"Human-readable Spanish error message shown to the end user.","example":"Error al timbrar la factura: El CSD del emisor no es válido.","isRequired":true,"uniqueKey":"message.error","typeLabel":"string"},"code":{"type":"string","description":"CFDI/PAC error code: a SAT/PAC code (e.g. `CFDI40147`) or one of gigstack's own\n(`SAT_NOT_CONNECTED`, `CSD_VALIDATION_ERROR`, `PAC_UNAVAILABLE`, `PAC_OUTCOME_UNKNOWN`,\n`STAMP_NEEDS_REVIEW`, `INVALID_INVOICE`, `STAMPING_ERROR`, …).\n","example":"CSD_VALIDATION_ERROR","isRequired":true,"uniqueKey":"message.code","typeLabel":"string"},"retryable":{"type":"boolean","description":"Whether sending the **same** request again is safe and can succeed. `true` for `503`\n`PAC_UNAVAILABLE`, and for `503` `PAC_OUTCOME_UNKNOWN` only when the request carried an\n`idempotency_key`. Every `400`, `409` and `412` is `false`.\n","example":false,"isRequired":true,"uniqueKey":"message.retryable","typeLabel":"boolean"},"providerMessage":{"type":"string","description":"Raw message returned by the PAC. Only present on generic (400) stamping failures.","example":"CFDI40147 - El campo UsoCFDI no es válido","uniqueKey":"message.providerMessage","typeLabel":"string"},"duplicate":{"type":"boolean","description":"Present and `true` only on the `400` answered for an `idempotency_key` whose invoice already\nexists. Nothing was stamped or charged by this request; `uuid` names the existing invoice.\n","example":true,"uniqueKey":"message.duplicate","typeLabel":"boolean"},"uuid":{"type":"string","description":"With `duplicate`, the folio fiscal (UUID) of the invoice already issued under this `idempotency_key`.","example":"0f8fad5b-d9cb-469f-a165-70867728950e","uniqueKey":"message.uuid","typeLabel":"string"}},"uniqueKey":"message","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"pac_unavailable":{"title":"pac_unavailable","summary":"PAC unreachable; nothing was stamped","value":{"message":{"error":"El servicio de timbrado no está disponible en este momento. Vuelve a intentarlo en unos minutos. No se pudo contactar al PAC: connect ECONNREFUSED [pcs_1a2b3c]","code":"PAC_UNAVAILABLE","retryable":true}}},"pac_outcome_unknown":{"title":"pac_outcome_unknown","summary":"PAC answer lost; retry with the same idempotency_key","value":{"message":{"error":"No se recibió la respuesta del servicio de timbrado; el comprobante podría estar timbrado. Se perdió la respuesta del PAC: The operation was aborted due to timeout [pcs_4d5e6f]","code":"PAC_OUTCOME_UNKNOWN","retryable":true}}},"pac_outcome_unknown_no_key":{"title":"pac_outcome_unknown_no_key","summary":"PAC answer lost on a request without idempotency_key","value":{"message":{"error":"No se recibió la respuesta del servicio de timbrado; el comprobante podría estar timbrado. El PAC respondió 504 Gateway Timeout [pcs_7a8b9c]","code":"PAC_OUTCOME_UNKNOWN","retryable":false}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d700b753-84ca-4732-ac87-166f42d5a5ae":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"**Authentication Method:** HTTP Bearer token.\n\nThe runtime requires the literal `Bearer ` prefix — a bare token in the\n`Authorization` header is rejected with `401 unauthorized`.\n\n**Header Format:** `Authorization: Bearer YOUR_API_KEY`\n\nYour API key is a JWT. Live keys operate on live data (`livemode: true`);\ntest keys operate on isolated test data (`livemode: false`).\n\n**Get your key at:** [app.gigstack.pro/settings?tab=api](https://app.gigstack.pro/settings?tab=api)\n\n**Errors:** credential failures are answered by the authentication layer with a raw\n`{ \"message\": … }` body, not the standardized envelope — `401` for a missing, malformed or\nexpired token, `403` for a revoked key or a plan without API access. See the `Unauthorized`\nand `AuthForbidden` responses.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"87059d0e-ccc8-43e7-97f3-afea666258e3":{"url":"https://api.gigstack.io/v2","description":"Public API for standard live and test-mode keys. Test data is isolated by the key mode\n(`livemode: false`). Internal staging is a separate deployment and key store; see\nhttps://docs.gigstack.io/authentication#environments for its base URL.\n"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"**Authentication Method:** HTTP Bearer token.\n\nThe runtime requires the literal `Bearer ` prefix — a bare token in the\n`Authorization` header is rejected with `401 unauthorized`.\n\n**Header Format:** `Authorization: Bearer YOUR_API_KEY`\n\nYour API key is a JWT. Live keys operate on live data (`livemode: true`);\ntest keys operate on isolated test data (`livemode: false`).\n\n**Get your key at:** [app.gigstack.pro/settings?tab=api](https://app.gigstack.pro/settings?tab=api)\n\n**Errors:** credential failures are answered by the authentication layer with a raw\n`{ \"message\": … }` body, not the standardized envelope — `401` for a missing, malformed or\nexpired token, `403` for a revoked key or a plan without API access. See the `Unauthorized`\nand `AuthForbidden` responses.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"**Authentication Method:** HTTP Bearer token.\n\nThe runtime requires the literal `Bearer ` prefix — a bare token in the\n`Authorization` header is rejected with `401 unauthorized`.\n\n**Header Format:** `Authorization: Bearer YOUR_API_KEY`\n\nYour API key is a JWT. Live keys operate on live data (`livemode: true`);\ntest keys operate on isolated test data (`livemode: false`).\n\n**Get your key at:** [app.gigstack.pro/settings?tab=api](https://app.gigstack.pro/settings?tab=api)\n\n**Errors:** credential failures are answered by the authentication layer with a raw\n`{ \"message\": … }` body, not the standardized envelope — `401` for a missing, malformed or\nexpired token, `403` for a revoked key or a plan without API access. See the `Unauthorized`\nand `AuthForbidden` responses.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"gigstack-736714cc","siteName":"gigstack","title":"Create income invoice - gigstack","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T15:36:46.105Z","originalFileLocation":"reference/createInvoicesIncome.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Small working example Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer. Create a new income invoice with CFDI 4.0 compliance. Safe retries with idempotency_key. Send your own identifier for the invoice (for example your order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so repeating the request cannot issue a second CFDI or charge twice: - The invoice already exists: 400 with message.duplicate: true and message.uuid. - Another request with the key is still being processed: 409 idempotency_in_progress. Retry later. - The PAC\u0026#x27;s answer was lost: 503 PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made. - The PAC can\u0026#x27;t confirm an earlier attempt: 409 STAMP_NEEDS_REVIEW. Don\u0026#x27;t retry; contact support. - The serie and folio already belong to another CFDI of the issuer\u0026#x27;s RFC (for example, another account on the same RFC): 400 FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With your own folio_number, send another one; with gigstack\u0026#x27;s folios, give the team a serie of its own first, since the other account keeps using that serie. - The SAT or PAC rejected the data: 400, and the key is free again for a corrected request. Without an idempotency_key none of this applies, and after a 503 PAC_OUTCOME_UNKNOWN (retryable: false) you can\u0026#x27;t tell whether the invoice exists: look it up before sending it again. To issue many invoices at once, use POST /invoices/income/batch. Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note through this same endpoint with document_kind: \u0026quot;debit_note\u0026quot;, a motive, and related_documents: [{ \u0026quot;relationship\u0026quot;: \u0026quot;02\u0026quot;, \u0026quot;documents\u0026quot;: [\u0026quot;\u0026quot;] }] naming the one sales invoice being debited. items are the additional amounts charged, not the original invoice\u0026#x27;s items. gigstack sends it to DIAN through Factus as a debit note that references that invoice. It needs an active \u0026quot;Nota Débito\u0026quot; numbering range in the team\u0026#x27;s Factus account; without one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN\u0026#x27;s (for example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: \u0026quot;debit_note\u0026quot; and motive, and the debit note is listed by GET /invoices/income. A debit note can\u0026#x27;t be cancelled: to reverse it, issue a credit note on the original invoice. A credit or debit note can\u0026#x27;t be the document a debit note references. Malformed debit-note requests (no motive, wrong related_documents, combined with global, or from a team not invoicing in Colombia) are answered 400 before a credit is consumed or a folio reserved. gigstack Connect: Create invoices for other teams using the team parameter.\">\u003cmeta data-mint-head name=\"application-name\" content=\"gigstack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create income invoice - gigstack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Small working example Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer. Create a new income invoice with CFDI 4.0 compliance. Safe retries with idempotency_key. Send your own identifier for the invoice (for example your order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so repeating the request cannot issue a second CFDI or charge twice: - The invoice already exists: 400 with message.duplicate: true and message.uuid. - Another request with the key is still being processed: 409 idempotency_in_progress. Retry later. - The PAC\u0026#x27;s answer was lost: 503 PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made. - The PAC can\u0026#x27;t confirm an earlier attempt: 409 STAMP_NEEDS_REVIEW. Don\u0026#x27;t retry; contact support. - The serie and folio already belong to another CFDI of the issuer\u0026#x27;s RFC (for example, another account on the same RFC): 400 FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With your own folio_number, send another one; with gigstack\u0026#x27;s folios, give the team a serie of its own first, since the other account keeps using that serie. - The SAT or PAC rejected the data: 400, and the key is free again for a corrected request. Without an idempotency_key none of this applies, and after a 503 PAC_OUTCOME_UNKNOWN (retryable: false) you can\u0026#x27;t tell whether the invoice exists: look it up before sending it again. To issue many invoices at once, use POST /invoices/income/batch. Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note through this same endpoint with document_kind: \u0026quot;debit_note\u0026quot;, a motive, and related_documents: [{ \u0026quot;relationship\u0026quot;: \u0026quot;02\u0026quot;, \u0026quot;documents\u0026quot;: [\u0026quot;\u0026quot;] }] naming the one sales invoice being debited. items are the additional amounts charged, not the original invoice\u0026#x27;s items. gigstack sends it to DIAN through Factus as a debit note that references that invoice. It needs an active \u0026quot;Nota Débito\u0026quot; numbering range in the team\u0026#x27;s Factus account; without one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN\u0026#x27;s (for example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: \u0026quot;debit_note\u0026quot; and motive, and the debit note is listed by GET /invoices/income. A debit note can\u0026#x27;t be cancelled: to reverse it, issue a credit note on the original invoice. A credit or debit note can\u0026#x27;t be the document a debit note references. Malformed debit-note requests (no motive, wrong related_documents, combined with global, or from a team not invoicing in Colombia) are answered 400 before a credit is consumed or a folio reserved. gigstack Connect: Create invoices for other teams using the team parameter.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"gigstack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gigstack.io/reference/createInvoicesIncome\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gigstack-736714cc.mintlify.site/_mintlify/api/og/v2?division=Income+invoices\u0026amp;title=Create+income+invoice\u0026amp;description=%5BSmall+working+example%5D%28%2Frecipes%2Fpaid-later%29%0A%0A**Integration+note%3A**+This+endpoint+stamps+immediately.+For+a+reviewable+document%2C+create+a+draft+first.+Successfu\u0026amp;theme=c8c9058b183856e8fedb0215\u0026amp;signature=b4d13428aaffea233e65a6be375d0aee20df2e6f26307d47778c4e5b402b6f7d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create income invoice - gigstack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Small working example Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer. Create a new income invoice with CFDI 4.0 compliance. Safe retries with idempotency_key. Send your own identifier for the invoice (for example your order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so repeating the request cannot issue a second CFDI or charge twice: - The invoice already exists: 400 with message.duplicate: true and message.uuid. - Another request with the key is still being processed: 409 idempotency_in_progress. Retry later. - The PAC\u0026#x27;s answer was lost: 503 PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made. - The PAC can\u0026#x27;t confirm an earlier attempt: 409 STAMP_NEEDS_REVIEW. Don\u0026#x27;t retry; contact support. - The serie and folio already belong to another CFDI of the issuer\u0026#x27;s RFC (for example, another account on the same RFC): 400 FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With your own folio_number, send another one; with gigstack\u0026#x27;s folios, give the team a serie of its own first, since the other account keeps using that serie. - The SAT or PAC rejected the data: 400, and the key is free again for a corrected request. Without an idempotency_key none of this applies, and after a 503 PAC_OUTCOME_UNKNOWN (retryable: false) you can\u0026#x27;t tell whether the invoice exists: look it up before sending it again. To issue many invoices at once, use POST /invoices/income/batch. Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note through this same endpoint with document_kind: \u0026quot;debit_note\u0026quot;, a motive, and related_documents: [{ \u0026quot;relationship\u0026quot;: \u0026quot;02\u0026quot;, \u0026quot;documents\u0026quot;: [\u0026quot;\u0026quot;] }] naming the one sales invoice being debited. items are the additional amounts charged, not the original invoice\u0026#x27;s items. gigstack sends it to DIAN through Factus as a debit note that references that invoice. It needs an active \u0026quot;Nota Débito\u0026quot; numbering range in the team\u0026#x27;s Factus account; without one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN\u0026#x27;s (for example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: \u0026quot;debit_note\u0026quot; and motive, and the debit note is listed by GET /invoices/income. A debit note can\u0026#x27;t be cancelled: to reverse it, issue a credit note on the original invoice. A credit or debit note can\u0026#x27;t be the document a debit note references. Malformed debit-note requests (no motive, wrong related_documents, combined with global, or from a team not invoicing in Colombia) are answered 400 before a credit is consumed or a folio reserved. gigstack Connect: Create invoices for other teams using the team parameter.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gigstack-736714cc.mintlify.site/_mintlify/api/og/v2?division=Income+invoices\u0026amp;title=Create+income+invoice\u0026amp;description=%5BSmall+working+example%5D%28%2Frecipes%2Fpaid-later%29%0A%0A**Integration+note%3A**+This+endpoint+stamps+immediately.+For+a+reviewable+document%2C+create+a+draft+first.+Successfu\u0026amp;theme=c8c9058b183856e8fedb0215\u0026amp;signature=b4d13428aaffea233e65a6be375d0aee20df2e6f26307d47778c4e5b402b6f7d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gigstack-736714cc/XxFE_5jrUgFYfbts/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"gigstack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#527A16\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gigstack.io/reference/createInvoicesIncome\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/createInvoicesIncome.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gigstack.io/#organization\",\"name\":\"gigstack\",\"url\":\"https://docs.gigstack.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gigstack-736714cc/n52DA3e1uZaES4AD/logo/light.svg?fit=max\u0026auto=format\u0026n=n52DA3e1uZaES4AD\u0026q=85\u0026s=c2a76374f23410e1b668aa0f9c87e282\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gigstack.io#website\",\"name\":\"gigstack\",\"url\":\"https://docs.gigstack.io\",\"publisher\":{\"@id\":\"https://docs.gigstack.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gigstack.io/reference/createInvoicesIncome#webpage\",\"url\":\"https://docs.gigstack.io/reference/createInvoicesIncome\",\"name\":\"Create income invoice\",\"description\":\"Small working example Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer. Create a new income invoice with CFDI 4.0 compliance. Safe retries with idempotency_key. Send your own identifier for the invoice (for example your order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so repeating the request cannot issue a second CFDI or charge twice: - The invoice already exists: 400 with message.duplicate: true and message.uuid. - Another request with the key is still being processed: 409 idempotency_in_progress. Retry later. - The PAC's answer was lost: 503 PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made. - The PAC can't confirm an earlier attempt: 409 STAMP_NEEDS_REVIEW. Don't retry; contact support. - The serie and folio already belong to another CFDI of the issuer's RFC (for example, another account on the same RFC): 400 FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With your own folio_number, send another one; with gigstack's folios, give the team a serie of its own first, since the other account keeps using that serie. - The SAT or PAC rejected the data: 400, and the key is free again for a corrected request. Without an idempotency_key none of this applies, and after a 503 PAC_OUTCOME_UNKNOWN (retryable: false) you can't tell whether the invoice exists: look it up before sending it again. To issue many invoices at once, use POST /invoices/income/batch. Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note through this same endpoint with document_kind: \\\"debit_note\\\", a motive, and related_documents: [{ \\\"relationship\\\": \\\"02\\\", \\\"documents\\\": [\\\"\\\"] }] naming the one sales invoice being debited. items are the additional amounts charged, not the original invoice's items. gigstack sends it to DIAN through Factus as a debit note that references that invoice. It needs an active \\\"Nota Débito\\\" numbering range in the team's Factus account; without one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN's (for example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: \\\"debit_note\\\" and motive, and the debit note is listed by GET /invoices/income. A debit note can't be cancelled: to reverse it, issue a credit note on the original invoice. A credit or debit note can't be the document a debit note references. Malformed debit-note requests (no motive, wrong related_documents, combined with global, or from a team not invoicing in Colombia) are answered 400 before a credit is consumed or a folio reserved. gigstack Connect: Create invoices for other teams using the team parameter.\",\"dateModified\":\"2026-10-30T15:36:46.105Z\",\"isPartOf\":{\"@id\":\"https://docs.gigstack.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gigstack.io/reference/createInvoicesIncome#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gigstack.io/reference/createInvoicesIncome#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core resources\",\"item\":\"https://docs.gigstack.io/reference/createClients\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoices\",\"item\":\"https://docs.gigstack.io/reference/getInvoiceById\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create income invoice\",\"item\":\"https://docs.gigstack.io/reference/createInvoicesIncome\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gigstack.io/reference/createInvoicesIncome#apireference\",\"headline\":\"Create income invoice\",\"name\":\"Create income invoice\",\"description\":\"Small working example Integration note: This endpoint stamps immediately. For a reviewable document, create a draft first. Successful issuance returns HTTP 200 and data.uuid. Fiscal validity does not establish that payment has been received. Read shared fields and the Mexico or Colombia guide for country-specific meaning. The linked fiscal recipes and staging issuance results use a Mexican issuer. Create a new income invoice with CFDI 4.0 compliance. Safe retries with idempotency_key. Send your own identifier for the invoice (for example your order id) in idempotency_key. gigstack claims the key before charging a credit or stamping, so repeating the request cannot issue a second CFDI or charge twice: - The invoice already exists: 400 with message.duplicate: true and message.uuid. - Another request with the key is still being processed: 409 idempotency_in_progress. Retry later. - The PAC's answer was lost: 503 PAC_OUTCOME_UNKNOWN with retryable: true. Retry with the same key: the same XML and folio are sent again, so the PAC stamps it once or returns the stamp it already made. - The PAC can't confirm an earlier attempt: 409 STAMP_NEEDS_REVIEW. Don't retry; contact support. - The serie and folio already belong to another CFDI of the issuer's RFC (for example, another account on the same RFC): 400 FOLIO_ALREADY_USED. Nothing was stamped and the key is free again. With your own folio_number, send another one; with gigstack's folios, give the team a serie of its own first, since the other account keeps using that serie. - The SAT or PAC rejected the data: 400, and the key is free again for a corrected request. Without an idempotency_key none of this applies, and after a 503 PAC_OUTCOME_UNKNOWN (retryable: false) you can't tell whether the invoice exists: look it up before sending it again. To issue many invoices at once, use POST /invoices/income/batch. Colombia: debit notes (notas débito). A team invoicing in Colombia issues a DIAN debit note through this same endpoint with document_kind: \\\"debit_note\\\", a motive, and related_documents: [{ \\\"relationship\\\": \\\"02\\\", \\\"documents\\\": [\\\"\\\"] }] naming the one sales invoice being debited. items are the additional amounts charged, not the original invoice's items. gigstack sends it to DIAN through Factus as a debit note that references that invoice. It needs an active \\\"Nota Débito\\\" numbering range in the team's Factus account; without one the request fails with COL_NUMBERING_RANGE_ERROR. The series and folio returned are DIAN's (for example ND3). The response is the usual income invoice (invoice_type: I) plus document_kind: \\\"debit_note\\\" and motive, and the debit note is listed by GET /invoices/income. A debit note can't be cancelled: to reverse it, issue a credit note on the original invoice. A credit or debit note can't be the document a debit note references. Malformed debit-note requests (no motive, wrong related_documents, combined with global, or from a team not invoicing in Colombia) are answered 400 before a credit is consumed or a folio reserved. gigstack Connect: Create invoices for other teams using the team parameter.\",\"url\":\"https://docs.gigstack.io/reference/createInvoicesIncome\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gigstack.io/reference/createInvoicesIncome#webpage\"},\"dateModified\":\"2026-10-30T15:36:46.105Z\",\"publisher\":{\"@id\":\"https://docs.gigstack.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gigstack.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"gigstack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"gigstack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/createInvoicesIncome.md","siteName":"gigstack","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Core resources","pages":[{"group":"Clients","expanded":true,"pages":[{"openapi":"openapi.json POST /clients","title":"Create client","href":"/reference/createClients"},{"openapi":"openapi.json GET /clients/{id}","title":"Get client","href":"/reference/getClientsById"},{"openapi":"openapi.json PUT /clients/{id}","title":"Update client","href":"/reference/updateClientsById"},{"openapi":"openapi.json DELETE /clients/{id}","title":"Delete client","href":"/reference/deleteClientsById"},{"openapi":"openapi.json GET /clients","title":"List clients","href":"/reference/listClients"},{"openapi":"openapi.json GET /clients/search","title":"Search clients","href":"/reference/getClientsSearch"},{"openapi":"openapi.json POST /clients/{id}/validate","title":"Validate client fiscal information","href":"/reference/validateClientById"},{"openapi":"openapi.json POST /clients/csf","title":"Upload CSF PDF to create or update client","href":"/reference/createClientsCsf"},{"openapi":"openapi.json POST /clients/{id}/stamp-pending-receipts","title":"Stamp pending receipts","href":"/reference/stampClientPendingReceipts"},{"openapi":"openapi.json POST /clients/validate/{id}","deprecated":true,"title":"Validate client fiscal information (deprecated path)","href":"/reference/createClientsValidateById"},{"openapi":"openapi.json POST /clients/customerportal","deprecated":true,"title":"Get client customer portal access token","href":"/reference/createClientsCustomerportal"},{"group":"Support documents","pages":[{"openapi":"openapi.json GET /clients/{id}/support-documents","title":"List a client's support documents","href":"/reference/getClientsByIdSupportDocuments"},{"openapi":"openapi.json POST /clients/{id}/support-documents","title":"Upload a client support document","href":"/reference/createClientsByIdSupportDocuments"}]}]},{"group":"Services","expanded":true,"pages":[{"openapi":"openapi.json POST /services","title":"Create service","href":"/reference/createServices"},{"openapi":"openapi.json GET /services/{id}","title":"Get service","href":"/reference/getServicesById"},{"openapi":"openapi.json PUT /services/{id}","title":"Update service","href":"/reference/updateServicesById"},{"openapi":"openapi.json DELETE /services/{id}","title":"Delete service","href":"/reference/deleteServicesById"},{"openapi":"openapi.json GET /services","title":"List services","href":"/reference/listServices"}]},{"group":"Invoices","expanded":true,"pages":[{"openapi":"openapi.json GET /invoices/{id}","title":"Get invoice","href":"/reference/getInvoiceById"},{"openapi":"openapi.json GET /invoices/search","title":"Search invoices","href":"/reference/getInvoicesSearch"},{"openapi":"openapi.json GET /invoices/errors","title":"List CFDI errors","href":"/reference/getInvoicesErrors"},{"openapi":"openapi.json GET /invoices/{id}/files","title":"Get invoice files","href":"/reference/getInvoicesByIdFiles"},{"openapi":"openapi.json POST /invoices/{id}/send","title":"Resend invoice email","href":"/reference/createInvoicesByIdSend"},{"openapi":"openapi.json PUT /invoices/{id}/pdf-details","title":"Edit an invoice's PDF notes and fields (Colombia)","href":"/reference/updateInvoicesByIdPdfDetails"},{"openapi":"openapi.json POST /invoices/{id}/cancel","title":"Cancel invoice","href":"/reference/cancelInvoiceById"},{"openapi":"openapi.json POST /invoices/eom/run","title":"Trigger end-of-month global invoicing","href":"/reference/runEndOfMonthInvoicing"},{"openapi":"openapi.json DELETE /invoices/{id}","deprecated":true,"title":"Cancel invoice (deprecated DELETE)","description":"[Small working example](/recipes/cancellation)\n\n**Integration note:** This recipe covers Mexican CFDI cancellation. A provider acknowledgment does not prove final cancellation. Read the invoice and confirm its persisted status; public nested cancellation fields can be absent. Colombian annulment uses different semantics.\n\n**Deprecated:** use [`POST /invoices/{id}/cancel`](/reference/cancelInvoiceById), which runs the same handler and takes the same body. Some HTTP clients and proxies drop the body of a DELETE request.\nThis route keeps working; its responses carry `Deprecation: true` and `Link: \u003c/v2/invoices/{id}/cancel>; rel=\"successor-version\"`, with the\nconcrete ID in place of each path parameter.\n\nCancel a specific invoice with SAT.\n\n**gigstack Connect:** Cancel other teams' invoices using the `team` parameter.\n","href":"/reference/cancelInvoice"},{"group":"Income invoices","pages":[{"openapi":"openapi.json POST /invoices/income","title":"Create income invoice","href":"/reference/createInvoicesIncome"},{"openapi":"openapi.json GET /invoices/income/{id}","title":"Get income invoice","description":"Retrieve a specific income invoice by ID.\n\n**gigstack Connect:** Access other teams' invoices using the `team` parameter.\n","href":"/reference/getInvoicesIncomeById"},{"openapi":"openapi.json GET /invoices/income","title":"List income invoices","href":"/reference/getInvoicesIncome"}]},{"group":"Egress invoices","pages":[{"openapi":"openapi.json POST /invoices/egress","title":"Create egress invoice","href":"/reference/createInvoicesEgress"},{"openapi":"openapi.json GET /invoices/egress/{id}","title":"Get egress invoice","href":"/reference/getInvoicesEgressById"},{"openapi":"openapi.json GET /invoices/egress","title":"List egress invoices","href":"/reference/getInvoicesEgress"}]},{"group":"Payment complements","pages":[{"openapi":"openapi.json POST /invoices/payment","title":"Create payment complement (complemento de pago)","href":"/reference/createInvoicesPayment"},{"openapi":"openapi.json GET /invoices/payment/{id}","title":"Get payment complement invoice","href":"/reference/getInvoicesPaymentById"},{"openapi":"openapi.json GET /invoices/payment","title":"List payment complement invoices","href":"/reference/getInvoicesPayment"}]},{"group":"Transfer invoices (Carta Porte)","pages":[{"openapi":"openapi.json POST /invoices/transfer","title":"Create transfer invoice (Carta Porte)","href":"/reference/postInvoicesTransfer"},{"openapi":"openapi.json GET /invoices/transfer/{id}","title":"Get transfer invoice","href":"/reference/getInvoicesTransferById"},{"openapi":"openapi.json GET /invoices/transfer","title":"List transfer invoices","href":"/reference/getInvoicesTransfer"}]},{"group":"Draft invoices","pages":[{"openapi":"openapi.json POST /invoices/draft","title":"Create draft invoice (pre-factura)","href":"/reference/createInvoicesDraft"},{"openapi":"openapi.json GET /invoices/draft/{id}","title":"Get draft invoice","href":"/reference/getInvoicesDraftById"},{"openapi":"openapi.json PUT /invoices/draft/{id}","title":"Update draft invoice","href":"/reference/updateInvoicesDraftById"},{"openapi":"openapi.json DELETE /invoices/draft/{id}","title":"Delete draft invoice","href":"/reference/deleteInvoicesDraftById"},{"openapi":"openapi.json GET /invoices/draft","title":"List draft invoices","href":"/reference/getInvoicesDraft"},{"openapi":"openapi.json POST /invoices/draft/{id}/stamp","title":"Stamp draft invoice (finalize)","href":"/reference/createInvoicesDraftByIdStamp"},{"openapi":"openapi.json POST /invoices/draft/{id}/preview","title":"Generate draft preview PDF (pre-factura)","href":"/reference/createInvoicesDraftByIdPreview"}]},{"group":"Invoice batches","pages":[{"openapi":"openapi.json POST /invoices/income/batch","title":"Create a batch of income invoices","href":"/reference/createIncomeInvoiceBatch"},{"openapi":"openapi.json GET /invoices/income/batch/{id}","title":"Get an income invoice batch","href":"/reference/getIncomeInvoiceBatch"},{"openapi":"openapi.json GET /invoices/income/batch/{id}/items","title":"List the items of an income invoice batch","href":"/reference/listIncomeInvoiceBatchItems"}]},{"group":"Support documents","pages":[{"openapi":"openapi.json GET /invoices/{id}/support-documents","title":"List an invoice's support documents","href":"/reference/getInvoicesByIdSupportDocuments"},{"openapi":"openapi.json POST /invoices/{id}/support-documents","title":"Upload an invoice support document","href":"/reference/createInvoicesByIdSupportDocuments"}]}]},{"group":"Receipts","expanded":true,"pages":[{"openapi":"openapi.json POST /receipts","title":"Create receipt","href":"/reference/createReceipts"},{"openapi":"openapi.json GET /receipts/{id}","title":"Get receipt","href":"/reference/getReceiptsById"},{"openapi":"openapi.json GET /receipts","title":"List receipts","href":"/reference/listReceipts"},{"openapi":"openapi.json GET /receipts/search","title":"Search receipts","href":"/reference/getReceiptsSearch"},{"openapi":"openapi.json POST /receipts/from-payments","title":"Create receipts for paid payments","href":"/reference/createReceiptsFromPayments"},{"openapi":"openapi.json POST /receipts/{id}/cancel","title":"Cancel receipt","href":"/reference/cancelReceiptById"},{"openapi":"openapi.json POST /receipts/{id}/stamp","title":"Stamp receipt","href":"/reference/createReceiptsByIdStamp"},{"openapi":"openapi.json POST /receipts/{id}/reopen","title":"Reopen receipt","href":"/reference/createReceiptsByIdReopen"},{"openapi":"openapi.json DELETE /receipts/{id}","deprecated":true,"title":"Cancel receipt (deprecated DELETE)","href":"/reference/deleteReceiptsById"}]},{"group":"Payments","expanded":true,"pages":[{"openapi":"openapi.json POST /payments/request","title":"Request payment (you want to get paid)","href":"/reference/createPaymentsRequest"},{"openapi":"openapi.json POST /payments/register","title":"Register payment (you were already paid)","href":"/reference/createPaymentsRegister"},{"openapi":"openapi.json POST /payments/register/batch","title":"Register a batch of payments","href":"/reference/createPaymentRegisterBatch"},{"openapi":"openapi.json GET /payments/{id}","title":"Get payment","href":"/reference/getPaymentsById"},{"openapi":"openapi.json GET /payments/register/batch/{id}","title":"Get a payment batch","href":"/reference/getPaymentRegisterBatch"},{"openapi":"openapi.json PUT /payments/{id}","title":"Update payment","href":"/reference/updatePaymentsById"},{"openapi":"openapi.json GET /payments","title":"List payments","href":"/reference/listPayments"},{"openapi":"openapi.json GET /payments/search","title":"Search payments","href":"/reference/getPaymentsSearch"},{"openapi":"openapi.json GET /payments/register/batch/{id}/items","title":"List the items of a payment batch","href":"/reference/listPaymentRegisterBatchItems"},{"openapi":"openapi.json POST /payments/{id}/cancel","title":"Cancel payment","href":"/reference/cancelPaymentById"},{"openapi":"openapi.json POST /payments/{id}/paid","title":"Mark payment as paid","href":"/reference/createPaymentsByIdPaid"},{"openapi":"openapi.json POST /payments/{id}/refund","title":"Refund payment","href":"/reference/createPaymentsByIdRefund"},{"openapi":"openapi.json DELETE /payments/{id}","deprecated":true,"title":"Cancel payment (deprecated DELETE)","href":"/reference/deletePaymentsById"},{"group":"Payment links","pages":[{"openapi":"openapi.json POST /payments/links","title":"Create reusable payment link","href":"/reference/createPaymentLink"},{"openapi":"openapi.json GET /payments/links/{linkId}","title":"Get reusable payment link","href":"/reference/getPaymentLink"},{"openapi":"openapi.json GET /payments/links/{linkId}/history/{resourceType}/{resourceId}","title":"Read an authorized historical invoice or receipt","href":"/reference/getPaymentLinkHistoryV2"},{"openapi":"openapi.json GET /payments/links/{linkId}/history/{resourceType}/{resourceId}/files/{fileType}","title":"Read an existing authorized historical PDF or XML","href":"/reference/getPaymentLinkHistoryFileV2"},{"openapi":"openapi.json GET /payments/links/operations/{operationId}","title":"Read payment-link operation","href":"/reference/getPaymentLinkOperation"},{"openapi":"openapi.json PATCH /payments/links/{linkId}","title":"Update reusable payment link","href":"/reference/updatePaymentLink"},{"openapi":"openapi.json DELETE /payments/links/{linkId}","title":"Delete reusable payment link","href":"/reference/deletePaymentLink"},{"openapi":"openapi.json GET /payments/links","title":"List reusable payment links","href":"/reference/listPaymentLinks"}]},{"group":"Reminders","pages":[{"openapi":"openapi.json GET /payments/{paymentId}/reminder-operations/{operationId}","title":"Get a payment reminder operation","href":"/reference/getPaymentReminderOperation"},{"openapi":"openapi.json GET /payments/{paymentId}/reminders","title":"Get payment reminder configuration","href":"/reference/getPaymentReminderConfiguration"},{"openapi":"openapi.json PUT /payments/{paymentId}/reminders","title":"Replace payment reminder configuration","href":"/reference/replacePaymentReminderConfiguration"},{"openapi":"openapi.json POST /payments/{paymentId}/reminder-operations/{operationId}/reconcile","title":"Reconcile a payment reminder operation","href":"/reference/reconcilePaymentReminderOperation"},{"openapi":"openapi.json POST /payments/{paymentId}/reminder-operations/{operationId}/continue","title":"Continue a payment reminder operation","href":"/reference/continuePaymentReminderOperation"},{"openapi":"openapi.json POST /payments/{paymentId}/reminder-recoveries","title":"Prepare a payment reminder recovery","href":"/reference/preparePaymentReminderRecovery"}]},{"group":"Support documents","pages":[{"openapi":"openapi.json GET /payments/{id}/support-documents","title":"List a payment's support documents","href":"/reference/getPaymentsByIdSupportDocuments"},{"openapi":"openapi.json POST /payments/{id}/support-documents","title":"Upload a payment support document","href":"/reference/createPaymentsByIdSupportDocuments"}]}]},{"group":"Retentions","expanded":true,"pages":[{"openapi":"openapi.json POST /retentions","title":"Create retention","href":"/reference/createRetentions"},{"openapi":"openapi.json GET /retentions/{id}","title":"Get retention","href":"/reference/getRetentionsById"},{"openapi":"openapi.json GET /retentions","title":"List retentions","href":"/reference/listRetentions"},{"openapi":"openapi.json GET /retentions/{id}/files","title":"Get retention files","href":"/reference/getRetentionsByIdFiles"},{"openapi":"openapi.json POST /retentions/{id}/cancel","title":"Cancel retention","href":"/reference/cancelRetentionById"},{"openapi":"openapi.json DELETE /retentions/{id}","deprecated":true,"title":"Cancel retention (deprecated DELETE)","href":"/reference/deleteRetentionsById"}]}]},{"group":"SAT and fiscal tools","pages":[{"group":"SAT catalogs","expanded":false,"pages":[{"openapi":"openapi.json GET /catalogs/product-keys","title":"Search SAT product keys","href":"/reference/getCatalogsProductKeys"},{"openapi":"openapi.json GET /catalogs/unit-keys","title":"Search SAT unit keys","href":"/reference/getCatalogsUnitKeys"}]},{"group":"SAT lists","expanded":false,"pages":[{"openapi":"openapi.json GET /sat-lists/check/{rfc}","title":"Check an RFC against the SAT lists","href":"/reference/getSatListsCheckByRfc"},{"openapi":"openapi.json GET /sat-lists/32d/{rfc}","title":"Consult the SAT \"Opinión del Cumplimiento\" (32-D) for an RFC","href":"/reference/getSatOpinion32dByRfc"},{"openapi":"openapi.json GET /sat-lists","title":"List SAT lists and sync status","href":"/reference/listSatLists"}]},{"group":"SAT bulk download","expanded":false,"pages":[{"openapi":"openapi.json GET /invoices/sat/{uuid}","title":"Get a SAT invoice","href":"/reference/getSatInvoice"},{"openapi":"openapi.json GET /invoices/sat","title":"List SAT invoices","href":"/reference/listSatInvoices"},{"openapi":"openapi.json GET /invoices/download/ciec","title":"Get the CIEC connection status","href":"/reference/getInvoicesDownloadCiec"},{"openapi":"openapi.json POST /invoices/import","title":"Import CFDI XMLs the team already holds","href":"/reference/importInvoiceXml"},{"openapi":"openapi.json POST /invoices/sat/{uuid}/retry-xml","title":"Retry XML download","href":"/reference/retrySatXmlDownload"},{"openapi":"openapi.json POST /invoices/sat/{uuid}/pdf","title":"Generate PDF for a received SAT invoice","href":"/reference/generateSatPdf"},{"openapi":"openapi.json POST /invoices/download/ciec","title":"Connect with the SAT password (CIEC)","href":"/reference/createInvoicesDownloadCiec"},{"openapi":"openapi.json DELETE /invoices/download/ciec","title":"Disconnect the CIEC","href":"/reference/deleteInvoicesDownloadCiec"},{"group":"Setup","pages":[{"openapi":"openapi.json GET /invoices/download/activate/status","title":"Check activation status","href":"/reference/getInvoicesDownloadActivateStatus"},{"openapi":"openapi.json GET /invoices/download/debug","title":"Debug registration status","href":"/reference/getInvoicesDownloadDebug"},{"openapi":"openapi.json POST /invoices/download/activate","title":"Activate Descarga Masiva SAT","href":"/reference/createInvoicesDownloadActivate"},{"openapi":"openapi.json POST /invoices/download/deactivate","title":"Deactivate Descarga Masiva SAT","href":"/reference/createInvoicesDownloadDeactivate"},{"openapi":"openapi.json POST /invoices/download/fiel","title":"Upload FIEL credentials","href":"/reference/createInvoicesDownloadFiel"},{"openapi":"openapi.json POST /invoices/download/register","title":"Register business with SAT (manual)","href":"/reference/createInvoicesDownloadRegister"},{"openapi":"openapi.json POST /invoices/download/enable-sync","title":"Enable SAT sync","href":"/reference/createInvoicesDownloadEnableSync"},{"openapi":"openapi.json POST /invoices/download/pfx","title":"Connect FIEL credentials from a PFX file","href":"/reference/connectFielPfx"}]},{"group":"Schedule and sync","pages":[{"openapi":"openapi.json GET /invoices/download/schedule","title":"Get schedule configuration","href":"/reference/getInvoicesDownloadSchedule"},{"openapi":"openapi.json GET /invoices/download/schedule/history","title":"Get download request history","href":"/reference/getInvoicesDownloadScheduleHistory"},{"openapi":"openapi.json GET /invoices/download/progress","title":"Get SAT history sync progress","href":"/reference/getInvoicesDownloadProgress"},{"openapi":"openapi.json PUT /invoices/download/schedule","title":"Save schedule configuration","href":"/reference/updateInvoicesDownloadSchedule"},{"openapi":"openapi.json PUT /invoices/download/sync-period","title":"Update bulk-download sync period","href":"/reference/updateBulkDownloadSyncPeriod"}]},{"group":"Preview and import jobs","pages":[{"openapi":"openapi.json GET /invoices/download/jobs/{id}","title":"Get one job with per-window detail","href":"/reference/getInvoicesDownloadJob"},{"openapi":"openapi.json GET /invoices/download/jobs","title":"List recent preview and import jobs","href":"/reference/listInvoicesDownloadJobs"},{"openapi":"openapi.json POST /invoices/download/preview","title":"Preview a range of SAT history before paying for it","href":"/reference/createInvoicesDownloadPreview"},{"openapi":"openapi.json POST /invoices/download/jobs/{id}/cancel","title":"Stop a running job","href":"/reference/cancelInvoicesDownloadJob"},{"openapi":"openapi.json POST /invoices/download/import","title":"Download XMLs for chosen CFDIs","href":"/reference/importInvoicesDownload"}]},{"group":"Download requests","pages":[{"openapi":"openapi.json GET /invoices/download/status/{request_id}","title":"Check download request status","href":"/reference/getInvoicesDownloadStatusByRequestId"},{"openapi":"openapi.json GET /invoices/download/package/{package_id}","title":"Download XML package","href":"/reference/getInvoicesDownloadPackageByPackageId"},{"openapi":"openapi.json GET /invoices/download/invoice/{uuid}","title":"Get single invoice from SAT","href":"/reference/getInvoicesDownloadInvoiceByUuid"},{"openapi":"openapi.json POST /invoices/download/request","title":"Create bulk download request","href":"/reference/createInvoicesDownloadRequest"}]}]}]},{"group":"Automation and data","pages":[{"group":"Webhooks","expanded":false,"pages":[{"openapi":"openapi.json POST /webhooks","title":"Create webhook","href":"/reference/createWebhooks"},{"openapi":"openapi.json GET /webhooks/{id}","title":"Get webhook","href":"/reference/getWebhooksById"},{"openapi":"openapi.json PUT /webhooks/{id}","title":"Update webhook","href":"/reference/updateWebhooksById"},{"openapi":"openapi.json DELETE /webhooks/{id}","title":"Delete webhook","href":"/reference/deleteWebhooksById"},{"openapi":"openapi.json GET /webhooks","title":"List webhooks","href":"/reference/listWebhooks"},{"openapi":"openapi.json POST /webhooks/{id}/test","title":"Send a test event","href":"/reference/testManualWebhook"},{"openapi":"openapi.json POST /webhooks/{id}/resend-current","title":"Send current resource state","href":"/reference/resendCurrentWebhook"},{"group":"Deliveries","pages":[{"openapi":"openapi.json GET /teams/{id}/webhook-deliveries/{logId}","title":"Read one webhook delivery log","href":"/reference/getWebhookDeliveryLog"},{"openapi":"openapi.json GET /teams/{id}/webhook-deliveries","title":"List webhook delivery logs","href":"/reference/listWebhookDeliveryLogs"},{"openapi":"openapi.json POST /teams/{id}/webhook-deliveries/{logId}/retry","title":"Retry a stored webhook event","href":"/reference/retryWebhookDelivery"}]},{"group":"Operations","pages":[{"openapi":"openapi.json GET /webhooks/configuration-operations/{operationId}","title":"Read webhook configuration operation","href":"/reference/getWebhookConfigurationOperation"},{"openapi":"openapi.json GET /teams/{id}/webhook-operations/{operationId}","title":"Read a webhook operation","href":"/reference/getManualWebhookOperation"}]}]},{"group":"Journeys","expanded":false,"pages":[{"openapi":"openapi.json POST /journeys","title":"Create a draft journey","href":"/reference/createJourney"},{"openapi":"openapi.json GET /journeys/{id}","title":"Get a journey","href":"/reference/getJourney"},{"openapi":"openapi.json PUT /journeys/{id}","title":"Update a journey draft","href":"/reference/updateJourney"},{"openapi":"openapi.json DELETE /journeys/{id}","title":"Delete a draft or archived journey","href":"/reference/deleteJourney"},{"openapi":"openapi.json GET /journeys","title":"List journeys","href":"/reference/listJourneys"},{"openapi":"openapi.json GET /journeys/catalog","title":"Get the journey node catalog","href":"/reference/getJourneyCatalog"},{"openapi":"openapi.json GET /journeys/{id}/runs","title":"List the latest journey runs","href":"/reference/listJourneyRuns"},{"openapi":"openapi.json POST /journeys/{id}/publish","title":"Publish a journey","href":"/reference/publishJourney"},{"openapi":"openapi.json POST /journeys/{id}/pause","title":"Pause a journey","href":"/reference/pauseJourney"},{"openapi":"openapi.json POST /journeys/{id}/clone","title":"Clone a journey","href":"/reference/cloneJourney"},{"openapi":"openapi.json POST /journeys/{id}/test","title":"Queue a journey dry-run","href":"/reference/testJourney"}]},{"group":"Journey groups","expanded":false,"pages":[{"openapi":"openapi.json POST /journey-groups","title":"Create a journey group","href":"/reference/createJourneyGroup"},{"openapi":"openapi.json GET /journey-groups/{id}","title":"Get a journey group","href":"/reference/getJourneyGroup"},{"openapi":"openapi.json PUT /journey-groups/{id}","title":"Update the final membership of a journey group","href":"/reference/updateJourneyGroup"},{"openapi":"openapi.json GET /journey-groups","title":"List journey groups","href":"/reference/listJourneyGroups"},{"openapi":"openapi.json POST /journey-groups/{id}/clone","title":"Clone a journey group","href":"/reference/cloneJourneyGroup"},{"openapi":"openapi.json POST /journey-groups/{id}/revert","title":"Revert the latest group edit","href":"/reference/revertJourneyGroup"},{"openapi":"openapi.json POST /journey-groups/{id}/publish","title":"Publish journeys in a group","href":"/reference/publishJourneyGroup"},{"openapi":"openapi.json POST /journey-groups/{id}/pause","title":"Pause journeys in a group","href":"/reference/pauseJourneyGroup"}]},{"group":"Documents","expanded":false,"pages":[{"openapi":"openapi.json POST /documents","title":"Create document","href":"/reference/createDocument"},{"openapi":"openapi.json GET /documents/{id}","title":"Get document","href":"/reference/getDocument"},{"openapi":"openapi.json PATCH /documents/{id}","title":"Update document","href":"/reference/updateDocument"},{"openapi":"openapi.json DELETE /documents/{id}","title":"Delete document","href":"/reference/deleteDocument"},{"openapi":"openapi.json GET /documents","title":"List documents","href":"/reference/listDocuments"},{"openapi":"openapi.json POST /documents/{id}/analyze","title":"Analyze document with AI","href":"/reference/analyzeDocument"},{"openapi":"openapi.json POST /documents/{id}/link","title":"Link document to an entity","href":"/reference/linkDocument"},{"openapi":"openapi.json DELETE /documents/{id}/link","title":"Unlink document from an entity","href":"/reference/unlinkDocument"}]},{"group":"Google Sheets","expanded":false,"pages":[{"openapi":"openapi.json POST /sheets/connect","title":"Connect a Google spreadsheet","href":"/reference/connectSheets"},{"openapi":"openapi.json GET /sheets","title":"Get Google Sheets connection status","href":"/reference/getSheetsConnection"},{"openapi":"openapi.json GET /sheets/fields","title":"List mappable Google Sheets fields","href":"/reference/getSheetsFields"},{"openapi":"openapi.json GET /sheets/headers","title":"Refresh Google Sheets headers","href":"/reference/refreshSheetsHeaders"},{"openapi":"openapi.json GET /sheets/rows","title":"List the latest Google Sheets row outcomes","href":"/reference/listSheetsRows"},{"openapi":"openapi.json POST /sheets/disconnect","title":"Disconnect Google Sheets","href":"/reference/disconnectGoogleSheets"},{"openapi":"openapi.json PUT /sheets/mapping","title":"Save a Google Sheets import mapping","href":"/reference/updateSheetsMapping"},{"openapi":"openapi.json POST /sheets/preview","title":"Preview a Google Sheets import","href":"/reference/previewSheets"},{"openapi":"openapi.json POST /sheets/enable","title":"Enable Google Sheets imports","href":"/reference/enableSheets"},{"openapi":"openapi.json POST /sheets/pause","title":"Pause Google Sheets imports","href":"/reference/pauseSheets"},{"openapi":"openapi.json POST /sheets/sync","title":"Queue a Google Sheets sync","href":"/reference/syncSheets"},{"openapi":"openapi.json DELETE /sheets","deprecated":true,"title":"Disconnect Google Sheets (deprecated DELETE)","href":"/reference/disconnectSheets"}]},{"group":"Platform payouts","expanded":false,"pages":[{"openapi":"openapi.json POST /platform-payouts","title":"Upload files and plan a platform payouts run","href":"/reference/createPlatformPayoutRun"},{"openapi":"openapi.json GET /platform-payouts/{id}","title":"Get a platform payouts run","href":"/reference/getPlatformPayoutRun"},{"openapi":"openapi.json GET /platform-payouts/{id}/movements","title":"List a platform payouts run's movements","href":"/reference/listPlatformPayoutMovements"},{"openapi":"openapi.json POST /platform-payouts/{id}/confirm","title":"Confirm a platform payouts run for stamping","href":"/reference/confirmPlatformPayoutRun"}]}]},{"group":"Teams and access","pages":[{"group":"Teams","expanded":false,"pages":[{"openapi":"openapi.json POST /teams","title":"Create team","href":"/reference/createTeams"},{"openapi":"openapi.json GET /teams/{id}","title":"Get team","href":"/reference/getTeamsById"},{"openapi":"openapi.json PUT /teams/{id}","title":"Update team","href":"/reference/updateTeamsById"},{"openapi":"openapi.json DELETE /teams/{id}","title":"Delete team","href":"/reference/deleteTeamsById"},{"openapi":"openapi.json GET /teams","title":"List teams","href":"/reference/listTeams"},{"openapi":"openapi.json GET /teams/{id}/onboarding","title":"Get team onboarding status","href":"/reference/getTeamsByIdOnboarding"},{"openapi":"openapi.json POST /teams/{id}/deactivate","title":"Deactivate a business (dar de baja)","href":"/reference/deactivateTeam"},{"openapi":"openapi.json POST /teams/{id}/reactivate","title":"Reactivate a business","href":"/reference/reactivateTeam"},{"group":"Members","pages":[{"openapi":"openapi.json PATCH /teams/{id}/members/{memberId}","title":"Update member role or permissions","href":"/reference/updateTeamMember"},{"openapi":"openapi.json DELETE /teams/{id}/members/{memberId}","title":"Remove team member","href":"/reference/removeTeamMember"},{"openapi":"openapi.json GET /teams/{id}/members","title":"List team members","href":"/reference/listTeamMembers"},{"openapi":"openapi.json POST /teams/{id}/add-member","title":"Add team member","href":"/reference/createTeamsByIdAddMember"},{"openapi":"openapi.json POST /teams/{id}/remove-member","deprecated":true,"title":"Remove team member (deprecated)","href":"/reference/createTeamsByIdRemoveMember"},{"openapi":"openapi.json POST /teams/{id}/transfer-ownership","deprecated":true,"title":"Transfer team ownership","href":"/reference/transferTeamOwnership"}]},{"group":"Invitations","pages":[{"openapi":"openapi.json POST /teams/{id}/invitations","title":"Invite a member","href":"/reference/createTeamInvitation"},{"openapi":"openapi.json GET /teams/{id}/invitations/{inviteId}","title":"Get team invitation","href":"/reference/getTeamInvitation"},{"openapi":"openapi.json DELETE /teams/{id}/invitations/{inviteId}","title":"Revoke team invitation","href":"/reference/revokeTeamInvitation"},{"openapi":"openapi.json GET /teams/{id}/invitations","title":"List team invitations","href":"/reference/listTeamInvitations"},{"openapi":"openapi.json GET /teams/invitations/inbox","title":"List current recipient invitation inbox","href":"/reference/listRecipientInvitations"},{"openapi":"openapi.json POST /teams/{id}/invitations/{inviteId}/resend","title":"Resend invitation email","href":"/reference/resendTeamInvitation"},{"openapi":"openapi.json POST /teams/invitations/accept","title":"Accept team invitation","href":"/reference/acceptTeamInvitation"},{"openapi":"openapi.json POST /teams/invitations/decline","title":"Decline team invitation","href":"/reference/declineTeamInvitation"}]},{"group":"Configuration","pages":[{"openapi":"openapi.json POST /teams/{id}/series","title":"Create team series","href":"/reference/createTeamsByIdSeries"},{"openapi":"openapi.json PUT /teams/{id}/series/{seriesId}","title":"Update team series","href":"/reference/updateTeamsByIdSeriesBySeriesId"},{"openapi":"openapi.json GET /teams/{id}/series","title":"Get team series","href":"/reference/getTeamsByIdSeries"},{"openapi":"openapi.json GET /teams/{id}/email-templates","title":"Read email template defaults","href":"/reference/getTeamEmailTemplates"},{"openapi":"openapi.json GET /teams/{id}/settings","title":"Get team settings","href":"/reference/getTeamSettings"},{"openapi":"openapi.json GET /teams/{id}/onboarding-url","title":"Get team onboarding URL","href":"/reference/getTeamsByIdOnboardingUrl"},{"openapi":"openapi.json PUT /teams/{id}/settings","title":"Update team settings","href":"/reference/updateTeamsByIdSettings"},{"openapi":"openapi.json POST /teams/{id}/sat-connection","title":"Upload SAT CSD certificates","href":"/reference/createTeamsByIdSatConnection"},{"openapi":"openapi.json POST /teams/{id}/manifest/sign","title":"Sign manifest document","href":"/reference/createTeamsByIdManifestSign"},{"openapi":"openapi.json POST /teams/{id}/portal-access-token","deprecated":true,"title":"Create a portal access token","href":"/reference/createTeamsByIdPortalAccessToken"}]},{"group":"Portal operations","pages":[{"openapi":"openapi.json POST /teams/{id}/customer-portal-operations","title":"Prepare a customer portal operation","href":"/reference/prepareCustomerPortalOperation"},{"openapi":"openapi.json POST /teams/{id}/invoice-portal-operations","title":"Prepare an invoice portal operation","href":"/reference/prepareInvoicePortalOperation"},{"openapi":"openapi.json GET /teams/{id}/customer-portal-operations/{operationId}","title":"Get a customer portal operation","href":"/reference/getCustomerPortalOperation"},{"openapi":"openapi.json GET /teams/{id}/invoice-portal-operations/{operationId}","title":"Get an invoice portal operation","href":"/reference/getInvoicePortalOperation"},{"openapi":"openapi.json DELETE /teams/{id}/customer-portal-operations/{operationId}","title":"Cancel a customer portal operation","href":"/reference/cancelCustomerPortalOperation"},{"openapi":"openapi.json DELETE /teams/{id}/invoice-portal-operations/{operationId}","title":"Cancel an invoice portal operation","href":"/reference/cancelInvoicePortalOperation"}]},{"group":"Vendors","pages":[{"openapi":"openapi.json GET /teams/{id}/vendors/operations/{operationId}","title":"Read vendor creation operation","href":"/reference/getVendorCreationOperationV2"},{"openapi":"openapi.json GET /teams/{id}/vendors/{vendorId}/onboarding-capability","title":"Read safe vendor capability status","href":"/reference/getVendorOnboardingCapabilityV2"},{"openapi":"openapi.json POST /teams/{id}/vendors","title":"Create vendor account","href":"/reference/createVendorV2"}]},{"group":"API logs","pages":[{"openapi":"openapi.json GET /teams/{id}/api-logs/{logId}","title":"Read one API log","href":"/reference/getApiLog"},{"openapi":"openapi.json GET /teams/{id}/api-logs","title":"List API logs","href":"/reference/listApiLogs"}]}]},{"group":"Users","expanded":false,"pages":[{"openapi":"openapi.json POST /users","title":"Create user","href":"/reference/createUsers"},{"openapi":"openapi.json GET /users/{id}","title":"Get user","href":"/reference/getUsersById"},{"openapi":"openapi.json PUT /users/{id}","title":"Update user","href":"/reference/updateUsersById"},{"openapi":"openapi.json DELETE /users/{id}","title":"Remove a user from administered teams","href":"/reference/deleteUser"},{"openapi":"openapi.json GET /users","title":"List users","href":"/reference/listUsers"},{"openapi":"openapi.json POST /users/reset-password/{id}","deprecated":true,"title":"Retired direct password-reset email","href":"/reference/resetUserPassword"},{"openapi":"openapi.json POST /users/login-link","deprecated":true,"title":"Legacy direct login link (deprecated)","href":"/reference/createUsersLoginLink"},{"group":"Password reset","pages":[{"openapi":"openapi.json POST /users/{id}/password-reset-recoveries","title":"Prepare privately reviewed reset recovery","href":"/reference/preparePasswordResetRecovery"},{"openapi":"openapi.json POST /users/{id}/password-reset-operations","title":"Prepare one reset email","href":"/reference/preparePasswordResetOperation"},{"openapi":"openapi.json GET /users/{id}/password-reset-recoveries/{operationId}","title":"Read safe reset recovery status","href":"/reference/getPasswordResetRecovery"},{"openapi":"openapi.json GET /users/{id}/password-reset-operations/{operationId}","title":"Read saved reset email status","href":"/reference/getPasswordResetOperation"},{"openapi":"openapi.json DELETE /users/{id}/password-reset-operations/{operationId}","title":"Cancel an untouched reset preparation","href":"/reference/cancelPasswordResetOperation"},{"openapi":"openapi.json POST /users/{id}/password-reset-operations/{operationId}/execute","title":"Request the prepared reset email","href":"/reference/executePasswordResetOperation"}]}]},{"group":"Your account","expanded":false,"pages":[{"openapi":"openapi.json GET /users/me/preferences/{teamId}","title":"Read your team preferences","href":"/reference/getSelfPreferences"},{"openapi":"openapi.json PATCH /users/me/preferences/{teamId}","title":"Update your team preferences","href":"/reference/updateSelfPreferences"},{"openapi":"openapi.json GET /users/me","title":"Read your account profile","href":"/reference/getSelfProfile"},{"openapi":"openapi.json PATCH /users/me","title":"Update your account profile","href":"/reference/updateSelfProfile"},{"openapi":"openapi.json POST /users/me/active-context","title":"Select your active team or billing account","href":"/reference/selectSelfActiveContext"},{"group":"Notifications","pages":[{"openapi":"openapi.json DELETE /users/me/notifications/{notificationId}","title":"Dismiss a notification","href":"/reference/dismissSelfNotification"},{"openapi":"openapi.json GET /users/me/notifications","title":"List your notifications","href":"/reference/listSelfNotifications"},{"openapi":"openapi.json GET /users/me/notifications/unread-count","title":"Count your unread notifications","href":"/reference/countSelfUnreadNotifications"},{"openapi":"openapi.json POST /users/me/notifications/read-all","title":"Mark your notifications as read","href":"/reference/markSelfNotificationsRead"},{"openapi":"openapi.json POST /users/me/notifications/{notificationId}/read","title":"Mark one notification as read","href":"/reference/markSelfNotificationRead"}]},{"group":"MCP tokens","pages":[{"openapi":"openapi.json DELETE /users/me/mcp-tokens/{keyId}","title":"Revoke a personal MCP token","href":"/reference/revokeSelfMcpToken"},{"openapi":"openapi.json GET /users/me/mcp-tokens","title":"List your MCP token metadata","href":"/reference/listSelfMcpTokens"},{"openapi":"openapi.json POST /users/me/mcp-tokens","deprecated":true,"title":"Retired: Create a personal MCP token","href":"/reference/createSelfMcpToken"}]}]},{"group":"Account approvals","expanded":false,"pages":[{"openapi":"openapi.json POST /users/me/account-approvals","title":"Prepare an account approval","href":"/reference/prepareAccountApproval"},{"openapi":"openapi.json GET /users/me/account-approvals/{id}","title":"Read an account approval","href":"/reference/getAccountApproval"},{"openapi":"openapi.json DELETE /users/me/account-approvals/{id}","title":"Cancel a pending account approval","href":"/reference/cancelAccountApproval"},{"openapi":"openapi.json POST /users/me/account-approvals/{id}/reconcile","title":"Reconcile managed identity provisioning evidence","href":"/reference/reconcileAccountApproval"},{"group":"Account invitations","pages":[{"openapi":"openapi.json GET /users/me/account-invitations/{id}","title":"Read an account invitation","href":"/reference/getAccountInvitation"},{"openapi":"openapi.json DELETE /users/me/account-invitations/{id}","title":"Revoke an account invitation","href":"/reference/revokeAccountInvitation"},{"openapi":"openapi.json POST /users/me/account-invitations/{id}/resend","title":"Resend an account invitation","href":"/reference/resendAccountInvitation"}]}]},{"group":"API keys","expanded":false,"pages":[{"openapi":"openapi.json DELETE /api-keys/{keyId}","title":"Revoke an API credential","href":"/reference/revokeApiCredential"},{"openapi":"openapi.json GET /api-keys","title":"List API credential metadata","href":"/reference/listApiCredentials"},{"openapi":"openapi.json POST /api-keys/emergency-revoke","title":"Revoke legacy team API and MCP credentials","href":"/reference/emergencyRevokeApiCredentials"},{"openapi":"openapi.json POST /api-keys","deprecated":true,"title":"Retired: Create live and test API credentials","href":"/reference/createApiCredentials"},{"openapi":"openapi.json POST /api-keys/rotate","deprecated":true,"title":"Retired: Rotate live and test API credentials","href":"/reference/rotateApiCredentials"},{"group":"Scoped API keys","pages":[{"openapi":"openapi.json GET /users/me/scoped-api-keys/{keyId}","title":"Read exact safe key scope and permissions","href":"/reference/getScopedApiKey"},{"openapi":"openapi.json GET /users/me/scoped-api-keys/emergency-revocations/{operationId}","title":"Read saved owner scoped-key emergency status","href":"/reference/getScopedApiKeyEmergencyRevocation"},{"openapi":"openapi.json DELETE /users/me/scoped-api-keys/{keyId}","title":"Revoke only one authorized key with a persisted operation UUID","href":"/reference/revokeScopedApiKey"},{"openapi":"openapi.json GET /users/me/scoped-api-keys","title":"List named and legacy key metadata","href":"/reference/listScopedApiKeys"},{"openapi":"openapi.json GET /users/me/scoped-api-keys/policy","title":"Read eligible exact team/action/manager policy","href":"/reference/getScopedApiKeyPolicy"},{"openapi":"openapi.json GET /users/me/scoped-api-keys/{keyId}/audit","title":"Read safe per-key lifecycle audit","href":"/reference/listScopedApiKeyAudit"},{"openapi":"openapi.json POST /users/me/scoped-api-keys/emergency-revoke","title":"Revoke all billing-account scoped keys with a saved operation UUID","href":"/reference/emergencyRevokeScopedApiKeys"}]}]}]},{"group":"Account settings and integrations","pages":[{"group":"Integrations","expanded":false,"pages":[{"openapi":"openapi.json GET /teams/{id}/integrations/catalog","title":"List account integration capabilities","href":"/reference/listAccountIntegrations"},{"openapi":"openapi.json GET /teams/{id}/integrations/{provider}","title":"Read stored integration settings","href":"/reference/getAccountIntegration"},{"openapi":"openapi.json GET /teams/integrations","title":"Get stored integration status","href":"/reference/getTeamIntegrations"},{"openapi":"openapi.json PATCH /teams/{id}/integrations/{provider}/settings","title":"Update provider settings","href":"/reference/updateAccountIntegrationSettings"},{"group":"Stripe","pages":[{"openapi":"openapi.json GET /teams/{id}/integrations/stripe/connection","title":"Read Stripe connection","href":"/reference/getStripeConnectionV2"},{"openapi":"openapi.json POST /teams/{id}/integrations/stripe/connection-sessions","title":"Prepare Stripe connection","href":"/reference/prepareStripeConnectionV2"},{"openapi":"openapi.json GET /teams/{id}/integrations/stripe/operations/{operationId}","title":"Read saved Stripe operation","href":"/reference/getStripeConnectionOperationV2"},{"openapi":"openapi.json POST /teams/{id}/integrations/stripe/disconnect","title":"Remove local Stripe credentials","href":"/reference/disconnectStripeLocalV2"},{"openapi":"openapi.json POST /teams/{id}/integrations/stripe/connection-sessions/{operationId}/cancel","title":"Cancel untouched Stripe setup","href":"/reference/cancelStripeConnectionV2"},{"openapi":"openapi.json POST /teams/{id}/integrations/stripe/standard-accounts","title":"Create a Standard Stripe account","href":"/reference/createStripeStandardAccountV2"},{"openapi":"openapi.json POST /teams/{id}/integrations/stripe/standard-accounts/{accountId}/refresh","title":"Refresh Standard Stripe account activation","href":"/reference/refreshStripeStandardAccountV2"}]},{"group":"NetSuite","pages":[{"openapi":"openapi.json GET /teams/{id}/integrations/netsuite/status","title":"Get NetSuite connection status","href":"/reference/accountNetsuiteStatus"},{"openapi":"openapi.json GET /teams/{id}/integrations/netsuite/invoices/{invoiceId}/sync","title":"Get an invoice NetSuite sync status","href":"/reference/accountNetsuiteSyncStatus"},{"openapi":"openapi.json GET /teams/{id}/integrations/netsuite/syncs","title":"List NetSuite syncs","href":"/reference/accountNetsuiteSyncs"},{"openapi":"openapi.json GET /teams/{id}/integrations/netsuite/items","title":"Get NetSuite item settings","href":"/reference/accountNetsuiteItemsConfig"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/ping","title":"Test the NetSuite connection","href":"/reference/accountNetsuitePing"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/disconnect","title":"Disconnect NetSuite","href":"/reference/disconnectNetsuite"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/invoices/{invoiceId}/sync","title":"Sync an invoice to NetSuite","href":"/reference/accountNetsuiteSync"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/invoices/{invoiceId}/resync","title":"Resync an invoice to NetSuite","href":"/reference/accountNetsuiteResync"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/items/preview","title":"Preview a NetSuite item rule","href":"/reference/accountNetsuiteItemsPreview"},{"openapi":"openapi.json POST /teams/{id}/integrations/netsuite/items/rules","title":"Save a NetSuite item rule","href":"/reference/accountNetsuiteItemsRule"},{"openapi":"openapi.json DELETE /teams/{id}/integrations/netsuite/connection","deprecated":true,"title":"Disconnect NetSuite (deprecated DELETE)","href":"/reference/accountNetsuiteDisconnect"}]},{"group":"Zettle","pages":[{"openapi":"openapi.json GET /teams/{id}/integrations/zettle/status","title":"Get Zettle connection status","href":"/reference/accountZettleStatus"},{"openapi":"openapi.json PATCH /teams/{id}/integrations/zettle/connection-settings","title":"Update Zettle connection settings","href":"/reference/accountZettleSettings"},{"openapi":"openapi.json POST /teams/{id}/integrations/zettle/sync","title":"Run a Zettle sync","href":"/reference/accountZettleSync"},{"openapi":"openapi.json POST /teams/{id}/integrations/zettle/disconnect","title":"Disconnect Zettle","href":"/reference/disconnectZettle"},{"openapi":"openapi.json DELETE /teams/{id}/integrations/zettle/connection","deprecated":true,"title":"Disconnect Zettle (deprecated DELETE)","href":"/reference/accountZettleDisconnect"}]},{"group":"Airtable","pages":[{"openapi":"openapi.json POST /teams/{id}/integrations/airtable/webhooks","title":"Register an Airtable import mapping","href":"/reference/registerAirtableWebhook"},{"openapi":"openapi.json GET /teams/{id}/integrations/airtable/operations/{operationId}","title":"Read an Airtable operation","href":"/reference/getAirtableOperation"},{"openapi":"openapi.json DELETE /teams/{id}/integrations/airtable/webhooks/{webhookId}","title":"Remove an Airtable import mapping","href":"/reference/unregisterAirtableWebhook"},{"openapi":"openapi.json GET /teams/{id}/integrations/airtable/webhooks","title":"List Airtable import mappings","href":"/reference/listAirtableWebhooks"},{"openapi":"openapi.json GET /teams/{id}/integrations/airtable/bases","title":"List Airtable bases","href":"/reference/listAirtableBases"},{"openapi":"openapi.json GET /teams/{id}/integrations/airtable/bases/{baseId}/tables","title":"List Airtable tables and fields","href":"/reference/listAirtableTables"},{"openapi":"openapi.json GET /teams/{id}/integrations/airtable/bases/{baseId}/webhooks/remote","title":"Inspect remote Airtable webhooks","href":"/reference/listAirtableRemoteWebhooks"},{"openapi":"openapi.json POST /teams/{id}/integrations/airtable/disconnect","title":"Disconnect Airtable imports across modes","href":"/reference/disconnectAirtable"},{"openapi":"openapi.json POST /teams/{id}/integrations/airtable/operations/{operationId}/reconcile","title":"Reconcile Airtable without replaying writes","href":"/reference/reconcileAirtableOperation"}]}]},{"group":"Provider setup","expanded":false,"pages":[{"openapi":"openapi.json POST /teams/{id}/integration-connection-sessions","title":"Create provider browser setup session","href":"/reference/integrationSetupCreate"},{"openapi":"openapi.json GET /teams/{id}/integration-connection-sessions/{sessionId}","title":"Read provider setup outcome","href":"/reference/integrationSetupGet"},{"openapi":"openapi.json DELETE /teams/{id}/integration-connection-sessions/{sessionId}","title":"Cancel pending provider setup","href":"/reference/integrationSetupCancel"},{"openapi":"openapi.json POST /teams/{id}/integration-connection-sessions/{sessionId}/reconcile","title":"Reconcile an existing provider attempt","href":"/reference/integrationSetupReconcile"}]},{"group":"Billing","expanded":false,"pages":[{"openapi":"openapi.json GET /teams/{id}/billing/summary","title":"Read account subscription and usage","href":"/reference/accountBillingSummary"},{"openapi":"openapi.json GET /teams/{id}/billing/prices","title":"Read Pricing v3 prices","href":"/reference/accountBillingPrices"},{"openapi":"openapi.json GET /teams/{id}/billing/plans","title":"List eligible legacy account plans","href":"/reference/accountBillingPlans"},{"openapi":"openapi.json GET /teams/{id}/billing/history","title":"List account billing invoices","href":"/reference/accountBillingHistory"},{"openapi":"openapi.json GET /teams/{id}/billing/fiscal","title":"Read account fiscal details","href":"/reference/accountBillingFiscalGet"},{"openapi":"openapi.json PATCH /teams/{id}/billing/fiscal","title":"Update account fiscal details","href":"/reference/accountBillingFiscalUpdate"},{"openapi":"openapi.json POST /teams/{id}/billing/checkout","title":"Start legacy account plan checkout","href":"/reference/accountBillingCheckout"},{"openapi":"openapi.json POST /teams/{id}/billing/upgrade","title":"Upgrade legacy account subscription","href":"/reference/accountBillingUpgrade"},{"openapi":"openapi.json POST /teams/{id}/billing/portal","title":"Open account billing portal","href":"/reference/accountBillingPortal"},{"openapi":"openapi.json POST /teams/{id}/billing/go-live","title":"Take a team live (pricing v3)","href":"/reference/accountBillingGoLive"},{"openapi":"openapi.json POST /teams/{id}/billing/features","title":"Turn a feature on for a team (pricing v3)","href":"/reference/accountBillingFeatureActivate"},{"openapi":"openapi.json POST /teams/{id}/billing/features/deactivate","title":"Turn a feature off for a team (pricing v3)","href":"/reference/accountBillingFeatureDeactivate"},{"group":"Billing operations","pages":[{"openapi":"openapi.json GET /teams/{id}/billing/operations/{operationId}","title":"Read billing operation","href":"/reference/accountBillingOperationGet"},{"openapi":"openapi.json POST /teams/{id}/billing/operations/{operationId}/reconcile","title":"Reconcile billing operation","href":"/reference/accountBillingReconcile"},{"openapi":"openapi.json POST /teams/{id}/billing/operations/{operationId}/cancel","title":"Cancel an open account checkout","href":"/reference/accountBillingCheckoutCancel"},{"openapi":"openapi.json POST /teams/{id}/billing/operations/{operationId}/resolve","title":"Release uncertain billing operation","href":"/reference/accountBillingResolve"}]}]},{"group":"Pricing","expanded":false,"pages":[{"openapi":"openapi.json GET /pricing","title":"Read the public price list","href":"/reference/getPublicPrices"}]},{"group":"Branding","expanded":false,"pages":[{"openapi":"openapi.json GET /teams/{id}/customer-portal","title":"Read customer portal registration","href":"/reference/accountPortalGet"},{"openapi":"openapi.json GET /teams/{id}/brand","title":"Read team branding","href":"/reference/accountBrandGet"},{"openapi":"openapi.json PUT /teams/{id}/customer-portal","title":"Register or rename customer portal","href":"/reference/accountPortalSet"},{"openapi":"openapi.json PATCH /teams/{id}/brand","title":"Update supplied team branding fields","href":"/reference/accountBrandUpdate"},{"openapi":"openapi.json POST /teams/{id}/brand/logo","title":"Upload team logo","href":"/reference/accountBrandLogoUpload"},{"openapi":"openapi.json DELETE /teams/{id}/brand/logo","title":"Remove team logo","href":"/reference/accountBrandLogoDelete"},{"openapi":"openapi.json POST /teams/{id}/brand/analyze-voice","title":"Analyze website brand voice without saving","href":"/reference/accountBrandAnalyzeVoice"}]},{"group":"Email domain","expanded":false,"pages":[{"openapi":"openapi.json GET /teams/{id}/email-domain","title":"Read custom email domain and DNS state","href":"/reference/emailDomainGet"},{"openapi":"openapi.json PUT /teams/{id}/email-domain","title":"Set custom email domain","href":"/reference/emailDomainSet"},{"openapi":"openapi.json DELETE /teams/{id}/email-domain","title":"Remove current custom email domain","href":"/reference/emailDomainRemove"},{"openapi":"openapi.json POST /teams/{id}/email-domain/validate","title":"Validate custom email DNS","href":"/reference/emailDomainValidate"},{"group":"Email-domain operations","pages":[{"openapi":"openapi.json GET /teams/{id}/email-domain/operations/{operationId}","title":"Read email-domain operation","href":"/reference/emailDomainOperationGet"},{"openapi":"openapi.json POST /teams/{id}/email-domain/operations/{operationId}/reconcile","title":"Reconcile email-domain operation without replay","href":"/reference/emailDomainOperationReconcile"},{"openapi":"openapi.json POST /teams/{id}/email-domain/operations/{operationId}/resolve","title":"Release unresolved email-domain operation","href":"/reference/emailDomainOperationResolve"}]}]},{"group":"Fiscal handoff","expanded":false,"pages":[{"openapi":"openapi.json POST /teams/{id}/fiscal-upload-sessions","title":"Create a secure fiscal upload session","href":"/reference/createFiscalUploadSession"},{"openapi":"openapi.json GET /teams/{id}/fiscal-upload-sessions/{sessionId}","title":"Read a fiscal upload session","href":"/reference/getFiscalUploadSession"},{"openapi":"openapi.json DELETE /teams/{id}/fiscal-upload-sessions/{sessionId}","title":"Cancel a pending fiscal upload session","href":"/reference/cancelFiscalUploadSession"},{"openapi":"openapi.json GET /teams/{id}/fiscal-status","title":"Read safe team fiscal status","href":"/reference/getTeamFiscalStatus"},{"openapi":"openapi.json POST /teams/{id}/fiscal-upload-sessions/{sessionId}/reconcile","title":"Reconcile a fiscal upload outcome","href":"/reference/reconcileFiscalUploadSession"}]}]},{"group":"Health","pages":[{"group":"Auth","expanded":false,"pages":[{"openapi":"openapi.json POST /auth/sandbox","title":"Create a test-only sandbox account for a person","href":"/reference/createAgentSandbox"},{"openapi":"openapi.json POST /auth/sandbox/claim","title":"Claim a sandbox with the emailed code","href":"/reference/claimAgentSandbox"}]}]}]}]},"basePath":"","title":"Create income invoice - gigstack","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}