SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CustomerSalesOrdersSimple_GST_SGP

Customer Module - Transaction (GST/SGP)

Customer Sales Order API

Requires Authentication
Required permission:CustomerSalesOrder-Transaction.GET
The following routes are available for this service:
GET/CustomerSalesOrders/GST/SGP/simple
GET/CustomerSalesOrders/GST/SGP/simple/page/{Page}Get records by given a page numberEach page consists of 20 records
GET/CustomerSalesOrders/GST/SGP/simple/SalesOrder/{AcCusSalesOrderMID}Get a record by given a Document NumberHeader and Detail record would be return if found.
CustomerSalesOrdersSimple_GST_SGP Parameters:
NameParameterData TypeRequiredDescription
Pagepathint?No
AcCusSalesOrderMIDpathstringNo
CustomerSalesOrdersSimple_GST_SGP_Response Parameters:
NameParameterData TypeRequiredDescription
SalesOrdersformList<CustomerSalesOrderSimple_GST_SGP>No
ResponseStatusformResponseStatusNo
CustomerSalesOrderSimple_GST_SGP Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformAcCusSalesOrderMSimple_GST_SGPNo
DocumentDetailsformList<AcCusSalesOrderDSimple_GST_SGP>No
AcCusSalesOrderMSimple_GST_SGP 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
AcAccountJobIDformNVARCHAR(20)NoAccount Job ID
IsEnableGSTformNVARCHAR(1)YesIs Enable GST (Y/N). SGP GST Indicator
DocumentItemGSTAmountformNUMERIC(18,6)NoTotal GST Amount (System Calculated based on Items Given)
DocumentItemGrossTotalformNUMERIC(18,2)NoGross Total Without GST (System Calculated based on Items Given)
DocumentItemDiscountTotalformNUMERIC(18,2)NoDiscount Total Without GST (System Calculated based on Items Given)
DocumentItemTotalPriceformNUMERIC(18,2)NoTotal Without GST (System Calculated based on Items Given)
DocumentItemGrossTotalWithGSTformNUMERIC(18,6)NoGross Total With GST (System Calculated based on Items Given)
DocumentItemDiscountAmountWithGSTformNUMERIC(18,2)NoDiscount With GST (System Calculated based on Items Given)
DocumentItemTotalPriceWithGSTformNUMERIC(18,2)NoTotal With GST (System Calculated based on Items Given)
DocumentItemGrossTotalWithoutGSTformNUMERIC(18,6)NoGross Total Without GST (System Calculated based on Items Given)
DocumentItemDiscountAmountWithoutGSTformNUMERIC(18,2)NoDiscount Without GST (System Calculated based on Items Given)
DocumentItemTotalPriceWithoutGSTformNUMERIC(18,2)NoTotal Without GST (System Calculated based on Items Given)
AcCusSalesOrderDSimple_GST_SGP 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 (Tax Exclusive Price)
ItemQuantityformNUMERIC(18,4)YesItem Quantity
ItemGrossTotalformNUMERIC(18,2)YesItem Gross Total (Tax Exclusive). [Item Unit Price] x [Item Quantity]
ItemDiscountAmountformNUMERIC(18,2)YesItem Discount Amount (Discount given based on Tax Exclusive Gross Total)
AcTaxIDformNVARCHAR(20)NoTax Code. SGP GST Tax Codes Only
ItemGSTPercentformNUMERIC(18,2)YesTax Rate.
ItemGSTAmountformNUMERIC(18,6)YesTax Amount
ItemTotalPriceformNUMERIC(18,2)YesItem Total Price. [(Unit Price x Quantity) - Discount Amount - Tax Amount]
ItemRemark1formNVARCHAR(MAX)YesItem Remark 1
AccountNoItemformNVARCHAR(20)NoAccount No Item
AcAccountDepartmentIDformNVARCHAR(20)NoAccount Department ID
AcAccountJobIDformNVARCHAR(20)NoAccount Job ID
ItemIsGSTInclusiveformNVARCHAR(1)YesItem Unit Price is GST Inclusive? (Y/N)
ItemUnitPriceInputformNUMERIC(18,4)YesItem Unit Price Input (If ItemIsGSTInclusive = Y, provide Unit Price with Tax Inclusive; If ItemIsGSTInclusive = Y, provide Unit Price with Tax Exclusive )
ItemUnitPriceWithGSTformNUMERIC(18,6)YesItem Unit Price (Tax Inclusive)
ItemGrossTotalWithGSTformNUMERIC(18,6)YesItem Gross Total (Tax Inclusive), [ItemUnitPriceWithGST] x [Quantity]
ItemDiscountAmountWithGSTformNUMERIC(18,2)YesItem Discount Amount (Tax Inclusive). (Discount given based on Tax Inclusive Gross Total)
ItemTotalPriceWithGSTformNUMERIC(18,2)YesItem Total Price. (Tax Inclusive)
ItemUnitPriceWithoutGSTformNUMERIC(18,6)YesItem Unit Price (Tax Exclusive)
ItemGrossTotalWithoutGSTformNUMERIC(18,6)YesItem Gross Total (Tax Exclusive), [ItemUnitPriceWithoutGST] x [Quantity]
ItemDiscountAmountWithoutGSTformNUMERIC(18,2)YesItem Discount Amount (Tax Exclusive). (Discount given based on Tax Exclusive Gross Total)
ItemTotalPriceWithoutGSTformNUMERIC(18,2)YesItem Total Price. (Tax Exclusive)
StockBarcodeformNVARCHAR(20)NoStock Barcode. If Stock ID and UOM provided, Stock Barcode auto assigned accordingly. If Stock Barcode provided, Stock ID and UOM will be auto assigned accordingly.

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

{
	SalesOrders: 
	[
		{
			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,
				AcAccountJobID: String,
				IsEnableGST: String,
				DocumentItemGSTAmount: 0,
				DocumentItemGrossTotal: 0,
				DocumentItemDiscountTotal: 0,
				DocumentItemTotalPrice: 0,
				DocumentItemGrossTotalWithGST: 0,
				DocumentItemDiscountAmountWithGST: 0,
				DocumentItemTotalPriceWithGST: 0,
				DocumentItemGrossTotalWithoutGST: 0,
				DocumentItemDiscountAmountWithoutGST: 0,
				DocumentItemTotalPriceWithoutGST: 0
			},
			DocumentDetails: 
			[
				{
					AcCusSalesOrderMID: String,
					ItemNo: 0,
					AcStockID: String,
					AcStockUOMID: String,
					ItemUnitPrice: 0,
					ItemQuantity: 0,
					ItemGrossTotal: 0,
					ItemDiscountAmount: 0,
					AcTaxID: String,
					ItemGSTPercent: 0,
					ItemGSTAmount: 0,
					ItemTotalPrice: 0,
					ItemRemark1: String,
					AccountNoItem: String,
					AcAccountDepartmentID: String,
					AcAccountJobID: String,
					ItemIsGSTInclusive: String,
					ItemUnitPriceInput: 0,
					ItemUnitPriceWithGST: 0,
					ItemGrossTotalWithGST: 0,
					ItemDiscountAmountWithGST: 0,
					ItemTotalPriceWithGST: 0,
					ItemUnitPriceWithoutGST: 0,
					ItemGrossTotalWithoutGST: 0,
					ItemDiscountAmountWithoutGST: 0,
					ItemTotalPriceWithoutGST: 0,
					StockBarcode: String
				}
			]
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}