The Spanish version is the authoritative reference. View in Spanish
Method to change the status before the Tax Authority (ChangeDocumentAuthorityStatus)
This method allows changing the status of a document before the tax authority to Voided using the POST ChangeDocumentAuthorityStatus service.
Through this method, you can change the status before the tax authority of a document that is in approved status.
To connect to this functionality, you will need to enter the URL according to the environment to be used:
https://developers.gosocket.net/api/v1/Document/ChangeDocumentAuthorityStatushttps://developers-sbx.gosocket.net/api/v1/Document/ChangeDocumentAuthorityStatusHow does the method work?
To make the request, the method has the following parameters:
| ChangeDocumentAuthorityStatus (request) | |||
|---|---|---|---|
| Parameter | Type | Description | Allowed values |
| globalDocumentId | String | Document identification in Gosocket. | 36-character alphanumeric UUID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| status | String | Code of the new status before the tax authority. | "Status":"4" Since all documents submitted to this method will be voided. |
| UserName | String | User making the request | Example: "nombre@gosocket.com" |
| reason | String | Reason code for the change | 1: Invoice issued incorrectly 2: Incorrect issuance data 3: Invoice or credit/debit note returned |
| CountryId | String | Country identification | bo |
Request example

Note: Remember that before using the method, you must authenticate on the Authorization tab.
For this method, we use Postman's Params tab.
- Select the method type. In this case, you must select POST.
- Enter the method URL.
- Enter the parameters shown in the previous table with their corresponding values.
- Press Send.
Response example

Error responses


To correctly interpret the API's response, take into account the following criteria:

Characteristics of the ChangeDocumentAuthorityStatus method
-
The method allows changing the status to voided when it is in an approved status.
-
Some examples of process response (StatusMessage) are:
- "No es posible cambiar el estado de un documento aprobado al estado XX"
- "El estado del documento fue actualizado correctamente"