The Spanish version is the authoritative reference. View in Spanish
π¨π· Costa Rica
This sheet assumes you know the xPOS-Core communication protocol. Here we only document what is specific to Costa Rica.
Summaryβ
| Aspect | Value |
|---|---|
country code | cr |
| Tax authority | Ministry of Finance (MH) |
| Pattern | A β XML with XSD |
Supported inputType | json, xml, xdoc, txt |
| Extra endpoint | β |
| Output | Signed tax XML |
XSLT mappingβ
| XSLT | Use |
|---|---|
input_to_dte_cr.xslt | json and xml inputs β XML <root> β Gosocket XML. |
other_to_dte_cr.xslt | txt input β Gosocket XML. Does not go through input_to_dte. |
xdoc_to_dte_cr.xslt | xdoc input β Gosocket XML. Does not go through input_to_dte. |
dte_to_fiscal_cr.xslt | Gosocket XML β MH tax DTE. |
custom_response_cr.xslt | Generates custom_response when applicable. |
Document types (typeDoc)β
WebSocket example uses
typeDoc=1.
Costa Rica-specific response fieldsβ
Costa Rica returns the entire core + full tax echo (statusCode/Description/Message) + applicationResponse + timeGeneration + timeValidation.
countryIdentificationCode in Costa Rica corresponds to the MH numeric key (50 digits).
WebSocket exampleβ
Illustrative values. The structure is real; the data are examples.
{
"env": "sbx",
"operation": "consolidate",
"typeDoc": 1,
"country": "cr",
"inputType": "json",
"origin": "<issuer taxId>",
"document": { /* DTE Costa Rica */ }
}Particular notesβ
- Publishes in Inbox-Gosocket.
- Re-retrieval via
/api/v1/statuswithtransactionIdorfolio + typeDoc.