SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CustomerQuotationsSimple

Customer Module - Transaction

Customer Quotation API

Requires Authentication
Required permission:CustomerQuotation-Transaction.GET
The following routes are available for this service:
GET/CustomerQuotations/simple
GET/CustomerQuotations/simple/page/{Page}Get records by given a page numberEach page consists of 20 records
GET/CustomerQuotations/simple/Quotation/{AcCusQuotationMID}Get a record by given a Document NumberHeader and Detail record would be return if found.
CustomerQuotationsSimple Parameters:
NameParameterData TypeRequiredDescription
Pagepathint?No
AcCusQuotationMIDpathstringNo
CustomerQuotationsSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
QuotationsformList<CustomerQuotationSimple>No
ResponseStatusformResponseStatusNo
CustomerQuotationSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformAcCusQuotationMSimpleNo
DocumentDetailsformList<AcCusQuotationDSimple>No
AcCusQuotationMSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusQuotationMIDformNVARCHAR(20)YesQuotation Number
AcCustomerIDformNVARCHAR(20)YesCustomer ID
AcSalesmanIDformNVARCHAR(20)NoSalesman ID. Default to customer's salesman if not specified
AcLocationIDformNVARCHAR(20)YesLocation ID
DocumentDateformDATEYesDocument Date
DeliveryDateformDATEYesExpected Delivery 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
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
DocumentValidityTermformNVARCHAR(100)NoQuotation Delivery Term
DocumentDeliveryTermformNVARCHAR(100)NoQuotation Delivery Term
DocumentYourReferenceformNVARCHAR(100)NoYour Reference
DocumentCCformNVARCHAR(100)NoQuotation CC
DocumentPaymentTermformNVARCHAR(100)NoQuotation Payment Term
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 1
ShipToFaxformNVARCHAR(100)NoShip To: Fax
ShipToContact1formNVARCHAR(100)NoShip To: Contact 1
ShipToContact2formNVARCHAR(100)NoShip To: Contact 2
ShipToAttentionformNVARCHAR(100)NoShip To: Attention
AcCusQuotationDSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusQuotationMIDformNVARCHAR(20)YesQuotation Number
ItemNoformINTYesItem Number. Unique in a document.
AcStockIDformNVARCHAR(20)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

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

HTTP + JSON

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

GET /CustomerQuotations/simple HTTP/1.1 
Host: snr2u.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Quotations":[{"DocumentHeader":{"AcCusQuotationMID":"String","AcCustomerID":"String","AcSalesmanID":"String","AcLocationID":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","DeliveryDate":"\/Date(-62135596800000-0000)\/","DocumentNetAmount":0,"DocumentCentBalance":0,"DocumentFinalAmount":0,"RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","DocumentValidityTerm":"String","DocumentDeliveryTerm":"String","DocumentYourReference":"String","DocumentCC":"String","DocumentPaymentTerm":"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"},"DocumentDetails":[{"AcCusQuotationMID":"String","ItemNo":0,"AcStockID":"String","AcStockUOMID":"String","ItemUnitPrice":0,"ItemQuantity":0,"ItemGrossTotal":0,"ItemDiscountAmount":0,"ItemTotalPrice":0,"ItemRemark1":"String"}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}