The Spanish version is the authoritative reference. View in Spanish
Docupath — API methods
The integration uses two independent APIs with different base URLs and authentication. See How it works to understand the context of each flow before implementing the methods.
Docupath API — Flows ① and ③
Gosocket acts as the client in both flows: it sends the document (①) and then periodically queries its status (③). Authentication: OAuth 2.0 Client Credentials — same access_token for both.
DEV
https://api.docupathdev.appPRD
https://api.docupath.appGosocket API — Flow ②
Gosocket exposes this endpoint to receive the processed document. Docupath acts as the client when delivering the ZIP. Authentication: HTTP Basic Auth.
Sandbox
https://systemintegrator-sbx.gosocket.netProduction
https://systemintegrator.gosocket.netAvailable methods
POST /v1/oauth/tokenPOSTObtains the OAuth 2.0 access_token from the organization's credentials in Docupath. Required before any call to Flow ①.POST /v1/documentsPOSTSends a tax PDF to the Docupath AI pipeline along with its external_id and metadata. Active endpoint of Flow ①.POST /api/v1/UploadZipDocumentPOSTReceives the ZIP (XML + PDF) that Docupath delivers to Gosocket after processing. Active endpoint of Flow ②.GET /v1/documents/searchGETQueries a document's status by external_id and obtains the processed XML and the original PDF. Active endpoint of Flow ③ (polling).