SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CreateCustomerRefundNoteSimple

Customer Module - Transaction

Customer Refund Note API

Requires Authentication
Required permission:CustomerRefundNote-Transaction.ADD
The following routes are available for this service:
POST/CustomerRefundNotes/simpleCreate a record for Customer Refund NoteAcCusRefundNoteMID is a primary key
CreateCustomerRefundNoteSimple Parameters:
NameParameterData TypeRequiredDescription
CustomerRefundNotebodyCustomerRefundNoteSimpleNo
CustomerRefundNoteSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformDocumentHeaderYesCustomer Refund Note Header - Primary Key: AcCusRefundNoteMID
DocumentDetailsformDocumentDetailsYesCustomer Refund Note Details - Primary Key: AcCusRefundNoteMID, ItemNo.
DocumentPaymentDetailsformDocumentPaymentDetailsYesCustomer Refund Note Payment Details - Primary Key: AcCusRefundNoteMID, ItemNo.Check out BillPaymentMethods service for list of available AcBillPaymentMethodID.
AcCusRefundNoteMSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusRefundNoteMIDformNVARCHAR(20)YesRefund Note Number
AcCustomerIDformNVARCHAR(20)YesCustomer ID
AcTermIDformNVARCHAR(40)NoTerm ID
AcSalesmanIDformNVARCHAR(20)NoSalesman ID. Default to customer's salesman if not specified
AcLocationIDformNVARCHAR(20)YesLocation ID
DocumentDateformDATEYesRefund Note Date
DocumentNetAmountformNUMERIC(18,2)YesNet Amount. Before Round Cent Adjustment
DocumentCentBalanceformNUMERIC(18,2)YesRound Cent Adjustment Amount
DocumentFinalAmountformNUMERIC(18,2)YesFinal Amount. After Round Cent Adjustment
AcCusInvoiceMIDformNVARCHAR(20)YesCustomer Invoice Number
DocumentReasonformNVARCHAR(100)YesReason
RefDocumentNoformNVARCHAR(100)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
DocumentYourReferenceformNVARCHAR(50)NoYour Reference
ShipToRemarkformNVARCHAR(100)NoShip To: Remark
ShipToShipViaformNVARCHAR(20)NoShip To: Ship Via
ShipToAddress1formNVARCHAR(MAX)NoShip To: Address 1
ShipToAddress2formNVARCHAR(100)NoShip To: Address 2
ShipToAddress3formNVARCHAR(100)NoShip To: Address 3
ShipToAddress4formNVARCHAR(100)NoShip To: Address 4
ShipToPhone1formNVARCHAR(100)NoShip To: Phone 1
ShipToPhone2formNVARCHAR(100)NoShip To: Phone 2
ShipToFaxformNVARCHAR(100)NoShip To: Fax
ShipToContact1formNVARCHAR(100)NoShip To: Contact 1
ShipToContact2formNVARCHAR(100)NoShip To: Contact 2
ShipToAttentionformNVARCHAR(100)NoShip To: Attention
EditDateformDATETIMEYesEdit Date
IsUseAcStockCompanyIDForStockValidationformBooleanNoUse AcStockCompanyID for Stock Validation?. True: Use given AcStockID to search from AcStockCompany.AcStockCompanyID and use result AcStockID, AcStockUOMID; False: Validation will be performed using AcStockID; AcStockUOMID
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)
AcCustomerNameformNVARCHAR(100)NoCustomer Name (Read-Only)
AcCusRefundNoteDSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusRefundNoteDIDformNVARCHAR(40)YesRecord ID. Recommend use GUID
AcCusRefundNoteMIDformNVARCHAR(20)YesRefund Note Number
ItemNoformINTYesItem Number
AcStockIDformNVARCHAR(40)YesStock ID
AcStockUOMIDformNVARCHAR(20)YesStock UOM ID
ItemUnitPriceformNUMERIC(18,4)YesItem Unit Price
ItemQuantityformNUMERIC(18,4)YesItem Quantity
ItemGrossTotalformNUMERIC(18,2)YesItem Gross Total. [Item Unit Price] x [Item Quantity]
ItemDiscountAmountformNUMERIC(18,2)YesItem Discount Amount
ItemTotalPriceformNUMERIC(18,2)YesItem Total Price. [(Unit Price x Quantity) - Discount Amount]
ItemRemark1formNVARCHAR(MAX)YesItem Remark 1
AcEInvoiceItemClassificationIDformNVARCHAR(20)NoE-Invoice Item Classification Code (Read-Only)
AcEInvoiceItemTaxTypeIDformNVARCHAR(20)NoE-Invoice Item Tax Type Code (Read-Only)
AcCusRefundNotePaySimple Parameters:
NameParameterData TypeRequiredDescription
AcCusRefundNoteMIDformNVARCHAR(20)YesRefund Note 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
CreateCustomerRefundNoteSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
CustomerRefundNoteformCustomerRefundNoteSimpleNo
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 /CustomerRefundNotes/simple HTTP/1.1 
Host: snr2u.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"CustomerRefundNote":{"DocumentHeader":{"AcCusRefundNoteMID":"String","AcCustomerID":"String","AcTermID":"String","AcSalesmanID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","DocumentNetAmount":0,"DocumentCentBalance":0,"DocumentFinalAmount":0,"AcCusInvoiceMID":"String","DocumentReason":"String","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","DocumentYourReference":"String","ShipToRemark":"String","ShipToShipVia":"String","ShipToAddress1":"String","ShipToAddress2":"String","ShipToAddress3":"String","ShipToAddress4":"String","ShipToPhone1":"String","ShipToPhone2":"String","ShipToFax":"String","ShipToContact1":"String","ShipToContact2":"String","ShipToAttention":"String","EditDate":"\/Date(-62135596800000-0000)\/","IsUseAcStockCompanyIDForStockValidation":false,"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","AcCustomerName":"String"},"DocumentDetails":[{"AcCusRefundNoteDID":"String","AcCusRefundNoteMID":"String","ItemNo":0,"AcStockID":"String","AcStockUOMID":"String","ItemUnitPrice":0,"ItemQuantity":0,"ItemGrossTotal":0,"ItemDiscountAmount":0,"ItemTotalPrice":0,"ItemRemark1":"String","AcEInvoiceItemClassificationID":"String","AcEInvoiceItemTaxTypeID":"String"}],"DocumentPaymentDetails":[{"AcCusRefundNoteMID":"String","ItemNo":0,"AcBillPaymentMethodID":"String","ItemReferenceNumber":"String","ItemRemark1":"String","ItemCurrencyPaymentAmount":0}]}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"CustomerRefundNote":{"DocumentHeader":{"AcCusRefundNoteMID":"String","AcCustomerID":"String","AcTermID":"String","AcSalesmanID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","DocumentNetAmount":0,"DocumentCentBalance":0,"DocumentFinalAmount":0,"AcCusInvoiceMID":"String","DocumentReason":"String","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","DocumentYourReference":"String","ShipToRemark":"String","ShipToShipVia":"String","ShipToAddress1":"String","ShipToAddress2":"String","ShipToAddress3":"String","ShipToAddress4":"String","ShipToPhone1":"String","ShipToPhone2":"String","ShipToFax":"String","ShipToContact1":"String","ShipToContact2":"String","ShipToAttention":"String","EditDate":"\/Date(-62135596800000-0000)\/","IsUseAcStockCompanyIDForStockValidation":false,"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","AcCustomerName":"String"},"DocumentDetails":[{"AcCusRefundNoteDID":"String","AcCusRefundNoteMID":"String","ItemNo":0,"AcStockID":"String","AcStockUOMID":"String","ItemUnitPrice":0,"ItemQuantity":0,"ItemGrossTotal":0,"ItemDiscountAmount":0,"ItemTotalPrice":0,"ItemRemark1":"String","AcEInvoiceItemClassificationID":"String","AcEInvoiceItemTaxTypeID":"String"}],"DocumentPaymentDetails":[{"AcCusRefundNoteMID":"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"}}}