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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SuppliersSimpleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <Suppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel.Types"> <d2p1:AcSupplierSimple> <d2p1:AcEInvoiceAddressCountryID>String</d2p1:AcEInvoiceAddressCountryID> <d2p1:AcEInvoiceAddressStateID>String</d2p1:AcEInvoiceAddressStateID> <d2p1:AcEInvoiceSupplierMSICID>String</d2p1:AcEInvoiceSupplierMSICID> <d2p1:AcSupGroupID>String</d2p1:AcSupGroupID> <d2p1:AcSupUDGroupID>String</d2p1:AcSupUDGroupID> <d2p1:AcSupplierID>String</d2p1:AcSupplierID> <d2p1:AcSupplierName>String</d2p1:AcSupplierName> <d2p1:AcSupplierNickName>String</d2p1:AcSupplierNickName> <d2p1:AcTaxID>String</d2p1:AcTaxID> <d2p1:AcTaxIDSST>String</d2p1:AcTaxIDSST> <d2p1:AcTermID>String</d2p1:AcTermID> <d2p1:BillingAddress1>String</d2p1:BillingAddress1> <d2p1:BillingAddress2>String</d2p1:BillingAddress2> <d2p1:BillingAddress3>String</d2p1:BillingAddress3> <d2p1:BillingAddress4>String</d2p1:BillingAddress4> <d2p1:BillingContact1>String</d2p1:BillingContact1> <d2p1:BillingContact2>String</d2p1:BillingContact2> <d2p1:BillingEmail>String</d2p1:BillingEmail> <d2p1:BillingFax1>String</d2p1:BillingFax1> <d2p1:BillingFax2>String</d2p1:BillingFax2> <d2p1:BillingHomePage>String</d2p1:BillingHomePage> <d2p1:BillingPostalCode>String</d2p1:BillingPostalCode> <d2p1:BillingTel1>String</d2p1:BillingTel1> <d2p1:BillingTel2>String</d2p1:BillingTel2> <d2p1:BusinessRegisterNumber>String</d2p1:BusinessRegisterNumber> <d2p1:EInvoiceAddressCityName>String</d2p1:EInvoiceAddressCityName> <d2p1:EInvoiceAddressLine0>String</d2p1:EInvoiceAddressLine0> <d2p1:EInvoiceAddressLine1>String</d2p1:EInvoiceAddressLine1> <d2p1:EInvoiceAddressLine2>String</d2p1:EInvoiceAddressLine2> <d2p1:EInvoiceAddressPostalZone>String</d2p1:EInvoiceAddressPostalZone> <d2p1:EInvoiceIsEnabledAutoTINValidation>String</d2p1:EInvoiceIsEnabledAutoTINValidation> <d2p1:EInvoiceIsEnabledTINValidation>String</d2p1:EInvoiceIsEnabledTINValidation> <d2p1:EInvoiceIsMalaysian>String</d2p1:EInvoiceIsMalaysian> <d2p1:EInvoiceIsSelfBilledSupplier>String</d2p1:EInvoiceIsSelfBilledSupplier> <d2p1:EInvoiceIsTINValidateSuccess>String</d2p1:EInvoiceIsTINValidateSuccess> <d2p1:EInvoiceRegBusinessActivityDescription>String</d2p1:EInvoiceRegBusinessActivityDescription> <d2p1:EInvoiceRegContactNumber>String</d2p1:EInvoiceRegContactNumber> <d2p1:EInvoiceRegEmail>String</d2p1:EInvoiceRegEmail> <d2p1:EInvoiceRegName>String</d2p1:EInvoiceRegName> <d2p1:EInvoiceRegNumber>String</d2p1:EInvoiceRegNumber> <d2p1:EInvoiceRegNumber_ARMY>String</d2p1:EInvoiceRegNumber_ARMY> <d2p1:EInvoiceRegNumber_BRN>String</d2p1:EInvoiceRegNumber_BRN> <d2p1:EInvoiceRegNumber_NRIC>String</d2p1:EInvoiceRegNumber_NRIC> <d2p1:EInvoiceRegNumber_PASSPORT>String</d2p1:EInvoiceRegNumber_PASSPORT> <d2p1:EInvoiceRegSSTNumber>String</d2p1:EInvoiceRegSSTNumber> <d2p1:EInvoiceRegTIN>String</d2p1:EInvoiceRegTIN> <d2p1:EInvoiceRegTourismTaxRegNumber>String</d2p1:EInvoiceRegTourismTaxRegNumber> <d2p1:EInvoiceRegType>String</d2p1:EInvoiceRegType> <d2p1:EInvoiceTINValidateBy>String</d2p1:EInvoiceTINValidateBy> <d2p1:EInvoiceTINValidateDateTime>0001-01-01T00:00:00</d2p1:EInvoiceTINValidateDateTime> <d2p1:EInvoiceTINValidateProcessLog>String</d2p1:EInvoiceTINValidateProcessLog> <d2p1:EInvoiceTINValidateRequestBody>String</d2p1:EInvoiceTINValidateRequestBody> <d2p1:EInvoiceTINValidateResponseBody>String</d2p1:EInvoiceTINValidateResponseBody> <d2p1:EInvoiceTINValidateResponseStatus>String</d2p1:EInvoiceTINValidateResponseStatus> <d2p1:EditDate>0001-01-01T00:00:00</d2p1:EditDate> <d2p1:GSTRegisterNumber>String</d2p1:GSTRegisterNumber> <d2p1:GSTSelfBilledApprovalNumber>String</d2p1:GSTSelfBilledApprovalNumber> <d2p1:IsActive>String</d2p1:IsActive> <d2p1:IsGSTRegister>String</d2p1:IsGSTRegister> <d2p1:IsGSTSelfBilled>String</d2p1:IsGSTSelfBilled> <d2p1:Notes>String</d2p1:Notes> <d2p1:PurchasePriceIsGSTInclusive>String</d2p1:PurchasePriceIsGSTInclusive> <d2p1:SSTExemptionCertNumber>String</d2p1:SSTExemptionCertNumber> <d2p1:TaxSLTRegistrationNo>String</d2p1:TaxSLTRegistrationNo> <d2p1:TaxSVTRegistrationNo>String</d2p1:TaxSVTRegistrationNo> <d2p1:WhatsAppID>String</d2p1:WhatsAppID> </d2p1:AcSupplierSimple> </Suppliers> <TotalRecords>0</TotalRecords> <TotalRecordsInPage>0</TotalRecordsInPage> </SuppliersSimpleResponse>