Update Code API is a way for taxpayer to Update his previous EGS publsihed and approved codes usage requests as long they are under ‘Approved’ state.
API is REST based API that receives the code type and item code through the URL parameter and payload to be changed in request body.
This API accepts standard eInvoicing API header parameters for authenticated call.
|This codeType refer to the code type catalog that we need to search in, this could be either GS1 or EGS catalogs
|Code that was registered by the taxpayer
Body of the request contains a single object that contains these fields:
|Code description In English (Optional)
|Water bottle, 600 mg, plastic bottle
|Code description In Arabic (Optional)
|قاروره مياه يلاستيكية
|Refer to the code end of validaity date in UTC (Optional)
|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.