SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

CreateSupplierGoodsReceiveNoteSimple

Supplier Module - Transaction

Supplier Goods Receive Note API

Requires Authentication
Required permission:SupplierGoodsReceiveNote-Transaction.ADD
The following routes are available for this service:
POST/SupplierGoodsReceiveNotes/simpleCreate a record for Supplier Goods Receive NoteAcSupGoodsReceiveNoteMID is a primary key
CreateSupplierGoodsReceiveNoteSimple Parameters:
NameParameterData TypeRequiredDescription
SupplierGoodsReceiveNotebodySupplierGoodsReceiveNoteSimpleNo
SupplierGoodsReceiveNoteSimple Parameters:
NameParameterData TypeRequiredDescription
DocumentHeaderformDocumentHeaderYesSupplier Goods Receive Note Header - Primary Key: AcSupGoodsReceiveNoteMID
DocumentDetailsformDocumentDetailsYesSupplier Goods Receive Note Details - Primary Key: AcSupGoodsReceiveNoteMID, ItemNo
AcSupGoodsReceiveNoteMSimple Parameters:
NameParameterData TypeRequiredDescription
AcSupGoodsReceiveNoteMIDformNVARCHAR(20)YesGoods Receive Note Number
AcSupplierIDformNVARCHAR(20)YesSupplier ID
AcLocationIDformNVARCHAR(20)YesLocation ID
DocumentDateformDATEYesGoods Receive Note Date
SupplierDONumberformNVARCHAR(20)NoSupplier DO Number
IsConsignmentINStockOnlyformNVARCHAR(1)YesIs Consignment IN Stock Only
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
RefDocumentNoformNUMERIC(18,2)YesTotal Applied Amount. Total knock-off amount that applied to outstanding invoices.
DocumentRemarkformNVARCHAR(100)NoDocument Remark
ExtraRemark1formNVARCHAR(100)NoExtra Remark 1
ExtraRemark2formNVARCHAR(100)NoExtra Remark 2
ExtraRemark3formNVARCHAR(100)NoExtra Remark 3
ExtraRemark4formNVARCHAR(100)NoExtra Remark 4
EditDateformDATETIMEYesEdit Date
AcSupGoodsReceiveNoteDSimple Parameters:
NameParameterData TypeRequiredDescription
AcSupGoodsReceiveNoteMIDformNVARCHAR(20)YesGoods Receive Number
ItemNoformINTYesItem Number
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
AcSupGoodsReceiveNoteDSerialformListNoSupplier Goods Receive Note Serial List.
AcSupGoodsReceiveNoteDSerialSimple Parameters:
NameParameterData TypeRequiredDescription
AcSupGoodsReceiveNoteMIDformNVARCHAR(20)YesSupplier Goods Receive Note Number
ItemNoformINTEGERYesItem Number (Referred to AcSupGoodsReceiveNoteD.ItemNo)
AcStockIDformNVARCHAR(20)NoStock ID
AcStockUOMIDformNVARCHAR(20)NoStock UOM ID
StockSerialNumberformNVARCHAR(40)YesStock Serial Number
ItemQuantityformINTNoItem Quantity. Always 1.
CreateSupplierGoodsReceiveNoteSimpleResponse Parameters:
NameParameterData TypeRequiredDescription
SupplierGoodsReceiveNoteformSupplierGoodsReceiveNoteSimpleNo
ResponseStatusformResponseStatusNo

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

{
	SupplierGoodsReceiveNote: 
	{
		DocumentHeader: 
		{
			AcSupGoodsReceiveNoteMID: String,
			AcSupplierID: String,
			AcLocationID: String,
			DocumentDate: 0001-01-01,
			SupplierDONumber: String,
			IsConsignmentINStockOnly: String,
			DocumentNetAmount: 0,
			DocumentCentBalance: 0,
			DocumentFinalAmount: 0,
			RefDocumentNo: String,
			DocumentRemark: String,
			ExtraRemark1: String,
			ExtraRemark2: String,
			ExtraRemark3: String,
			ExtraRemark4: String,
			EditDate: 0001-01-01
		},
		DocumentDetails: 
		[
			{
				AcSupGoodsReceiveNoteMID: String,
				ItemNo: 0,
				AcStockID: String,
				AcStockUOMID: String,
				ItemUnitPrice: 0,
				ItemQuantity: 0,
				ItemGrossTotal: 0,
				ItemDiscountAmount: 0,
				ItemTotalPrice: 0,
				ItemRemark1: String,
				AcSupGoodsReceiveNoteDSerial: 
				[
					{
						AcSupGoodsReceiveNoteMID: String,
						ItemNo: 0,
						AcStockID: String,
						AcStockUOMID: String,
						StockSerialNumber: String,
						ItemQuantity: 0
					}
				]
			}
		]
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	SupplierGoodsReceiveNote: 
	{
		DocumentHeader: 
		{
			AcSupGoodsReceiveNoteMID: String,
			AcSupplierID: String,
			AcLocationID: String,
			DocumentDate: 0001-01-01,
			SupplierDONumber: String,
			IsConsignmentINStockOnly: String,
			DocumentNetAmount: 0,
			DocumentCentBalance: 0,
			DocumentFinalAmount: 0,
			RefDocumentNo: String,
			DocumentRemark: String,
			ExtraRemark1: String,
			ExtraRemark2: String,
			ExtraRemark3: String,
			ExtraRemark4: String,
			EditDate: 0001-01-01
		},
		DocumentDetails: 
		[
			{
				AcSupGoodsReceiveNoteMID: String,
				ItemNo: 0,
				AcStockID: String,
				AcStockUOMID: String,
				ItemUnitPrice: 0,
				ItemQuantity: 0,
				ItemGrossTotal: 0,
				ItemDiscountAmount: 0,
				ItemTotalPrice: 0,
				ItemRemark1: String,
				AcSupGoodsReceiveNoteDSerial: 
				[
					{
						AcSupGoodsReceiveNoteMID: 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
		}
	}
}