SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CustomerDeliveryOrdersSimple

Customer Module - Transaction

Customer Delivery Order API

Requires Authentication
Required permission:CustomerDeliveryOrder-Transaction.GET
The following routes are available for this service:
GET/CustomerDeliveryOrders/simple
GET/CustomerDeliveryOrders/simple/page/{Page}Get records by given a page numberEach page consists of 20 records
GET/CustomerDeliveryOrders/simple/DeliveryOrder/{AcCusDeliveryOrderMID}Get a record by given a Document NumberHeader and Detail record would be return if found.
GET/CustomerDeliveryOrders/simple/EditDate/{fromEditDate}/{toEditDate}Get records by given Edit Date rangeDate format yyyy-MM-dd
CustomerDeliveryOrdersSimple Parameters:
NameParameterData TypeRequiredDescription
Pagepathint?NoPage Number. Default 1.
RecordsPerPagequeryint?NoRecords Per Page. Default 20 Records.
AcCusDeliveryOrderMIDpathstringNo
fromEditDatepathDateTime?No
toEditDatepathDateTime?No
CustomerDeliveryOrdersSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
DeliveryOrdersformList<CustomerDeliveryOrderSimple>No
ResponseStatusformResponseStatusNo
TotalRecordsformintNoTotal records in all pages.
TotalRecordsInPageformintNoTotal records in current page.
CustomerDeliveryOrderSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformAcCusDeliveryOrderMSimpleNo
DocumentDetailsformList<AcCusDeliveryOrderDSimple>No
AcCusDeliveryOrderMSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusDeliveryOrderMIDformNVARCHAR(20)YesDelivery Order Number
AcCustomerIDformNVARCHAR(20)YesCustomer ID
AcTermIDformNVARCHAR(20)YesTerm 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(20)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(100)NoYour Reference
ShipToRemarkformNVARCHAR(100)NoShip To: Remark
ShipToShipViaformNVARCHAR(20)NoShip To: Ship Via
ShipToAddress1formNVARCHAR(100)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
EditDateformDATETIMEYesEdit Date
AcCustomerNameformNVARCHAR(100)NoCustomer Name (Read-Only)
AcCusDeliveryOrderDSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusDeliveryOrderDIDformNVARCHAR(40)YesRecord ID. Recommend use GUID
AcCusDeliveryOrderMIDformNVARCHAR(20)YesDelivery Order 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
MatchIsActiveformNVARCHAR(1)YesMatch Is Active. (Y/N). Default to N. If Y, please provide MatchType;MatchDocumentNo;MatchItemNo
MatchTypeformNVARCHAR(20)NoMatch Document Type. Valid Value: Sales Order
MatchDocumentNoformNVARCHAR(20)NoMatch Document Number.
MatchItemNoformINTYesMatch Document Item Number.
AcCusDeliveryOrderDSerialformListNoCustomer Delivery Order Serial List.
AcCusDeliveryOrderDSerialSimple Parameters:
NameParameterData TypeRequiredDescription
AcCusDeliveryOrderMIDformNVARCHAR(20)YesCustomer Delivery Order Number
ItemNoformINTEGERYesItem Number (Referred to AcCusDeliveryOrderD.ItemNo)
AcStockIDformNVARCHAR(20)NoStock ID
AcStockUOMIDformNVARCHAR(20)NoStock UOM ID
StockSerialNumberformNVARCHAR(40)YesStock Serial Number
ItemQuantityformINTNoItem Quantity. Always 1.

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 /CustomerDeliveryOrders/simple HTTP/1.1 
Host: snr2u.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DeliveryOrders: 
	[
		{
			DocumentHeader: 
			{
				AcCusDeliveryOrderMID: String,
				AcCustomerID: String,
				AcTermID: String,
				AcSalesmanID: String,
				AcLocationID: String,
				DocumentDate: 0001-01-01,
				DeliveryDate: 0001-01-01,
				DocumentNetAmount: 0,
				DocumentCentBalance: 0,
				DocumentFinalAmount: 0,
				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: 0001-01-01,
				AcCustomerName: String
			},
			DocumentDetails: 
			[
				{
					AcCusDeliveryOrderDID: String,
					AcCusDeliveryOrderMID: String,
					ItemNo: 0,
					AcStockID: String,
					AcStockUOMID: String,
					ItemUnitPrice: 0,
					ItemQuantity: 0,
					ItemGrossTotal: 0,
					ItemDiscountAmount: 0,
					ItemTotalPrice: 0,
					ItemRemark1: String,
					MatchIsActive: String,
					MatchType: String,
					MatchDocumentNo: String,
					MatchItemNo: 0,
					AcCusDeliveryOrderDSerial: 
					[
						{
							AcCusDeliveryOrderMID: String,
							ItemNo: 0,
							AcStockID: String,
							AcStockUOMID: String,
							StockSerialNumber: String,
							ItemQuantity: 0
						}
					]
				}
			]
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	TotalRecords: 0,
	TotalRecordsInPage: 0
}