SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CreateCustomerOtherReceiptSimple

Customer Module - Transaction

Customer Receipt API

Requires Authentication
Required permission:CustomerReceipt-Transaction.ADD
The following routes are available for this service:
POST/CustomerOtherReceipts/simpleCreate a record for Customer ReceiptAcCusReceiptMID is a primary key
CreateCustomerOtherReceiptSimple Parameters:
NameParameterData TypeRequiredDescription
CustomerOtherReceiptbodyCustomerOtherReceiptSimpleNo
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
CreateCustomerOtherReceiptSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
CustomerReceiptformCustomerOtherReceiptSimpleNo
ResponseStatusformResponseStatusNo

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /CustomerOtherReceipts/simple HTTP/1.1 
Host: snr2u.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateCustomerOtherReceiptSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
  <CustomerOtherReceipt xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel.Types">
    <d2p1:DocumentDetails>
      <d2p1:AcCusOtherReceiptDSimple>
        <d2p1:AcCusReceiptDID>String</d2p1:AcCusReceiptDID>
        <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
        <d2p1:AcEInvoiceItemClassificationID>String</d2p1:AcEInvoiceItemClassificationID>
        <d2p1:AcEInvoiceItemTaxTypeID>String</d2p1:AcEInvoiceItemTaxTypeID>
        <d2p1:AccountNoItem>String</d2p1:AccountNoItem>
        <d2p1:ItemAmount>0</d2p1:ItemAmount>
        <d2p1:ItemNo>0</d2p1:ItemNo>
        <d2p1:ItemRemark1>String</d2p1:ItemRemark1>
      </d2p1:AcCusOtherReceiptDSimple>
    </d2p1:DocumentDetails>
    <d2p1:DocumentHeader>
      <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
      <d2p1:AcCusReceiptTypeID>String</d2p1:AcCusReceiptTypeID>
      <d2p1:AcCustomerID>String</d2p1:AcCustomerID>
      <d2p1:AcEInvoiceAddressCountryID_Buyer>String</d2p1:AcEInvoiceAddressCountryID_Buyer>
      <d2p1:AcEInvoiceAddressStateID_Buyer>String</d2p1:AcEInvoiceAddressStateID_Buyer>
      <d2p1:AcEInvoiceDocumentFlowID>String</d2p1:AcEInvoiceDocumentFlowID>
      <d2p1:AcEInvoiceDocumentStatusID>String</d2p1:AcEInvoiceDocumentStatusID>
      <d2p1:AcLocationID>String</d2p1:AcLocationID>
      <d2p1:AcSalesmanID>String</d2p1:AcSalesmanID>
      <d2p1:DocumentDate>0001-01-01T00:00:00</d2p1:DocumentDate>
      <d2p1:DocumentItemCurrencyAmount>0</d2p1:DocumentItemCurrencyAmount>
      <d2p1:DocumentRemark>String</d2p1:DocumentRemark>
      <d2p1:EInvoiceAddressCityName_Buyer>String</d2p1:EInvoiceAddressCityName_Buyer>
      <d2p1:EInvoiceAddressLine0_Buyer>String</d2p1:EInvoiceAddressLine0_Buyer>
      <d2p1:EInvoiceAddressLine1_Buyer>String</d2p1:EInvoiceAddressLine1_Buyer>
      <d2p1:EInvoiceAddressLine2_Buyer>String</d2p1:EInvoiceAddressLine2_Buyer>
      <d2p1:EInvoiceAddressPostalZone_Buyer>String</d2p1:EInvoiceAddressPostalZone_Buyer>
      <d2p1:EInvoiceBuyerIsMalaysian>String</d2p1:EInvoiceBuyerIsMalaysian>
      <d2p1:EInvoiceBuyerRegType>String</d2p1:EInvoiceBuyerRegType>
      <d2p1:EInvoiceDocumentNumber_Consolidated>String</d2p1:EInvoiceDocumentNumber_Consolidated>
      <d2p1:EInvoiceRegContactNumber_Buyer>String</d2p1:EInvoiceRegContactNumber_Buyer>
      <d2p1:EInvoiceRegEmail_Buyer>String</d2p1:EInvoiceRegEmail_Buyer>
      <d2p1:EInvoiceRegName_Buyer>String</d2p1:EInvoiceRegName_Buyer>
      <d2p1:EInvoiceRegNumber_Buyer>String</d2p1:EInvoiceRegNumber_Buyer>
      <d2p1:EInvoiceRegSSTNumber_Buyer>String</d2p1:EInvoiceRegSSTNumber_Buyer>
      <d2p1:EInvoiceRegTIN_Buyer>String</d2p1:EInvoiceRegTIN_Buyer>
      <d2p1:EInvoiceSubmissionUUID>String</d2p1:EInvoiceSubmissionUUID>
      <d2p1:EInvoiceValidationDateTime>0001-01-01T00:00:00</d2p1:EInvoiceValidationDateTime>
      <d2p1:EInvoiceValidationLink>String</d2p1:EInvoiceValidationLink>
      <d2p1:EInvoiceValidationUUID>String</d2p1:EInvoiceValidationUUID>
      <d2p1:ExtraRemark1>String</d2p1:ExtraRemark1>
      <d2p1:ExtraRemark2>String</d2p1:ExtraRemark2>
      <d2p1:ExtraRemark3>String</d2p1:ExtraRemark3>
      <d2p1:ExtraRemark4>String</d2p1:ExtraRemark4>
      <d2p1:IsConsolidatedEInvoice>String</d2p1:IsConsolidatedEInvoice>
      <d2p1:IsEnableEInvoiceMYS>String</d2p1:IsEnableEInvoiceMYS>
      <d2p1:IsUseTransactionBuyerElement>false</d2p1:IsUseTransactionBuyerElement>
      <d2p1:Payee>String</d2p1:Payee>
      <d2p1:RefDocumentNo>String</d2p1:RefDocumentNo>
    </d2p1:DocumentHeader>
    <d2p1:DocumentPaymentDetails>
      <d2p1:AcCusOtherReceiptPaySimple>
        <d2p1:AcBillPaymentMethodID>String</d2p1:AcBillPaymentMethodID>
        <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
        <d2p1:ItemCurrencyPaymentAmount>0</d2p1:ItemCurrencyPaymentAmount>
        <d2p1:ItemNo>0</d2p1:ItemNo>
        <d2p1:ItemReferenceNumber>String</d2p1:ItemReferenceNumber>
        <d2p1:ItemRemark1>String</d2p1:ItemRemark1>
      </d2p1:AcCusOtherReceiptPaySimple>
    </d2p1:DocumentPaymentDetails>
  </CustomerOtherReceipt>
</CreateCustomerOtherReceiptSimple>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateCustomerOtherReceiptSimpleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
  <CustomerReceipt xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel.Types">
    <d2p1:DocumentDetails>
      <d2p1:AcCusOtherReceiptDSimple>
        <d2p1:AcCusReceiptDID>String</d2p1:AcCusReceiptDID>
        <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
        <d2p1:AcEInvoiceItemClassificationID>String</d2p1:AcEInvoiceItemClassificationID>
        <d2p1:AcEInvoiceItemTaxTypeID>String</d2p1:AcEInvoiceItemTaxTypeID>
        <d2p1:AccountNoItem>String</d2p1:AccountNoItem>
        <d2p1:ItemAmount>0</d2p1:ItemAmount>
        <d2p1:ItemNo>0</d2p1:ItemNo>
        <d2p1:ItemRemark1>String</d2p1:ItemRemark1>
      </d2p1:AcCusOtherReceiptDSimple>
    </d2p1:DocumentDetails>
    <d2p1:DocumentHeader>
      <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
      <d2p1:AcCusReceiptTypeID>String</d2p1:AcCusReceiptTypeID>
      <d2p1:AcCustomerID>String</d2p1:AcCustomerID>
      <d2p1:AcEInvoiceAddressCountryID_Buyer>String</d2p1:AcEInvoiceAddressCountryID_Buyer>
      <d2p1:AcEInvoiceAddressStateID_Buyer>String</d2p1:AcEInvoiceAddressStateID_Buyer>
      <d2p1:AcEInvoiceDocumentFlowID>String</d2p1:AcEInvoiceDocumentFlowID>
      <d2p1:AcEInvoiceDocumentStatusID>String</d2p1:AcEInvoiceDocumentStatusID>
      <d2p1:AcLocationID>String</d2p1:AcLocationID>
      <d2p1:AcSalesmanID>String</d2p1:AcSalesmanID>
      <d2p1:DocumentDate>0001-01-01T00:00:00</d2p1:DocumentDate>
      <d2p1:DocumentItemCurrencyAmount>0</d2p1:DocumentItemCurrencyAmount>
      <d2p1:DocumentRemark>String</d2p1:DocumentRemark>
      <d2p1:EInvoiceAddressCityName_Buyer>String</d2p1:EInvoiceAddressCityName_Buyer>
      <d2p1:EInvoiceAddressLine0_Buyer>String</d2p1:EInvoiceAddressLine0_Buyer>
      <d2p1:EInvoiceAddressLine1_Buyer>String</d2p1:EInvoiceAddressLine1_Buyer>
      <d2p1:EInvoiceAddressLine2_Buyer>String</d2p1:EInvoiceAddressLine2_Buyer>
      <d2p1:EInvoiceAddressPostalZone_Buyer>String</d2p1:EInvoiceAddressPostalZone_Buyer>
      <d2p1:EInvoiceBuyerIsMalaysian>String</d2p1:EInvoiceBuyerIsMalaysian>
      <d2p1:EInvoiceBuyerRegType>String</d2p1:EInvoiceBuyerRegType>
      <d2p1:EInvoiceDocumentNumber_Consolidated>String</d2p1:EInvoiceDocumentNumber_Consolidated>
      <d2p1:EInvoiceRegContactNumber_Buyer>String</d2p1:EInvoiceRegContactNumber_Buyer>
      <d2p1:EInvoiceRegEmail_Buyer>String</d2p1:EInvoiceRegEmail_Buyer>
      <d2p1:EInvoiceRegName_Buyer>String</d2p1:EInvoiceRegName_Buyer>
      <d2p1:EInvoiceRegNumber_Buyer>String</d2p1:EInvoiceRegNumber_Buyer>
      <d2p1:EInvoiceRegSSTNumber_Buyer>String</d2p1:EInvoiceRegSSTNumber_Buyer>
      <d2p1:EInvoiceRegTIN_Buyer>String</d2p1:EInvoiceRegTIN_Buyer>
      <d2p1:EInvoiceSubmissionUUID>String</d2p1:EInvoiceSubmissionUUID>
      <d2p1:EInvoiceValidationDateTime>0001-01-01T00:00:00</d2p1:EInvoiceValidationDateTime>
      <d2p1:EInvoiceValidationLink>String</d2p1:EInvoiceValidationLink>
      <d2p1:EInvoiceValidationUUID>String</d2p1:EInvoiceValidationUUID>
      <d2p1:ExtraRemark1>String</d2p1:ExtraRemark1>
      <d2p1:ExtraRemark2>String</d2p1:ExtraRemark2>
      <d2p1:ExtraRemark3>String</d2p1:ExtraRemark3>
      <d2p1:ExtraRemark4>String</d2p1:ExtraRemark4>
      <d2p1:IsConsolidatedEInvoice>String</d2p1:IsConsolidatedEInvoice>
      <d2p1:IsEnableEInvoiceMYS>String</d2p1:IsEnableEInvoiceMYS>
      <d2p1:IsUseTransactionBuyerElement>false</d2p1:IsUseTransactionBuyerElement>
      <d2p1:Payee>String</d2p1:Payee>
      <d2p1:RefDocumentNo>String</d2p1:RefDocumentNo>
    </d2p1:DocumentHeader>
    <d2p1:DocumentPaymentDetails>
      <d2p1:AcCusOtherReceiptPaySimple>
        <d2p1:AcBillPaymentMethodID>String</d2p1:AcBillPaymentMethodID>
        <d2p1:AcCusReceiptMID>String</d2p1:AcCusReceiptMID>
        <d2p1:ItemCurrencyPaymentAmount>0</d2p1:ItemCurrencyPaymentAmount>
        <d2p1:ItemNo>0</d2p1:ItemNo>
        <d2p1:ItemReferenceNumber>String</d2p1:ItemReferenceNumber>
        <d2p1:ItemRemark1>String</d2p1:ItemRemark1>
      </d2p1:AcCusOtherReceiptPaySimple>
    </d2p1:DocumentPaymentDetails>
  </CustomerReceipt>
  <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>
</CreateCustomerOtherReceiptSimpleResponse>