OSZZ API

<back to all web services

SearchCart

The following routes are available for this service:
GET, POST/searchCart
SearchCart Parameters:
NameParameterData TypeRequiredDescription
QbodystringNo
TokenIdbodyGuidNo
SearchCartResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformCartItemModel[]No
CartItemModel Parameters:
NameParameterData TypeRequiredDescription
SupplierAliasIdformGuidNo
OrderItemIdformGuidNo
ManufacturerTitleformstringNo
ProductIdformGuidNo
ProductNumberformstringNo
ProductTitleformstringNo
QuantityformintNo
PackformintNo
PriceformdecimalNo
CommentformstringNo
PriceListLogoformstringNo
DeliveryformstringNo
ExpectedDeliveryDaysformintNo
GuaranteedDeliveryDaysformintNo
IsCashformboolNo
UseScheduleformboolNo
DeliveryDateformDateTime?No
OrderDateformDateTime?No
DateformDateTimeNo
StateformOrderItemStateNo
StateTitleformstringNo
GlobalIdformlongNo
OrderItemState Enum:
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 .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /searchCart HTTP/1.1 
Host: api.oszz.ru 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"q":"String","tokenId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"result":[{"supplierAliasId":"00000000000000000000000000000000","orderItemId":"00000000000000000000000000000000","manufacturerTitle":"String","productId":"00000000000000000000000000000000","productNumber":"String","productTitle":"String","quantity":0,"pack":0,"price":0,"comment":"String","priceListLogo":"String","delivery":"String","expectedDeliveryDays":0,"guaranteedDeliveryDays":0,"isCash":false,"useSchedule":false,"deliveryDate":"0001-01-01 00:00:00","orderDate":"0001-01-01 00:00:00","date":"0001-01-01 00:00:00","state":"Undefined","stateTitle":"String","globalId":0}]}