fkm

<back to all web services

MovementCreate

Requires Authentication
The following routes are available for this service:
POST/MovementCreate
MovementCreate Parameters:
NameParameterData TypeRequiredDescription
IdbodystringYes
SenderbodystringYes
SenderNamebodystringNo
ReceiverbodystringYes
ReceiverNamebodystringNo
CreateDateUtcbodystringYes
CommentbodystringNo
ApplicationVersionbodystringNo
ItemsbodyList<PushDocumentItem>No
PushDocumentItem Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
UidformstringNo
NameformstringNo
QuantityformdoubleNo
QualityformPushDocumentItemQualityNo
UnitformPushDocumentItemUnitNo
CharacteristicformPushDocumentItemCharacteristicNo
SeriesformPushDocumentItemSeriesNo
PushDocumentItemQuality Parameters:
NameParameterData TypeRequiredDescription
UidformstringNo
NameformstringNo
PushDocumentItemUnit Parameters:
NameParameterData TypeRequiredDescription
UidformstringNo
NameformstringNo
CoefficientsformdoubleNo
PushDocumentItemCharacteristic Parameters:
NameParameterData TypeRequiredDescription
UidformstringNo
NameformstringNo
PushDocumentItemSeries Parameters:
NameParameterData TypeRequiredDescription
UidformstringNo
NameformstringNo
SerialNumberformstringNo
MovementCreateResponse Parameters:
NameParameterData TypeRequiredDescription
IsOkformboolNo
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 /MovementCreate HTTP/1.1 
Host: s10.tdfkm.ru 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	sender: String,
	senderName: String,
	receiver: String,
	receiverName: String,
	createDateUtc: String,
	comment: String,
	applicationVersion: String,
	items: 
	[
		{
			id: String,
			uid: String,
			name: String,
			quantity: 0,
			quality: 
			{
				uid: String,
				name: String
			},
			unit: 
			{
				uid: String,
				name: String,
				coefficients: 0
			},
			characteristic: 
			{
				uid: String,
				name: String
			},
			series: 
			{
				uid: String,
				name: String,
				serialNumber: String
			}
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	isOk: False,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}