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. The parameter is numeric:typeDoc=1andtypeDoc=01are equivalent.
typeDoc | Document |
|---|---|
| 01 | Internal operation invoice |
| 02 | Import invoice |
| 03 | Export invoice |
| 04 | Credit note referring to one or several FE |
| 05 | Debit note referring to one or several FE |
| 06 | Generic credit note |
| 07 | Generic debit note |
| 08 | Free zone invoice |
| 09 | Reimbursement |
| 10 | Foreign operation invoice |
All ten types follow the same path: Panama does not branch processing by document type.
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.