Required permission: | Customer-Setup.GET |
GET | /Customers/page/{Page} | Get records by given a page number | Each page consists of 20 records |
---|---|---|---|
GET | /Customers/EditDate/{EditDate} | ||
GET | /Customers/CustomerID/{AcCustomerID} | ||
GET | /Customers/MobileNo/{MobileNo} | ||
GET | /Customers |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Page | path | int? | No | |
EditDate | path | DateTime? | No | |
AcCustomerID | path | string | No | |
MobileNo | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Customers | form | List<AcCustomer> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCustomerID | form | string | Yes | Customer ID |
AcCustomerName | form | string | Yes | Customer Name |
AcTermID | form | string | Yes | Term ID |
AcAreaID | form | string | Yes | Area ID |
AcCusGroupID | form | string | Yes | Customer Group ID |
AcCusUDGroupID | form | string | Yes | Customer 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 |
CreateBy | form | string | Yes | Create By |
CreateDate | form | DateTime | Yes | Create Date & Time |
EditBy | form | string | Yes | Edit By |
EditDate | form | DateTime | Yes | Edit Date |
Stamp | form | int | Yes | Record Stamp. Default 0 |
AcCustomerNickName | form | string | No | Customer Nickname |
DateOfBirth | form | DateTime | No | Date of Birth |
IsMember | form | string | Yes | Is Member? (Y/N) |
Gender | form | string | Yes | Gender (M/F) |
MemberNo | form | string | No | Member Number |
MobileNo | form | string | No | Mobile Number |
IdentityNo | form | string | No | Identity Number |
MemberJoinDate | form | DateTime | Yes | Member Join Date |
MemberExpireDate | form | DateTime | Yes | Member Expiry Date |
MemberMarriageDate | form | DateTime | Yes | Member Marriage Date |
AcMemberEthnicID | form | string | Yes | Member Ethnic (Race) ID |
AcMemberIncomeID | form | string | Yes | Member Income ID |
AcMemberOccupationID | form | string | No | Member Occupation ID, IsRequired = true |
MemberPointBalance | form | decimal | Yes | Member Point Balance |
MemberPointAccumulated | form | decimal | Yes | Member Accumulated Point |
PriceCode | form | string | Yes | Price Code. (Value valid from 1 - 5) |
AcSalesmanID | form | string | Yes | Salesman ID |
IsGSTRegister | form | string | Yes | Is GST Registered. (Y/N) |
GSTRegisterNumber | form | string | No | GST Registration Number |
BusinessRegisterNumber | form | string | No | Business Registration Number |
AcCurrencyID | form | string | Yes | Currency ID |
IsAllowPrintStatement | form | string | Yes | Is Allow Print Statement? (Y/N) |
IsAllowExceedCreditTerm | form | string | Yes | Is Allow Exceed Credit Term? (Y/N) |
IsAllowExceedCreditLimit | form | string | Yes | Is Allow Exceed Credit Limit? (Y/N) |
LocalCreditLimit | form | decimal | Yes | Credit Limit Amount (Local Currency) |
LocalBalanceAmount | form | decimal | Yes | Outstanding Amount (Local Currency) |
AcTaxID | form | string | No | Tax ID |
IsAllowCreditSalesForPOS | form | string | Yes | Is Allow Credit Sales at Point of Sales? (Y/N) |
MemberNotes | form | string | No | Notes |
AcINCardPackageID | form | string | No | INCard Package ID |
AcCustomerIDParentID | form | string | Yes | Parent Customer ID. Default to Customer ID |
TaxSLTRegistrationNo | form | string | No | Sales Tax Registration Number |
TaxSVTRegistrationNo | form | string | No | Service Tax Registration Number |
AcTaxIDSST | form | string | No | Tax ID for SST |
SSTExemptionCertNumber | form | string | No | SST Exemption Certificate 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 |
EInvoiceIsNotApplicable | form | string | No | Is Not Applicable |
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 /Customers/page/{Page} HTTP/1.1 Host: snr2u.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Customers":[{"AcCustomerID":"String","AcCustomerName":"String","AcTermID":"String","AcAreaID":"String","AcCusGroupID":"String","AcCusUDGroupID":"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","CreateBy":"String","CreateDate":"\/Date(-62135596800000-0000)\/","EditBy":"String","EditDate":"\/Date(-62135596800000-0000)\/","Stamp":0,"AcCustomerNickName":"String","DateOfBirth":"\/Date(-62135596800000-0000)\/","IsMember":"String","Gender":"String","MemberNo":"String","MobileNo":"String","IdentityNo":"String","MemberJoinDate":"\/Date(-62135596800000-0000)\/","MemberExpireDate":"\/Date(-62135596800000-0000)\/","MemberMarriageDate":"\/Date(-62135596800000-0000)\/","AcMemberEthnicID":"String","AcMemberIncomeID":"String","AcMemberOccupationID":"String","MemberPointBalance":0,"MemberPointAccumulated":0,"PriceCode":"String","AcSalesmanID":"String","IsGSTRegister":"String","GSTRegisterNumber":"String","BusinessRegisterNumber":"String","AcCurrencyID":"String","IsAllowPrintStatement":"String","IsAllowExceedCreditTerm":"String","IsAllowExceedCreditLimit":"String","LocalCreditLimit":0,"LocalBalanceAmount":0,"AcTaxID":"String","IsAllowCreditSalesForPOS":"String","MemberNotes":"String","AcINCardPackageID":"String","AcCustomerIDParentID":"String","TaxSLTRegistrationNo":"String","TaxSVTRegistrationNo":"String","AcTaxIDSST":"String","SSTExemptionCertNumber":"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","EInvoiceIsNotApplicable":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}