The Spanish version is the authoritative reference. View in Spanish
π΅π¦ Panama
This sheet assumes you know the xPOS-Core communication protocol. Here we only document what is specific to Panama.
Summaryβ
| Aspect | Value |
|---|---|
country code | pa |
| Tax authority | PAC-GS / DGI |
| Pattern | A β XML with XSD |
Supported inputType | json, xml, xdoc, txt |
| Extra endpoint | β |
| Output | Signed tax XML |
XSLT mappingβ
| XSLT | Use |
|---|---|
input_to_dte_pa.xslt | json and xml inputs β XML <root> β Gosocket XML. |
other_to_dte_pa.xslt | txt input β Gosocket XML. Does not go through input_to_dte. |
xdoc_to_dte_pa.xslt | xdoc input β Gosocket XML. Does not go through input_to_dte. |
dte_to_fiscal_pa.xslt | Gosocket XML β DGI tax DTE. |
custom_response_pa.xslt | Generates custom_response when applicable. |
Document types (typeDoc)β
WebSocket example uses
typeDoc=1.
Panama-specific response fieldsβ
Panama returns the entire core + full tax echo (statusCode/Description/Message) + applicationResponse + timeGeneration + timeValidation.
countryIdentificationCode in Panama is the CUFE (Unique Electronic Invoice Code).
WebSocket exampleβ
Illustrative values. The structure is real; the data are examples.
{
"env": "sbx",
"operation": "consolidate",
"typeDoc": 1,
"country": "pa",
"inputType": "xml",
"origin": "<issuer taxId>",
"document": { /* DTE Panama */ }
}Particular notesβ
- PAC: submission to DGI is done via PAC-GS.
- Publishes in API/Storage Gosocket.