POST | /Documents_Update |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Documents | body | List<TeleportDocumentUpdateDto> | Yes | max 300 orders |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
id | form | string | No | |
header | form | TeleportDocumentHeaderUpdateDto | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
status | form | DocumentStatus? | No | |
date | form | DateTime? | No | |
num | form | string | No | |
sum | form | decimal? | No | |
currencyId | form | string | No | |
comment | form | string | No | |
marketplace | form | string | No | |
delivery_date | form | DateTime? | No | |
marketplace_status | form | string | No | |
huckster_status | form | string | No | |
cancel_date | form | DateTime? | No | |
canceled_after_delivery | form | bool? | No | |
marketplace_id | form | string | No | |
marketplace_posting_number | form | string | No | |
marketplace_substatus | form | string | No | |
payment_type | form | string | No | |
payment_method | form | string | No | |
marketplace_account | form | string | No | |
marketplace_shop_id | form | string | No | |
marketplace_express | form | bool? | No | |
marketplace_delivery_method | form | string | No | |
marketplace_warehouse_id | form | string | No | |
marketplace_warehouse_name | form | string | No | |
marketplace_pre_posting_number | form | string | No | |
client_order_number | form | string | No |
new | |
transmitted | |
processed | |
canceled | |
agreement | |
confirmed | |
shipped | |
closed | |
draft |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
modifiedCount | form | long | 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 /Documents_Update HTTP/1.1
Host: wbs.e-teleport.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Documents:
[
{
id: String,
header:
{
status: new,
date: 0001-01-01,
num: String,
sum: 0,
currencyId: String,
comment: String,
marketplace: String,
delivery_date: 0001-01-01,
marketplace_status: String,
huckster_status: String,
cancel_date: 0001-01-01,
canceled_after_delivery: False,
marketplace_id: String,
marketplace_posting_number: String,
marketplace_substatus: String,
payment_type: String,
payment_method: String,
marketplace_account: String,
marketplace_shop_id: String,
marketplace_express: False,
marketplace_delivery_method: String,
marketplace_warehouse_id: String,
marketplace_warehouse_name: String,
marketplace_pre_posting_number: String,
client_order_number: String
}
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { modifiedCount: 0, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }