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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CustomersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel"> <Customers xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel.Types"> <d2p1:AcCustomer> <d2p1:AcAreaID>String</d2p1:AcAreaID> <d2p1:AcCurrencyID>String</d2p1:AcCurrencyID> <d2p1:AcCusGroupID>String</d2p1:AcCusGroupID> <d2p1:AcCusUDGroupID>String</d2p1:AcCusUDGroupID> <d2p1:AcCustomerID>String</d2p1:AcCustomerID> <d2p1:AcCustomerIDParentID>String</d2p1:AcCustomerIDParentID> <d2p1:AcCustomerName>String</d2p1:AcCustomerName> <d2p1:AcCustomerNickName>String</d2p1:AcCustomerNickName> <d2p1:AcEInvoiceAddressCountryID>String</d2p1:AcEInvoiceAddressCountryID> <d2p1:AcEInvoiceAddressStateID>String</d2p1:AcEInvoiceAddressStateID> <d2p1:AcEInvoiceSupplierMSICID>String</d2p1:AcEInvoiceSupplierMSICID> <d2p1:AcINCardPackageID>String</d2p1:AcINCardPackageID> <d2p1:AcMemberEthnicID>String</d2p1:AcMemberEthnicID> <d2p1:AcMemberIncomeID>String</d2p1:AcMemberIncomeID> <d2p1:AcMemberOccupationID>String</d2p1:AcMemberOccupationID> <d2p1:AcSalesmanID>String</d2p1:AcSalesmanID> <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:CreateBy>String</d2p1:CreateBy> <d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate> <d2p1:DateOfBirth>0001-01-01T00:00:00</d2p1:DateOfBirth> <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:EInvoiceIsNotApplicable>String</d2p1:EInvoiceIsNotApplicable> <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:EditBy>String</d2p1:EditBy> <d2p1:EditDate>0001-01-01T00:00:00</d2p1:EditDate> <d2p1:GSTRegisterNumber>String</d2p1:GSTRegisterNumber> <d2p1:Gender>String</d2p1:Gender> <d2p1:IdentityNo>String</d2p1:IdentityNo> <d2p1:IsActive>String</d2p1:IsActive> <d2p1:IsAllowCreditSalesForPOS>String</d2p1:IsAllowCreditSalesForPOS> <d2p1:IsAllowExceedCreditLimit>String</d2p1:IsAllowExceedCreditLimit> <d2p1:IsAllowExceedCreditTerm>String</d2p1:IsAllowExceedCreditTerm> <d2p1:IsAllowPrintStatement>String</d2p1:IsAllowPrintStatement> <d2p1:IsGSTRegister>String</d2p1:IsGSTRegister> <d2p1:IsMember>String</d2p1:IsMember> <d2p1:LocalBalanceAmount>0</d2p1:LocalBalanceAmount> <d2p1:LocalCreditLimit>0</d2p1:LocalCreditLimit> <d2p1:MemberExpireDate>0001-01-01T00:00:00</d2p1:MemberExpireDate> <d2p1:MemberJoinDate>0001-01-01T00:00:00</d2p1:MemberJoinDate> <d2p1:MemberMarriageDate>0001-01-01T00:00:00</d2p1:MemberMarriageDate> <d2p1:MemberNo>String</d2p1:MemberNo> <d2p1:MemberNotes>String</d2p1:MemberNotes> <d2p1:MemberPointAccumulated>0</d2p1:MemberPointAccumulated> <d2p1:MemberPointBalance>0</d2p1:MemberPointBalance> <d2p1:MobileNo>String</d2p1:MobileNo> <d2p1:Notes>String</d2p1:Notes> <d2p1:PriceCode>String</d2p1:PriceCode> <d2p1:SSTExemptionCertNumber>String</d2p1:SSTExemptionCertNumber> <d2p1:Stamp>0</d2p1:Stamp> <d2p1:TaxSLTRegistrationNo>String</d2p1:TaxSLTRegistrationNo> <d2p1:TaxSVTRegistrationNo>String</d2p1:TaxSVTRegistrationNo> </d2p1:AcCustomer> </Customers> <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> </CustomersResponse>