Required permission: | Company-Setup.GET |
GET | /Companies | Companies records | List of company available |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Companies | form | List<AcCompany> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCompanyID | form | string | Yes | Company ID |
AcCompanyName | form | string | Yes | Company Name |
AcCurrencyID | form | string | Yes | Company's Currency ID |
Address1 | form | string | Yes | Address 1 |
Address2 | form | string | Yes | Address 2 |
Address3 | form | string | Yes | Address 3 |
Address4 | form | string | Yes | Address 4 |
RegistrationNo | form | string | Yes | Business Registration Number (BRN) |
EInvoiceRegName | form | string | No | E-Invoice Registration Name |
EInvoiceRegTIN | form | string | No | E-Invoice Registration TIN |
EInvoiceRegNumber | form | string | No | E-Invoice Registration Number |
EInvoiceIsMalaysian | form | string | Yes | E-Invoice Buyer Is Malaysian |
EInvoiceRegType | form | string | Yes | E-Invoice Buyer Registration Type |
EInvoiceRegNumber_NRIC | form | string | No | E-Invoice Buyer Registration Number (NRIC) |
EInvoiceRegNumber_PASSPORT | form | string | No | E-Invoice Buyer Registration Number (PASSPORT) |
EInvoiceRegNumber_BRN | form | string | No | E-Invoice Buyer Registration Number (BRN) |
EInvoiceRegNumber_ARMY | form | string | No | E-Invoice Buyer Registration Number (ARMY) |
EInvoiceRegSSTNumber | form | string | No | E-Invoice Registration SST Number |
EInvoiceRegTourismTaxRegNumber | form | string | No | E-Invoice Registration Tourism Tax Registration Number |
EInvoiceRegEmail | form | string | No | E-Invoice Registration Email |
AcEInvoiceSupplierMSICID | form | string | No | E-Invoice Supplier MSIC ID |
EInvoiceRegBusinessActivityDescription | form | string | No | E-Invoice Registration Business Activity Description |
EInvoiceRegContactNumber | form | string | No | E-Invoice Registration Contact Number |
EInvoiceAddressLine0 | form | string | No | E-Invoice Address Line 0 |
EInvoiceAddressLine1 | form | string | No | E-Invoice Address Line 1 |
EInvoiceAddressLine2 | form | string | No | E-Invoice Address Line 2 |
EInvoiceAddressPostalZone | form | string | No | E-Invoice Address Postal Zone |
EInvoiceAddressCityName | form | string | No | E-Invoice Address City Name |
AcEInvoiceAddressStateID | form | string | No | E-Invoice Address State ID |
AcEInvoiceAddressCountryID | form | string | No | E-Invoice Address Country ID |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Companies HTTP/1.1 Host: snr2u.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Companies":[{"AcCompanyID":"String","AcCompanyName":"String","AcCurrencyID":"String","Address1":"String","Address2":"String","Address3":"String","Address4":"String","RegistrationNo":"String","EInvoiceRegName":"String","EInvoiceRegTIN":"String","EInvoiceRegNumber":"String","EInvoiceIsMalaysian":"String","EInvoiceRegType":"String","EInvoiceRegNumber_NRIC":"String","EInvoiceRegNumber_PASSPORT":"String","EInvoiceRegNumber_BRN":"String","EInvoiceRegNumber_ARMY":"String","EInvoiceRegSSTNumber":"String","EInvoiceRegTourismTaxRegNumber":"String","EInvoiceRegEmail":"String","AcEInvoiceSupplierMSICID":"String","EInvoiceRegBusinessActivityDescription":"String","EInvoiceRegContactNumber":"String","EInvoiceAddressLine0":"String","EInvoiceAddressLine1":"String","EInvoiceAddressLine2":"String","EInvoiceAddressPostalZone":"String","EInvoiceAddressCityName":"String","AcEInvoiceAddressStateID":"String","AcEInvoiceAddressCountryID":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}