The Spanish version is the authoritative reference. View in Spanish
๐ฉบ Resilience and operation
Everything you need after integrating issuance: recovering lost responses, monitoring the service's health, reloading configuration and querying the operational history.
๐ Status re-retrievalโ
Did the POS lose the original response (network problem, restart, audit)? There is no need to resend the document: with any of the following identifiers the original response is retrieved.
- Method:
GET - Endpoint:
http://localhost:3200/api/v1/status
Query paramsโ
At least one parameter is needed to identify the document. Some countries require specific combinations โ see the country sheet.
typeDoc + docNumber take precedence: if both are sent, transactionId is ignored.
If the issuer has the Personalizada output mode configured, this endpoint responds with the format defined by its template, not with the standard JSON. See Custom response.
Responseโ
The Swagger declares the following fields in the 200 response:
Response 400: { date, message, stage, uuid, _id }.
๐ฉบ Healthcheckโ
"Is it alive and healthy?" Returns the operational status of the xPOS Core so that any external monitor can verify it without touching the operation.
- Method:
GET - Endpoint:
/api/v1/health
The 200 response includes:
status,message(okwhen everything is healthy).cwd,xposVersion,schemaVersion(Realm).checks.companyโ{ taxId, name }of the company.checks.onboardingโ{ uuid, country, environment }of the current onboarding.checks.filesโ flags per critical file:xslt,xsd,schematron,templates,tmp.checks.certificatesโ list of certificates withvalidandexpires.checks.connectionsโ connection status withtaxEntity,folioManager,mqtt.checks.foliosโcurrentandnextfolios per type, withseries,from,to,currentFolio,lastUsed,xml,resolution.lastDownloadโ date and time of the last download of auxiliary files.
A 500 response or a status other than ok indicates that the xPOS is not ready to issue. It is advisable to alert when a certificate close to expiring appears or when checks.connections.taxEntity is false.
๐ Configuration re-retrievalโ
Forces xPOS Core to re-download its configuration from the administrative portal. Useful when product changes the customer's parameters and you don't want to wait for the next automatic refresh.
- Method:
PUT - Endpoint:
/api/v1/reobtain-config - Requires no query params or body.
โ Cancellations (Paraguay only)โ
This endpoint is only used for Paraguay integrations. The rest of the countries handle cancellation through other channels (see the country sheet).
Notifies xPOS Core that an already-issued document was canceled in the POS. It serves so that the cancellation is recorded in xPOS and, when applicable, propagated.
- Method:
POST - Endpoint:
/api/v1/cancelation-event
application/json body:
{
"countryDocumentId": "<tax-id>",
"status": "<status>",
"description": "<description>"
}๐งพ Onboardingโ
Endpoints to query the xPOS onboarding information against the Gosocket portal.
| Method | Endpoint | What it is for |
|---|---|---|
GET | /api/v1/onboarding | Brings the xPOS information published in the portal. Query: uuid, env. Response: { message, data }. |
GET | /api/v1/onboarding/summary | Returns the last onboarding executed. Useful to validate what the service was initialized against. |
๐ Log recordโ
Operational logs are persisted in /databases/dbLogs.realm and queried via REST. Applies to all supported countries.
Query by date rangeโ
Lists all logs in a time window, filtering by type.
- Method:
GET - Endpoint:
/api/v1/db-data/logs
Supported values for logType:
Api-SendDocumentโ submissions to the tax authority.Api-SendDocumentToSaveโ submissions to the Gosocket Inbox.Api-SendContingenciesToPortalโ contingency errors dispatched to the Gosocket Inbox.
Specific query by UUID or metadataโ
Ideal when you already have the transactionId or some property that identifies the operation.
- Method:
GET - Endpoint:
/api/v1/db-data/logs/search
๐ Dashboardโ
Internal endpoints designed to feed the local xPOS dashboard with operational counters and summaries. Generally not consumed by the POS.
| Method | Endpoint | What it is for |
|---|---|---|
GET | /api/v1/info/responses | Processed documents. |
GET | /api/v1/info/sii-responses | Responses received from the tax authority (API-ET). |
GET | /api/v1/info/errors | Failed documents. |
GET | /api/v1/info/contingencies | Recorded contingencies. |
From version 2.7.0 onwards, when the device has several issuers installed these views return only the data of the issuer selected in the dashboard, not the whole device. The filter is applied on the server.
Pagination, filters and sortingโ
The four endpoints accept the same set of parameters. All of them are optional: with none, they return the unfiltered view with the historical sort order.
Without the new parameters, these endpoints behave exactly as they did before version 2.7.0.
๐ Behavior on corporate networksโ
Since version 2.7.0:
- The typical outages of proxies and managed networks are recognized as temporary and resolved with automatic retry, without POS intervention.
- The signing certificate is validated early, as a step prior to document processing: a certificate problem is detected before issuing, not mid-flow.
๐ก System Integrator publication channelโ
Version 2.7.0 lays the foundation of a new document publication channel towards the Gosocket cloud, with real-time status confirmation.
The channel will be enabled gradually and per organization, coordinated by the Gosocket team. As long as an organization does not have it active, xPOS publishes through the current channel with no change to the integration.