SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CreateSupplierOtherPaymentSimple

Supplier Module - Transaction

Supplier Payment API

Requires Authentication
Required permission:SupplierPayment-Transaction.ADD
The following routes are available for this service:
POST/SupplierOtherPayments/simpleCreate a record for Supplier PaymentAcSupPaymentMID is a primary key
CreateSupplierOtherPaymentSimple Parameters:
NameParameterData TypeRequiredDescription
SupplierOtherPaymentbodySupplierOtherPaymentSimpleNo
SupplierOtherPaymentSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformDocumentHeaderYesCustomer Payment Header - Primary Key: AcCusPaymentMID
DocumentDetailsformDocumentDetailsYesCustomer Payment Knock-Off Details - Primary Key: AcCusPaymentMID, ItemNo, MatchType, MatchDocumentNo. Note: You may get the outstanding list from CustomerOutstandingDocumentListing service.
DocumentPaymentDetailsformDocumentKnockOffDetailsYesCustomer Payment Payment Details - Primary Key: AcCusPaymentMID, ItemNo, AcBillPaymentMethodID.
AcSupOtherPaymentMSimple Parameters:
NameParameterData TypeRequiredDescription
AcSupPaymentMIDformNVARCHAR(20)YesPayment Number
AcSupplierIDformNVARCHAR(20)YesSupplier ID
AcLocationIDformNVARCHAR(20)YesLocation ID
DocumentDateformDATEYesPayment 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
AcSupPaymentTypeIDformNVARCHAR(20)YesPayment Type ID (OTHER PAYMENT) (Read-Only)
PayeeformNVARCHAR(100)YesPayee Name. Default to Supplier Name
DocumentItemCurrencyAmountformNUMERIC(18,2)YesTotal Item Amount. (Read-Only)
IsUseTransactionSupplierElementformBooleanNoUse Transaction's Supplier Element?. True: Supplier Elements will stored based on provided value; False: Supplier Elements will stored based on Supplier Profile's E-Invoice Elements
AcEInvoiceDocumentFlowIDformNVARCHAR(100)NoE-Invoice Document Flow ID. Open; Ready to Submit; Not Applicable
EInvoiceRegName_SupplierformNVARCHAR(300)NoE-Invoice Registration Name Supplier
EInvoiceRegTIN_SupplierformNVARCHAR(40)NoE-Invoice Registration TIN Supplier
EInvoiceRegNumber_SupplierformNVARCHAR(40)NoE-Invoice Registration Number Supplier
EInvoiceSupplierIsMalaysianformNVARCHAR(1)YesE-Invoice Supplier Is Malaysian. Y/N
EInvoiceSupplierRegTypeformNVARCHAR(20)NoE-Invoice Supplier Registration Type. NRIC/BRN/PASSPORT/ARMY
EInvoiceRegSSTNumber_SupplierformNVARCHAR(40)NoE-Invoice Registration SST Number Supplier
EInvoiceRegTourismTaxRegNumber_SupplierformNVARCHAR(40)NoE-Invoice Tourism Tax Registration Number Supplier
EInvoiceRegEmail_SupplierformNVARCHAR(320)NoE-Invoice Registration Email Supplier
AcEInvoiceSupplierMSICID_SupplierformNVARCHAR(5)NoE-Invoice MSIC Code Supplier
EInvoiceRegBusinessActivityDescription_SupplierformNVARCHAR(300)NoE-Invoice Business Activity Description (MSIC) Supplier
EInvoiceAddressLine0_SupplierformNVARCHAR(150)NoE-Invoice Address Line 0 Supplier
EInvoiceAddressLine1_SupplierformNVARCHAR(150)NoE-Invoice Address Line 1 Supplier
EInvoiceAddressLine2_SupplierformNVARCHAR(150)NoE-Invoice Address Line 2 Supplier
EInvoiceAddressPostalZone_SupplierformNVARCHAR(50)NoE-Invoice Address Postal Zone Buyer
EInvoiceAddressCityName_SupplierformNVARCHAR(50)NoE-Invoice Address City Name Supplier
AcEInvoiceAddressStateID_SupplierformNVARCHAR(20)NoE-Invoice Address State ID Supplier. 00 to 17
AcEInvoiceAddressCountryID_SupplierformNVARCHAR(20)NoE-Invoice Address Country ID Supplier. MYS
EInvoiceRegContactNumber_SupplierformNVARCHAR(20)NoE-Invoice Registration Contact Number Supplier
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)
AcSupOtherPaymentDSimple Parameters:
NameParameterData TypeRequiredDescription
AcSupPaymentDIDformNVARCHAR(40)YesRecord ID. Recommend use GUID
AcSupPaymentMIDformNVARCHAR(20)YesPayment 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)
AcSupOtherPaymentPaySimple Parameters:
NameParameterData TypeRequiredDescription
AcSupPaymentMIDformNVARCHAR(20)YesPayment 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
CreateSupplierOtherPaymentSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
SupplierPaymentformSupplierOtherPaymentSimpleNo
ResponseStatusformResponseStatusNo

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

HTTP + CSV

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

POST /SupplierOtherPayments/simple HTTP/1.1 
Host: snr2u.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SupplierOtherPayment":{"DocumentHeader":{"AcSupPaymentMID":"String","AcSupplierID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","AcSupPaymentTypeID":"String","Payee":"String","DocumentItemCurrencyAmount":0,"IsUseTransactionSupplierElement":false,"AcEInvoiceDocumentFlowID":"String","EInvoiceRegName_Supplier":"String","EInvoiceRegTIN_Supplier":"String","EInvoiceRegNumber_Supplier":"String","EInvoiceSupplierIsMalaysian":"String","EInvoiceSupplierRegType":"String","EInvoiceRegSSTNumber_Supplier":"String","EInvoiceRegTourismTaxRegNumber_Supplier":"String","EInvoiceRegEmail_Supplier":"String","AcEInvoiceSupplierMSICID_Supplier":"String","EInvoiceRegBusinessActivityDescription_Supplier":"String","EInvoiceAddressLine0_Supplier":"String","EInvoiceAddressLine1_Supplier":"String","EInvoiceAddressLine2_Supplier":"String","EInvoiceAddressPostalZone_Supplier":"String","EInvoiceAddressCityName_Supplier":"String","AcEInvoiceAddressStateID_Supplier":"String","AcEInvoiceAddressCountryID_Supplier":"String","EInvoiceRegContactNumber_Supplier":"String","IsEnableEInvoiceMYS":"String","AcEInvoiceDocumentStatusID":"String","IsConsolidatedEInvoice":"String","EInvoiceDocumentNumber_Consolidated":"String","EInvoiceSubmissionUUID":"String","EInvoiceValidationUUID":"String","EInvoiceValidationDateTime":"\/Date(-62135596800000-0000)\/","EInvoiceValidationLink":"String"},"DocumentDetails":[{"AcSupPaymentDID":"String","AcSupPaymentMID":"String","ItemNo":0,"AccountNoItem":"String","ItemRemark1":"String","ItemAmount":0,"AcEInvoiceItemClassificationID":"String","AcEInvoiceItemTaxTypeID":"String"}],"DocumentPaymentDetails":[{"AcSupPaymentMID":"String","ItemNo":0,"AcBillPaymentMethodID":"String","ItemReferenceNumber":"String","ItemRemark1":"String","ItemCurrencyPaymentAmount":0}]}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"SupplierPayment":{"DocumentHeader":{"AcSupPaymentMID":"String","AcSupplierID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","AcSupPaymentTypeID":"String","Payee":"String","DocumentItemCurrencyAmount":0,"IsUseTransactionSupplierElement":false,"AcEInvoiceDocumentFlowID":"String","EInvoiceRegName_Supplier":"String","EInvoiceRegTIN_Supplier":"String","EInvoiceRegNumber_Supplier":"String","EInvoiceSupplierIsMalaysian":"String","EInvoiceSupplierRegType":"String","EInvoiceRegSSTNumber_Supplier":"String","EInvoiceRegTourismTaxRegNumber_Supplier":"String","EInvoiceRegEmail_Supplier":"String","AcEInvoiceSupplierMSICID_Supplier":"String","EInvoiceRegBusinessActivityDescription_Supplier":"String","EInvoiceAddressLine0_Supplier":"String","EInvoiceAddressLine1_Supplier":"String","EInvoiceAddressLine2_Supplier":"String","EInvoiceAddressPostalZone_Supplier":"String","EInvoiceAddressCityName_Supplier":"String","AcEInvoiceAddressStateID_Supplier":"String","AcEInvoiceAddressCountryID_Supplier":"String","EInvoiceRegContactNumber_Supplier":"String","IsEnableEInvoiceMYS":"String","AcEInvoiceDocumentStatusID":"String","IsConsolidatedEInvoice":"String","EInvoiceDocumentNumber_Consolidated":"String","EInvoiceSubmissionUUID":"String","EInvoiceValidationUUID":"String","EInvoiceValidationDateTime":"\/Date(-62135596800000-0000)\/","EInvoiceValidationLink":"String"},"DocumentDetails":[{"AcSupPaymentDID":"String","AcSupPaymentMID":"String","ItemNo":0,"AccountNoItem":"String","ItemRemark1":"String","ItemAmount":0,"AcEInvoiceItemClassificationID":"String","AcEInvoiceItemTaxTypeID":"String"}],"DocumentPaymentDetails":[{"AcSupPaymentMID":"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"}}}