Required permission: | Supplier-Setup.GET |
GET | /Suppliers/simple | ||
---|---|---|---|
GET | /Suppliers/simple/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /Suppliers/simple/EditDate/{EditDate} | ||
GET | /Suppliers/simple/SupplierID/{AcSupplierID} |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
EditDate | path | DateTime? | No | |
AcSupplierID | path | string | No | |
Page | path | int? | No | Page Number. Default 1. |
RecordsPerPage | query | int? | No | Records Per Page. Default 20 Records. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Suppliers | form | List<AcSupplierSimple> | No | |
ResponseStatus | form | ResponseStatus | No | |
TotalRecords | form | int | No | Total records in all pages. |
TotalRecordsInPage | form | int | No | Total records in current page. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcSupplierID | form | string | Yes | Supplier ID |
AcSupplierName | form | string | Yes | Supplier Name |
AcTermID | form | string | Yes | Term ID |
AcSupGroupID | form | string | Yes | Supplier Group ID |
AcSupUDGroupID | form | string | Yes | Supplier User Define Group ID |
BillingAddress1 | form | string | No | Billing Address 1 |
BillingAddress2 | form | string | No | Billing Address 2 |
BillingAddress3 | form | string | No | Billing Address 3 |
BillingAddress4 | form | string | No | Billing Address 4 |
BillingTel1 | form | string | No | Billing Phone 1 |
BillingTel2 | form | string | No | Billing Phone 2 |
BillingFax1 | form | string | No | Billing Fax 1 |
BillingFax2 | form | string | No | Billing Fax 2 |
BillingPostalCode | form | string | No | Billing Postal Code |
BillingContact1 | form | string | No | Billing Contact 1 |
BillingContact2 | form | string | No | Billing Contact 2 |
BillingEmail | form | string | No | Billing Email Address |
BillingHomePage | form | string | No | Billing Home Page |
IsActive | form | string | Yes | Is Active? (Y/N) |
Notes | form | string | No | Notes |
IsGSTRegister | form | string | Yes | Is GST Registered (Y/N) |
GSTRegisterNumber | form | string | No | GST Registration Number |
IsGSTSelfBilled | form | string | Yes | GST Is Self-billed (Y/N) |
GSTSelfBilledApprovalNumber | form | string | No | GST Self-billed Approval Number |
BusinessRegisterNumber | form | string | No | Business Registration Number |
AcTaxID | form | string | No | GST Tax ID |
AcSupplierNickName | form | string | No | Supplier Nickname |
PurchasePriceIsGSTInclusive | form | string | Yes | GST Purchase Price Is Inclusive (Y/N) |
TaxSLTRegistrationNo | form | string | No | SST Sales Tax Registration Number |
TaxSVTRegistrationNo | form | string | No | SST Service Tax Registration Number |
AcTaxIDSST | form | string | No | SST Tax ID |
SSTExemptionCertNumber | form | string | No | SST Tax Exemption Certificate Number |
WhatsAppID | form | string | No | Whastapp Number |
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 | No | Is Malaysian |
EInvoiceRegType | form | string | No | Registration Type |
EInvoiceRegNumber_NRIC | form | string | No | Registration Number NRIC |
EInvoiceRegNumber_PASSPORT | form | string | No | Registration Number Passport |
EInvoiceRegNumber_BRN | form | string | No | Registration Number BRN |
EInvoiceRegNumber_ARMY | form | string | No | Registration Number Army |
EInvoiceRegSSTNumber | form | string | No | Registration SST Number |
EInvoiceRegTourismTaxRegNumber | form | string | No | Tourism Tax Registration Number |
EInvoiceRegEmail | form | string | No | Registration Email |
AcEInvoiceSupplierMSICID | form | string | No | MSIC ID Supplier |
EInvoiceRegBusinessActivityDescription | form | string | No | Business Activity Description Supplier |
EInvoiceRegContactNumber | form | string | No | Contact Number Supplier |
EInvoiceAddressLine0 | form | string | No | Address Line 0 Supplier |
EInvoiceAddressLine1 | form | string | No | Address Line 1 Supplier |
EInvoiceAddressLine2 | form | string | No | Address Line 2 Supplier |
EInvoiceAddressPostalZone | form | string | No | Postal Zone Supplier |
EInvoiceAddressCityName | form | string | No | City Name Supplier |
AcEInvoiceAddressStateID | form | string | No | State ID Supplier |
AcEInvoiceAddressCountryID | form | string | No | Country ID Supplier |
EInvoiceIsEnabledTINValidation | form | string | No | Is Enabled TIN Validation |
EInvoiceIsEnabledAutoTINValidation | form | string | No | Is Enabled Auto TIN Validation |
EInvoiceIsTINValidateSuccess | form | string | No | Is TIN Validate Success |
EInvoiceTINValidateDateTime | form | DateTime? | No | TIN Validate DateTime |
EInvoiceTINValidateBy | form | string | No | TIN Validate By |
EInvoiceTINValidateRequestBody | form | string | No | TIN Validate Request Body |
EInvoiceTINValidateResponseBody | form | string | No | TIN Validate Response Body |
EInvoiceTINValidateResponseStatus | form | string | No | TIN Validate Response Status |
EInvoiceTINValidateProcessLog | form | string | No | TIN Validate Process Log |
EInvoiceIsSelfBilledSupplier | form | string | No | Is Self Billed Supplier |
EditDate | form | DateTime | No | EditDate |
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 /Suppliers/simple HTTP/1.1 Host: snr2u.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Suppliers":[{"AcSupplierID":"String","AcSupplierName":"String","AcTermID":"String","AcSupGroupID":"String","AcSupUDGroupID":"String","BillingAddress1":"String","BillingAddress2":"String","BillingAddress3":"String","BillingAddress4":"String","BillingTel1":"String","BillingTel2":"String","BillingFax1":"String","BillingFax2":"String","BillingPostalCode":"String","BillingContact1":"String","BillingContact2":"String","BillingEmail":"String","BillingHomePage":"String","IsActive":"String","Notes":"String","IsGSTRegister":"String","GSTRegisterNumber":"String","IsGSTSelfBilled":"String","GSTSelfBilledApprovalNumber":"String","BusinessRegisterNumber":"String","AcTaxID":"String","AcSupplierNickName":"String","PurchasePriceIsGSTInclusive":"String","TaxSLTRegistrationNo":"String","TaxSVTRegistrationNo":"String","AcTaxIDSST":"String","SSTExemptionCertNumber":"String","WhatsAppID":"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","EInvoiceIsEnabledTINValidation":"String","EInvoiceIsEnabledAutoTINValidation":"String","EInvoiceIsTINValidateSuccess":"String","EInvoiceTINValidateDateTime":"\/Date(-62135596800000-0000)\/","EInvoiceTINValidateBy":"String","EInvoiceTINValidateRequestBody":"String","EInvoiceTINValidateResponseBody":"String","EInvoiceTINValidateResponseStatus":"String","EInvoiceTINValidateProcessLog":"String","EInvoiceIsSelfBilledSupplier":"String","EditDate":"\/Date(-62135596800000-0000)\/"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TotalRecords":0,"TotalRecordsInPage":0}