| POST, GET | /searchOrder |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Comment | body | string | No | |
| FromGlobalId | body | long? | No | |
| ToGlobalId | body | long? | No | |
| Page | body | int? | No | |
| FromDate | body | DateTime? | No | |
| ToDate | body | DateTime? | No | |
| TokenId | body | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| TotalResultsCount | form | long | No | |
| Result | form | OrderItemModel[] | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OrderItemId | form | Guid | No | |
| GlobalId | form | long | No | |
| Date | form | DateTime | No | |
| LastUpdate | form | DateTime | No | |
| ProductId | form | Guid | No | |
| ProductNumber | form | string | No | |
| ProductTitle | form | string | No | |
| ManufacturerTitle | form | string | No | |
| ReplacementProductId | form | Guid? | No | |
| ReplacementProductNumber | form | string | No | |
| ReplacementProductTitle | form | string | No | |
| ReplacementManufacturerTitle | form | string | No | |
| Quantity | form | int | No | |
| Price | form | decimal | No | |
| InitialPrice | form | decimal | No | |
| Comment | form | string | No | |
| ExpectedDeliveryDays | form | int | No | |
| GuaranteedDeliveryDays | form | int | No | |
| GuaranteedDeliveryTime | form | DateTime? | No | |
| ExpectedDeliveryTime | form | DateTime? | No | |
| PriceListLogo | form | string | No | |
| Delivery | form | string | No | |
| IsCash | form | bool | No | |
| DeliveryDate | form | DateTime? | No | |
| PriceListUseSchedule | form | bool | No | |
| SupplierAliasId | form | Guid | No | |
| SubcustomerId | form | Guid? | No | |
| IsCashSubcustomer | form | bool? | No | |
| SubcustomerLogo | form | string | No | |
| InitialSubcustomerPrice | form | decimal? | No | |
| SubcustomerPrice | form | decimal? | No | |
| Motions | form | OrderItemMotionModel[] | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MotionId | form | Guid | No | |
| ParentId | form | Guid? | No | |
| State | form | OrderItemState | No | |
| StateTitle | form | string | No | |
| Date | form | DateTime | No | |
| InitialQuantity | form | int | No | |
| Quantity | form | int | No | |
| PlannedDeliveryDate | form | DateTime? | No |
| Undefined | |
| Sold | |
| Refused | |
| InOrder | |
| InSupplierCart | |
| Purchased | |
| NotDistributed | |
| InCart | |
| Ready | |
| Distributed | |
| SupplierRefused | |
| Archived | |
| GivingOutScan | |
| InProcessing | |
| Return | |
| Returned | |
| RefusedByClient | |
| PurchasedBySupplier | |
| InParentCart | |
| InSupplierWebCart | |
| WorkInSupplierWebCart | |
| Deficit |
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 /searchOrder HTTP/1.1
Host: api.oszz.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
comment: String,
fromGlobalId: 0,
toGlobalId: 0,
page: 0,
fromDate: 0001-01-01,
toDate: 0001-01-01,
tokenId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
totalResultsCount: 0,
result:
[
{
orderItemId: 00000000000000000000000000000000,
globalId: 0,
date: 0001-01-01,
lastUpdate: 0001-01-01,
productId: 00000000000000000000000000000000,
productNumber: String,
productTitle: String,
manufacturerTitle: String,
replacementProductId: 00000000000000000000000000000000,
replacementProductNumber: String,
replacementProductTitle: String,
replacementManufacturerTitle: String,
quantity: 0,
price: 0,
initialPrice: 0,
comment: String,
expectedDeliveryDays: 0,
guaranteedDeliveryDays: 0,
guaranteedDeliveryTime: 0001-01-01,
expectedDeliveryTime: 0001-01-01,
priceListLogo: String,
delivery: String,
isCash: False,
deliveryDate: 0001-01-01,
priceListUseSchedule: False,
supplierAliasId: 00000000000000000000000000000000,
subcustomerId: 00000000000000000000000000000000,
isCashSubcustomer: False,
subcustomerLogo: String,
initialSubcustomerPrice: 0,
subcustomerPrice: 0,
motions:
[
{
motionId: 00000000000000000000000000000000,
parentId: 00000000000000000000000000000000,
state: Undefined,
stateTitle: String,
date: 0001-01-01,
initialQuantity: 0,
quantity: 0,
plannedDeliveryDate: 0001-01-01
}
]
}
]
}