Skip to main content
Required permission: countries (for GET /countries/{code}). Sending country_data in a sale only requires sales. Each country has its own document types, taxes, and payment methods, and each tax system asks for different data. This endpoint tells your integration what exists and what is required in a country, so you can build your forms and validate before issuing, without country-specific code.

Get a country

{code} is the country’s two-letter ISO code (SV, GT, US). It returns the country catalog for your integration’s business (for example, the business’s base currency).

adapter

Errors

country_data: a country’s own data

Fields that exist only in one country go inside country_data in POST /sales. Each country defines its own structure, which you get from adapter.country_data_schema.
  • It is validated before transmitting: if anything fails, the sale is not created and no document number is consumed.
  • For Guatemala, gt is still accepted as a synonym of country_data. If you send both, country_data wins.
  • It is only validated with electronic invoicing active, because without it the country does not use those fields.
The valid document types in v2 are those of the branch’s country (for example fact, fcam, and nev in Guatemala), not the fixed list from v1.