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 .jsv suffix or ?format=jsv

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