| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
Content-Length: length
{"q":"String","tokenId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
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 00:00:00","deliveryDate":"0001-01-01 00:00:00","deliveryChance":0}]}