Update EGS Code Usage API is a way for taxpayer to Update his previous code usage requests as long they are under ‘Submitted’ state
API is REST based API that receives the code Usage Request Id through the URL parameter and payload to be changed in request body.
This API accepts standard eInvoicing API header parameters for authenticated call.
|Internal ID of the code usage request submitted
Body of the request contains a single object that contains these fields:
|Code that was registered by the taxpayer
|Code name in English
|Code name in Arabic
|Refer to the code start validity date in UTC
|Refer to the code end of validaity date in UTC (Optional)
|Code description that was provided by the taxpayer In English (Optional)
|Water bottle, 600 mg, plastic bottle
|Code description that was provided by the taxpayer In Arabic (Optional)
|قاروره مياه يلاستيكية
|The parent of the code, represents level 4 GPC code
|Textual reason why the code is requested (Optional)
|New product line item
|EGS Related Code (Optional)
On a successful submission API returns
200 status code.
Error situations are reported back by this API through the standard error response.
Additional specialized error messages can be returned as a result of validation of state of the document and caller:
|HTTP Status Code
|Returned when user is trying to update registration of non existing code registration
|Returned when parent code ID is not found.
No additional considerations.