OSZZ API

<back to all web services

Search2

The following routes are available for this service:
GET, POST/2/search
Search2 Parameters:
NameParameterData TypeRequiredDescription
QbodystringNo
TokenIdbodyGuidNo
Search2Response Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformPriceListModel[]No
PriceListModel Parameters:
NameParameterData TypeRequiredDescription
IsOriginalformboolNo
GroupIdformintNo
PriceListModel Parameters:
NameParameterData TypeRequiredDescription
ProductIdformGuidNo
ManufacturerTitleformstringNo
ProductNumberformstringNo
ProductTitleformstringNo
PriceListIdformGuid?No
CodeformstringNo
DeliveryformstringNo
LocationformstringNo
ExpectedDeliveryDaysformint?No
GuaranteedDeliveryDaysformint?No
Quantityformint?No
Packformint?No
Priceformdecimal?No
UseScheduleformbool?No
OrderDateformDateTime?No
DeliveryDateformDateTime?No
DeliveryChanceformfloat?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

HTTP + JSON

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}]}