SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

ReCreateCustomerSalesOrderSimple_Currency

Customer Module - Transaction

Customer Sales Order API

Requires Authentication
Required permission:CustomerSalesOrder-Transaction.UPDATE
The following routes are available for this service:
POST/CustomerSalesOrders/Currency/simple/recreate/{AcCusSalesOrderMID}Re-Create Customer Sales Order.AcCusSalesOrderMID is a document number. Request would be rejected if the sales order being processed (matched).
ReCreateCustomerSalesOrderSimple_Currency Parameters:
NameParameterData TypeRequiredDescription
AcCusSalesOrderMIDpathstringNo
CustomerSalesOrderbodyCustomerSalesOrderSimple_CurrencyNo
CustomerSalesOrderSimple_Currency Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformAcCusSalesOrderMSimple_CurrencyNo
DocumentDetailsformList<AcCusSalesOrderDSimple_Currency>No
AcCusSalesOrderMSimple_Currency Parameters:
NameParameterData TypeRequiredDescription
AcCusSalesOrderMIDformNVARCHAR(20)YesSales Order 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
DocumentYourReferenceformNVARCHAR(100)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 1
ShipToFaxformNVARCHAR(100)NoShip To: Fax
ShipToContact1formNVARCHAR(100)NoShip To: Contact 1
ShipToContact2formNVARCHAR(100)NoShip To: Contact 2
ShipToAttentionformNVARCHAR(100)NoShip To: Attention
AcAccountDepartmentIDformNVARCHAR(20)NoAccount Department ID
AcCurrencyIDformstringYesCurrency ID. Default to home currency (eg: MYR/SGD)
CurrencyRateformdecimalYesCurrency Rate. Default to 1
DocumentLocalItemTotalPriceformdecimalYesTotal of detail.ItemTotalPrice
DocumentLocalDiscountAmountformdecimalYesDocument Discount Amount. Always 0
DocumentLocalNetAmountformdecimalYesTotal of detail.ItemTotalPrice
DocumentLocalCentBalanceformdecimalYesRound Cent Adjustment Amount.
DocumentLocalFinalAmountformdecimalYesInvoice Amount. Amount After Minus Round Cent
DocumentItemLocalGSTAmountformdecimalYesGST Amount. Always 0
DocumentLocalItemGrossTotalformdecimalYesTotal of detail.ItemGrossTotal
DocumentLocalItemGrossTotalWithGSTformdecimalYesTotal of detail.ItemGrossTotal
DocumentLocalItemGrossTotalWithoutGSTformdecimalYesTotal of detail.ItemGrossTotal
DocumentLocalItemDiscountTotalWithGSTformdecimalYesTotal of detail.ItemDiscountAmount
DocumentLocalItemDiscountTotalWithoutGSTformdecimalYesTotal of detail.ItemDiscountAmount
AcCusSalesOrderDSimple_Currency Parameters:
NameParameterData TypeRequiredDescription
AcCusSalesOrderMIDformNVARCHAR(20)YesSales 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
AccountNoItemformNVARCHAR(20)NoAccount No Item
AcAccountDepartmentIDformNVARCHAR(20)NoAccount Department ID
ItemLocalGrossTotalformdecimalYesItem Gross Total in Local Currency.
ItemLocalDiscountAmountformdecimalYesItem Discount Amount in Local Currency.
ItemLocalTotalPriceformdecimalYesItem Total Amount in Local Currency.
ItemLocalGrossTotalWithGSTformdecimalYesItem Gross Total with Tax Inclusive in Local Currency
ItemLocalGrossTotalWithoutGSTformdecimalYesItem Gross Total without Tax Inclusive in Local Currency
ItemLocalDiscountAmountWithGSTformdecimalYesItem Discount Amount with Tax Inclusive in Local Currency
ItemLocalDiscountAmountWithoutGSTformdecimalYesItem Discount Amount without Tax Inclusive in Local Currency
ItemLocalTotalPriceWithGSTformdecimalYesItem Total Amount with Tax Inclusive in Local Currency
ItemLocalTotalPriceWithoutGSTformdecimalYesItem Total Amount without Tax Inclusive in Local Currency

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.

POST /CustomerSalesOrders/Currency/simple/recreate/{AcCusSalesOrderMID} HTTP/1.1 
Host: snr2u.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	AcCusSalesOrderMID: String,
	CustomerSalesOrder: 
	{
		DocumentHeader: 
		{
			AcCusSalesOrderMID: String,
			AcCustomerID: 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,
			AcAccountDepartmentID: String,
			AcCurrencyID: String,
			CurrencyRate: 0,
			DocumentLocalItemTotalPrice: 0,
			DocumentLocalDiscountAmount: 0,
			DocumentLocalNetAmount: 0,
			DocumentLocalCentBalance: 0,
			DocumentLocalFinalAmount: 0,
			DocumentItemLocalGSTAmount: 0,
			DocumentLocalItemGrossTotal: 0,
			DocumentLocalItemGrossTotalWithGST: 0,
			DocumentLocalItemGrossTotalWithoutGST: 0,
			DocumentLocalItemDiscountTotalWithGST: 0,
			DocumentLocalItemDiscountTotalWithoutGST: 0
		},
		DocumentDetails: 
		[
			{
				AcCusSalesOrderMID: String,
				ItemNo: 0,
				AcStockID: String,
				AcStockUOMID: String,
				ItemUnitPrice: 0,
				ItemQuantity: 0,
				ItemGrossTotal: 0,
				ItemDiscountAmount: 0,
				ItemTotalPrice: 0,
				ItemRemark1: String,
				AccountNoItem: String,
				AcAccountDepartmentID: String,
				ItemLocalGrossTotal: 0,
				ItemLocalDiscountAmount: 0,
				ItemLocalTotalPrice: 0,
				ItemLocalGrossTotalWithGST: 0,
				ItemLocalGrossTotalWithoutGST: 0,
				ItemLocalDiscountAmountWithGST: 0,
				ItemLocalDiscountAmountWithoutGST: 0,
				ItemLocalTotalPriceWithGST: 0,
				ItemLocalTotalPriceWithoutGST: 0
			}
		]
	}
}