SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CustomerOtherReceiptsSimple

Customer Module - Transaction

Customer Receipt API

Requires Authentication
Required permission:CustomerReceipt-Transaction.GET
The following routes are available for this service:
GET/CustomerOtherReceipts/simple
GET/CustomerOtherReceipts/simple/page/{Page}Get records by given a page numberEach page consists of 20 records
GET/CustomerOtherReceipts/simple/Receipt/{AcCusReceiptMID}Get a record by given a Document NumberHeader and Detail record would be return if found.
CustomerOtherReceiptsSimple Parameters:
NameParameterData TypeRequiredDescription
Pagepathint?No
AcCusReceiptMIDpathstringNo
CustomerOtherReceiptsSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
ReceiptsformList<CustomerOtherReceiptSimple>No
ResponseStatusformResponseStatusNo
CustomerOtherReceiptSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformDocumentHeaderYesCustomer Receipt Header - Primary Key: AcCusReceiptMID
DocumentDetailsformDocumentDetailsYesCustomer Receipt Knock-Off Details - Primary Key: AcCusReceiptMID, ItemNo, MatchType, MatchDocumentNo. Note: You may get the outstanding list from CustomerOutstandingDocumentListing service.
DocumentPaymentDetailsformDocumentKnockOffDetailsYesCustomer Receipt Payment Details - Primary Key: AcCusReceiptMID, ItemNo, AcBillPaymentMethodID.
AcCusOtherReceiptMSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusReceiptMIDformNVARCHAR(20)YesReceipt Number
AcCustomerIDformNVARCHAR(20)YesCustomer ID
AcLocationIDformNVARCHAR(20)YesLocation ID
DocumentDateformDATEYesReceipt Date
RefDocumentNoformNVARCHAR(50)NoReference Number
DocumentRemarkformNVARCHAR(100)NoDocument Remark
ExtraRemark1formNVARCHAR(100)NoExtra Remark 1
ExtraRemark2formNVARCHAR(100)NoExtra Remark 2
ExtraRemark3formNVARCHAR(100)NoExtra Remark 3
ExtraRemark4formNVARCHAR(100)NoExtra Remark 4
AcCusReceiptTypeIDformNVARCHAR(20)YesReceipt Type ID (OTHER RECEIPT) (Read-Only)
PayeeformNVARCHAR(100)YesPayee Name. Default to Customer Name
AcSalesmanIDformNVARCHAR(20)YesSalesman ID
DocumentItemCurrencyAmountformNUMERIC(18,2)YesTotal Item Amount. (Read-Only)
IsUseTransactionBuyerElementformBooleanNoUse 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
AcEInvoiceDocumentFlowIDformNVARCHAR(100)NoE-Invoice Document Flow ID. Open; Ready to Submit; Not Applicable
EInvoiceRegName_BuyerformNVARCHAR(300)NoE-Invoice Registration Name Buyer
EInvoiceRegTIN_BuyerformNVARCHAR(40)NoE-Invoice Registration TIN Buyer
EInvoiceRegNumber_BuyerformNVARCHAR(40)NoE-Invoice Registration Number Buyer
EInvoiceBuyerIsMalaysianformNVARCHAR(1)YesE-Invoice Buyer Is Malaysian. Y/N
EInvoiceBuyerRegTypeformNVARCHAR(20)NoE-Invoice Buyer Registration Type. NRIC/BRN/PASSPORT/ARMY
EInvoiceRegSSTNumber_BuyerformNVARCHAR(40)NoE-Invoice Registration SST Number Buyer
EInvoiceRegEmail_BuyerformNVARCHAR(320)NoE-Invoice Registration Email Buyer
EInvoiceAddressLine0_BuyerformNVARCHAR(150)NoE-Invoice Address Line 0 Buyer
EInvoiceAddressLine1_BuyerformNVARCHAR(150)NoE-Invoice Address Line 1 Buyer
EInvoiceAddressLine2_BuyerformNVARCHAR(150)NoE-Invoice Address Line 2 Buyer
EInvoiceAddressPostalZone_BuyerformNVARCHAR(50)NoE-Invoice Address Postal Zone Buyer
EInvoiceAddressCityName_BuyerformNVARCHAR(50)NoE-Invoice Address City Name Buyer
AcEInvoiceAddressStateID_BuyerformNVARCHAR(20)NoE-Invoice Address State ID Buyer. 00 to 17
AcEInvoiceAddressCountryID_BuyerformNVARCHAR(20)NoE-Invoice Address Country ID Buyer. MYS
EInvoiceRegContactNumber_BuyerformNVARCHAR(20)NoE-Invoice Registration Contact Number Buyer
IsEnableEInvoiceMYSformNVARCHAR(1)NoE-Invoice Is Enabled. (Read-Only)
AcEInvoiceDocumentStatusIDformNVARCHAR(40)NoE-Invoice Document Status ID. (Read-Only). Valid;Invalid;Submitted;Cancelled
IsConsolidatedEInvoiceformNVARCHAR(1)NoE-Invoice Is Marked for Consolidated E-Invoice. Y/N. (Read-Only)
EInvoiceDocumentNumber_ConsolidatedformNVARCHAR(50)NoE-Invoice Consolidated E-Invoice Document Number. (Read-Only)
EInvoiceSubmissionUUIDformNVARCHAR(40)NoE-Invoice Submission UUID. (Read-Only)
EInvoiceValidationUUIDformNVARCHAR(40)NoE-Invoice Validation UUID. (Read-Only)
EInvoiceValidationDateTimeformDATETIMENoE-Invoice Validated Datetime. (Read-Only)
EInvoiceValidationLinkformNVARCHAR(MAX)NoE-Invoice Validation Link. (Read-Only)
AcCusOtherReceiptDSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusReceiptDIDformNVARCHAR(40)YesRecord ID. Recommend use GUID
AcCusReceiptMIDformNVARCHAR(20)YesReceipt Number
ItemNoformINTYesItem Number
AccountNoItemformNVARCHAR(MAX)YesItem Account Number
ItemRemark1formNVARCHAR(MAX)YesItem Remark 1
ItemAmountformNUMERIC(18,2)YesItem Amount.
AcEInvoiceItemClassificationIDformNVARCHAR(20)NoE-Invoice Item Classification Code (Read-Only)
AcEInvoiceItemTaxTypeIDformNVARCHAR(20)NoE-Invoice Item Tax Type Code (Read-Only)
AcCusOtherReceiptPaySimple Parameters:
NameParameterData TypeRequiredDescription
AcCusReceiptMIDformNVARCHAR(20)YesReceipt Number
ItemNoformINTYesItem Number
AcBillPaymentMethodIDformNVARCHAR(20)YesBill Payment Method ID
ItemReferenceNumberformNVARCHAR(100)NoReference Number
ItemRemark1formNVARCHAR(MAX)YesItem Remark 1
ItemCurrencyPaymentAmountformNUMERIC(18,2)YesItem Currency Payment Amount

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Receipts: 
	[
		{
			DocumentHeader: 
			{
				AcCusReceiptMID: String,
				AcCustomerID: String,
				AcLocationID: String,
				DocumentDate: 0001-01-01,
				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: 0001-01-01,
				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
		}
	}
}