ONESOURCE: AR β Issuing
Gosocket is the platform ONESOURCE uses to issue tax documents in Latin America through a REST API with OAuth 2.0 authentication. All countries use the generic Gosocket DTE mapping.
Process actorsβ
Step 1 β Authenticationβ
Obtain an access token before each session. See createToken for endpoint details, headers and response.
Step 2 β Send documentβ
Method: SendDocumentToAuthority β POST
- The standard integration DTE is sent (generic mapping, applies to all countries).
- When applicable, the
billerIdparameter is included β see Folio Manager Configuration. - Success criterion: the response combines
success: true+ success code in thecodefield. - The integration operates with
async: false(synchronous) for Argentina; the final status is returned in the sameSendDocumentToAuthorityresponse.
Step 3 β Query statusβ
Method: GetDocument β POST
Invoked regardless of whether the flow is synchronous or asynchronous. It returns the updated tax status, document IDs, dates, issuer/receiver data and download URLs.
The download URLs (XML, PDF, attachments) must be enabled for the company. If they are not available in the response, contact the Gosocket support team.
Key parameters: GlobalDocumentId, CountryDocumentId, SenderCode, DateFrom, DateTo, Country.
Step 4 β Download filesβ
Use the URLs obtained in GetDocument or call the download methods directly:
DownloadDocumentXmlPOSTDownloads the document XML.DownloadDocumentPdfPOSTDownloads the document PDF.DownloadDocumentJsonPOSTDownloads the document JSON.Step 5 β Events and cancellationsβ
Applies depending on the country. Check the documentation for each method:
ChangeDocumentStatusPOSTReports events on the documents.ChangeDocumentAuthorityStatusPOSTChanges the status before the Tax Authority.Check the full cancellation flow reference in the ChangeDocumentStatus documentation.
Folio Managerβ
The Folio Manager API is used by ONESOURCE in: CL and CO. Under evaluation: CR, PY, UY.
See Folio Manager Configuration for the full endpoint reference.