| GET, POST | /2/search |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Q | body | string | No | |
| TokenId | body | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | PriceListModel[] | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IsOriginal | form | bool | No | |
| GroupId | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductId | form | Guid | No | |
| ManufacturerTitle | form | string | No | |
| ProductNumber | form | string | No | |
| ProductTitle | form | string | No | |
| PriceListId | form | Guid? | No | |
| Code | form | string | No | |
| Delivery | form | string | No | |
| Location | form | string | No | |
| ExpectedDeliveryDays | form | int? | No | |
| GuaranteedDeliveryDays | form | int? | No | |
| Quantity | form | int? | No | |
| Pack | form | int? | No | |
| Price | form | decimal? | No | |
| UseSchedule | form | bool? | No | |
| OrderDate | form | DateTime? | No | |
| DeliveryDate | form | DateTime? | No | |
| DeliveryChance | form | float? | 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 /2/search HTTP/1.1
Host: api.oszz.ru
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
q: String,
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
}
},
result:
[
{
isOriginal: False,
groupId: 0,
productId: 00000000000000000000000000000000,
manufacturerTitle: String,
productNumber: String,
productTitle: String,
priceListId: 00000000000000000000000000000000,
code: String,
delivery: String,
location: String,
expectedDeliveryDays: 0,
guaranteedDeliveryDays: 0,
quantity: 0,
pack: 0,
price: 0,
useSchedule: False,
orderDate: 0001-01-01,
deliveryDate: 0001-01-01,
deliveryChance: 0
}
]
}