;

Method for reporting events in documents - ChangeDocumentStatus

Modified on Wed, 11 Mar at 6:16 PM


Colombia, Chile, Paraguay,Panamá, El Salvador 



The purpose of this method is to change the status of the document events and report it to the Tax Authority using the POST ChangeDocumentStatus service. 



This method works as follows: 


1. The user enters the parameters for the ChangeDocumentStatus method and sends the parameters corresponding to this event. 


2. The XML for the event is formed using these parameters. 


3. The generated event is signed. 


4. Once signed, the schema is validated. 


5. The Tax Authority's Web Service is consumed and the event is sent.


6. The Tax Authority responds according to the validations performed. 


7. The API responds with the processing result. 


8. If the result is satisfactory, the document is updated and the XML of the sent event is attached. 


To connect to this functionality, you will need to enter the URL according to the environment to be consumed: 


▪ API in Sandbox environment: 

https://developers-sbx.gosocket.net/api/v1/Document/ChangeDocumentStatus 


▪ API in Production environment: https://developers.gosocket.net/api/v1/Document/ChangeDocumentStatus 


NOTE: Although the Params tab will be displayed in all request examples, this method also works from the Body tab.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article