| POST | /MovementCreate |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | Yes | |
| Sender | body | string | Yes | |
| SenderName | body | string | No | |
| Receiver | body | string | Yes | |
| ReceiverName | body | string | No | |
| CreateDateUtc | body | string | Yes | |
| Comment | body | string | No | |
| ApplicationVersion | body | string | No | |
| Items | body | List<PushDocumentItem> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Uid | form | string | No | |
| Name | form | string | No | |
| Quantity | form | double | No | |
| Quality | form | PushDocumentItemQuality | No | |
| Unit | form | PushDocumentItemUnit | No | |
| Characteristic | form | PushDocumentItemCharacteristic | No | |
| Series | form | PushDocumentItemSeries | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | No | |
| Name | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | No | |
| Name | form | string | No | |
| Coefficients | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | No | |
| Name | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Uid | form | string | No | |
| Name | form | string | No | |
| SerialNumber | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IsOk | form | bool | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}