Skip to main content
branches.write is an explicit permission: it must be checked in External integrations; existing integrations do not receive it automatically.
Each branch has an establishment code (M001 for the head office, S001, S002… for the others) and one or more points of sale (P001, P002…). Each point of sale keeps its own numbering of electronic documents. In El Salvador, the DTE control number is built from both codes:
In other countries the document number is defined by the tax authority (for example, series and authorization number in Guatemala, prefix and sequence of the DIAN resolution in Colombia, or the 20-digit sequence with branch and terminal in Costa Rica). See Points of sale. The M001/P001 formats in the examples are those of El Salvador.
  • Every branch always has a default point of sale (P001 at the start). Sales that do not specify a point of sale and do not belong to a cash register session are issued with it.
  • The default one cannot be deactivated.
  • The establishment code and the default point of sale are managed from FileXpress (Billing → Settings → Points of sale). See Points of sale.
Establishment and point of sale codes must match those registered with the Ministry of Finance (Hacienda). Verify them before issuing from a new point of sale.

List branches

No permission required. Returns the business’s branches with their points of sale (the default first, then by code):

Create point of sale

Response 201
When it is created, FileXpress generates its own numbering for each document type of the current year, starting at 1. Errors

Edit point of sale

The code cannot be changed. Renaming a point of sale does not affect documents that were already issued.
Response 200: the point of sale with the same fields as when it was created. Errors

Use the point of sale

  • Create sale: optional field point_of_sale_id.
  • Open cash register: point_of_sale_id, mandatory if the branch has more than one active point of sale.

Errors