Skip to main content

Get E-Invoice Code List API

Introduction​

Returns e-invoice classification codes and unit lists from EInvoiceService for populating e-invoice UI fields. Both lists are embedded in one JSON object.

Source: InvoiceHomePageAPI.getEInvoiceCodeList — transportsupplyproject/src/in/greenorange/api/invoice/InvoiceHomePageAPI.java (@Path("invoicehome")).

See also: Invoice Home — all endpoints.


HTTP Endpoint​

PropertyValue
URL/rest/invoicehome/getEInvoiceCodeList/{userName}/{authKey}
MethodGET
Producestext/plain (entity is a JSON object string)

Path Parameters​

ParameterTypeRequiredDescription
userNameStringYesAuth username.
authKeyStringYesAuth key.

Authentication​

ConditionHTTP status
Invalid credentials401 Unauthorized (Access-Control-Allow-Origin: *)
Success200 OK

Behaviour​

  • eInvoiceService.getClassificationCodeList() → List<String>
  • eInvoiceService.getUnitList() → List<String>
  • Response JSON: classificationCodeList and unitList as JSON arrays.

Success Response​

Code: 200 OK

Body (JSON string):

{
"classificationCodeList": ["...", "..."],
"unitList": ["...", "..."]
}

Headers: Access-Control-Allow-Origin: *


Example Request​

GET /rest/invoicehome/getEInvoiceCodeList/alice/secretKey HTTP/1.1
Host: {base}