Create EGS Code Usage API is a way for taxpayer to register his own internal codes in the eInvicing solution.
Once taxpayer register his own internal code to the eInvoice solution, a request is raised and sent to ETA employees to approve this request.
Once ETA employee approve the request,then taxpayer can use this code in documents submissions
Note! when you are logged in as intermediary, permissions that are granted by the taxpayer will be applied on your profile and this will control the functionalities that you'll be able to executed on behalf of the taxpayer you are representing.
API is REST based API that receives that does not take any URL parameters.
This API accepts standard eInvoicing API header parameters for authenticated call.
Body of the request contains array named
items that contains an object with the below properties:
|Refer to the catalog where this code will be generated, EGS catalog is mainly used by taxpayers to register their internal codes
|The parent of the code, represents level 4 GPC code
|Refer to the internal code of the taxpayer that need to be registerd on eInvoicing solution, format for the code should follow the following standard “EG-TaxpayerID-InternalCode”
|code name in English
|bottle of water
|code name in Arabic
|The date and time when the code active. Time to be supplied in UTC timezone
|The date and time when the code will be inactive. Time to be supplied in UTC timezone (Optional)
|Description of code in English (Optional)
|Description of code in Arabic (Optional)
|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 code attributes provided:
|HTTP Status Code
|Returned when user is trying to register an existing code.
|Returned when parent code ID is not found.
No additional considerations.