Required permission: | CustomerReceipt-Transaction.GET |
GET | /CustomerOtherReceipts/simple | ||
---|---|---|---|
GET | /CustomerOtherReceipts/simple/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /CustomerOtherReceipts/simple/Receipt/{AcCusReceiptMID} | Get a record by given a Document Number | Header and Detail record would be return if found. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Page | path | int? | No | |
AcCusReceiptMID | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Receipts | form | List<CustomerOtherReceiptSimple> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DocumentHeader | form | DocumentHeader | Yes | Customer Receipt Header - Primary Key: AcCusReceiptMID |
DocumentDetails | form | DocumentDetails | Yes | Customer Receipt Knock-Off Details - Primary Key: AcCusReceiptMID, ItemNo, MatchType, MatchDocumentNo. Note: You may get the outstanding list from CustomerOutstandingDocumentListing service. |
DocumentPaymentDetails | form | DocumentKnockOffDetails | Yes | Customer Receipt Payment Details - Primary Key: AcCusReceiptMID, ItemNo, AcBillPaymentMethodID. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCusReceiptMID | form | NVARCHAR(20) | Yes | Receipt Number |
AcCustomerID | form | NVARCHAR(20) | Yes | Customer ID |
AcLocationID | form | NVARCHAR(20) | Yes | Location ID |
DocumentDate | form | DATE | Yes | Receipt Date |
RefDocumentNo | form | NVARCHAR(50) | No | Reference Number |
DocumentRemark | form | NVARCHAR(100) | No | Document Remark |
ExtraRemark1 | form | NVARCHAR(100) | No | Extra Remark 1 |
ExtraRemark2 | form | NVARCHAR(100) | No | Extra Remark 2 |
ExtraRemark3 | form | NVARCHAR(100) | No | Extra Remark 3 |
ExtraRemark4 | form | NVARCHAR(100) | No | Extra Remark 4 |
AcCusReceiptTypeID | form | NVARCHAR(20) | Yes | Receipt Type ID (OTHER RECEIPT) (Read-Only) |
Payee | form | NVARCHAR(100) | Yes | Payee Name. Default to Customer Name |
AcSalesmanID | form | NVARCHAR(20) | Yes | Salesman ID |
DocumentItemCurrencyAmount | form | NUMERIC(18,2) | Yes | Total Item Amount. (Read-Only) |
IsUseTransactionBuyerElement | form | Boolean | No | Use Transaction's Buyer Element?. True: Buyer Elements will stored based on provided value; False: Buyer Elements will stored based on Customer Profile's E-Invoice Elements |
AcEInvoiceDocumentFlowID | form | NVARCHAR(100) | No | E-Invoice Document Flow ID. Open; Ready to Submit; Not Applicable |
EInvoiceRegName_Buyer | form | NVARCHAR(300) | No | E-Invoice Registration Name Buyer |
EInvoiceRegTIN_Buyer | form | NVARCHAR(40) | No | E-Invoice Registration TIN Buyer |
EInvoiceRegNumber_Buyer | form | NVARCHAR(40) | No | E-Invoice Registration Number Buyer |
EInvoiceBuyerIsMalaysian | form | NVARCHAR(1) | Yes | E-Invoice Buyer Is Malaysian. Y/N |
EInvoiceBuyerRegType | form | NVARCHAR(20) | No | E-Invoice Buyer Registration Type. NRIC/BRN/PASSPORT/ARMY |
EInvoiceRegSSTNumber_Buyer | form | NVARCHAR(40) | No | E-Invoice Registration SST Number Buyer |
EInvoiceRegEmail_Buyer | form | NVARCHAR(320) | No | E-Invoice Registration Email Buyer |
EInvoiceAddressLine0_Buyer | form | NVARCHAR(150) | No | E-Invoice Address Line 0 Buyer |
EInvoiceAddressLine1_Buyer | form | NVARCHAR(150) | No | E-Invoice Address Line 1 Buyer |
EInvoiceAddressLine2_Buyer | form | NVARCHAR(150) | No | E-Invoice Address Line 2 Buyer |
EInvoiceAddressPostalZone_Buyer | form | NVARCHAR(50) | No | E-Invoice Address Postal Zone Buyer |
EInvoiceAddressCityName_Buyer | form | NVARCHAR(50) | No | E-Invoice Address City Name Buyer |
AcEInvoiceAddressStateID_Buyer | form | NVARCHAR(20) | No | E-Invoice Address State ID Buyer. 00 to 17 |
AcEInvoiceAddressCountryID_Buyer | form | NVARCHAR(20) | No | E-Invoice Address Country ID Buyer. MYS |
EInvoiceRegContactNumber_Buyer | form | NVARCHAR(20) | No | E-Invoice Registration Contact Number Buyer |
IsEnableEInvoiceMYS | form | NVARCHAR(1) | No | E-Invoice Is Enabled. (Read-Only) |
AcEInvoiceDocumentStatusID | form | NVARCHAR(40) | No | E-Invoice Document Status ID. (Read-Only). Valid;Invalid;Submitted;Cancelled |
IsConsolidatedEInvoice | form | NVARCHAR(1) | No | E-Invoice Is Marked for Consolidated E-Invoice. Y/N. (Read-Only) |
EInvoiceDocumentNumber_Consolidated | form | NVARCHAR(50) | No | E-Invoice Consolidated E-Invoice Document Number. (Read-Only) |
EInvoiceSubmissionUUID | form | NVARCHAR(40) | No | E-Invoice Submission UUID. (Read-Only) |
EInvoiceValidationUUID | form | NVARCHAR(40) | No | E-Invoice Validation UUID. (Read-Only) |
EInvoiceValidationDateTime | form | DATETIME | No | E-Invoice Validated Datetime. (Read-Only) |
EInvoiceValidationLink | form | NVARCHAR(MAX) | No | E-Invoice Validation Link. (Read-Only) |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCusReceiptDID | form | NVARCHAR(40) | Yes | Record ID. Recommend use GUID |
AcCusReceiptMID | form | NVARCHAR(20) | Yes | Receipt Number |
ItemNo | form | INT | Yes | Item Number |
AccountNoItem | form | NVARCHAR(MAX) | Yes | Item Account Number |
ItemRemark1 | form | NVARCHAR(MAX) | Yes | Item Remark 1 |
ItemAmount | form | NUMERIC(18,2) | Yes | Item Amount. |
AcEInvoiceItemClassificationID | form | NVARCHAR(20) | No | E-Invoice Item Classification Code (Read-Only) |
AcEInvoiceItemTaxTypeID | form | NVARCHAR(20) | No | E-Invoice Item Tax Type Code (Read-Only) |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcCusReceiptMID | form | NVARCHAR(20) | Yes | Receipt Number |
ItemNo | form | INT | Yes | Item Number |
AcBillPaymentMethodID | form | NVARCHAR(20) | Yes | Bill Payment Method ID |
ItemReferenceNumber | form | NVARCHAR(100) | No | Reference Number |
ItemRemark1 | form | NVARCHAR(MAX) | Yes | Item Remark 1 |
ItemCurrencyPaymentAmount | form | NUMERIC(18,2) | Yes | Item Currency Payment Amount |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /CustomerOtherReceipts/simple HTTP/1.1 Host: snr2u.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Receipts":[{"DocumentHeader":{"AcCusReceiptMID":"String","AcCustomerID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","AcCusReceiptTypeID":"String","Payee":"String","AcSalesmanID":"String","DocumentItemCurrencyAmount":0,"IsUseTransactionBuyerElement":false,"AcEInvoiceDocumentFlowID":"String","EInvoiceRegName_Buyer":"String","EInvoiceRegTIN_Buyer":"String","EInvoiceRegNumber_Buyer":"String","EInvoiceBuyerIsMalaysian":"String","EInvoiceBuyerRegType":"String","EInvoiceRegSSTNumber_Buyer":"String","EInvoiceRegEmail_Buyer":"String","EInvoiceAddressLine0_Buyer":"String","EInvoiceAddressLine1_Buyer":"String","EInvoiceAddressLine2_Buyer":"String","EInvoiceAddressPostalZone_Buyer":"String","EInvoiceAddressCityName_Buyer":"String","AcEInvoiceAddressStateID_Buyer":"String","AcEInvoiceAddressCountryID_Buyer":"String","EInvoiceRegContactNumber_Buyer":"String","IsEnableEInvoiceMYS":"String","AcEInvoiceDocumentStatusID":"String","IsConsolidatedEInvoice":"String","EInvoiceDocumentNumber_Consolidated":"String","EInvoiceSubmissionUUID":"String","EInvoiceValidationUUID":"String","EInvoiceValidationDateTime":"\/Date(-62135596800000-0000)\/","EInvoiceValidationLink":"String"},"DocumentDetails":[{"AcCusReceiptDID":"String","AcCusReceiptMID":"String","ItemNo":0,"AccountNoItem":"String","ItemRemark1":"String","ItemAmount":0,"AcEInvoiceItemClassificationID":"String","AcEInvoiceItemTaxTypeID":"String"}],"DocumentPaymentDetails":[{"AcCusReceiptMID":"String","ItemNo":0,"AcBillPaymentMethodID":"String","ItemReferenceNumber":"String","ItemRemark1":"String","ItemCurrencyPaymentAmount":0}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}