OSZZ API

<back to all web services

CreateOrder

The following routes are available for this service:
POST/createOrder
CreateOrder Parameters:
NameParameterData TypeRequiredDescription
GlobalIdsbodylong[]No
TokenIdbodyGuidNo
CreateOrderResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformOrderItemModel[]No
OrderItemModel Parameters:
NameParameterData TypeRequiredDescription
OrderItemIdformGuidNo
GlobalIdformlongNo
DateformDateTimeNo
LastUpdateformDateTimeNo
ProductIdformGuidNo
ProductNumberformstringNo
ProductTitleformstringNo
ManufacturerTitleformstringNo
ReplacementProductIdformGuid?No
ReplacementProductNumberformstringNo
ReplacementProductTitleformstringNo
ReplacementManufacturerTitleformstringNo
QuantityformintNo
PriceformdecimalNo
InitialPriceformdecimalNo
CommentformstringNo
ExpectedDeliveryDaysformintNo
GuaranteedDeliveryDaysformintNo
GuaranteedDeliveryTimeformDateTime?No
ExpectedDeliveryTimeformDateTime?No
PriceListLogoformstringNo
DeliveryformstringNo
IsCashformboolNo
DeliveryDateformDateTime?No
PriceListUseScheduleformboolNo
SupplierAliasIdformGuidNo
SubcustomerIdformGuid?No
IsCashSubcustomerformbool?No
SubcustomerLogoformstringNo
InitialSubcustomerPriceformdecimal?No
SubcustomerPriceformdecimal?No
MotionsformOrderItemMotionModel[]No
OrderItemMotionModel Parameters:
NameParameterData TypeRequiredDescription
MotionIdformGuidNo
ParentIdformGuid?No
StateformOrderItemStateNo
StateTitleformstringNo
DateformDateTimeNo
InitialQuantityformintNo
QuantityformintNo
PlannedDeliveryDateformDateTime?No
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 /createOrder HTTP/1.1 
Host: api.oszz.ru 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"globalIds":[0],"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":[{"orderItemId":"00000000000000000000000000000000","globalId":0,"date":"0001-01-01 00:00:00","lastUpdate":"0001-01-01 00:00:00","productId":"00000000000000000000000000000000","productNumber":"String","productTitle":"String","manufacturerTitle":"String","replacementProductId":"00000000000000000000000000000000","replacementProductNumber":"String","replacementProductTitle":"String","replacementManufacturerTitle":"String","quantity":0,"price":0,"initialPrice":0,"comment":"String","expectedDeliveryDays":0,"guaranteedDeliveryDays":0,"guaranteedDeliveryTime":"0001-01-01 00:00:00","expectedDeliveryTime":"0001-01-01 00:00:00","priceListLogo":"String","delivery":"String","isCash":false,"deliveryDate":"0001-01-01 00:00:00","priceListUseSchedule":false,"supplierAliasId":"00000000000000000000000000000000","subcustomerId":"00000000000000000000000000000000","isCashSubcustomer":false,"subcustomerLogo":"String","initialSubcustomerPrice":0,"subcustomerPrice":0,"motions":[{"motionId":"00000000000000000000000000000000","parentId":"00000000000000000000000000000000","state":"Undefined","stateTitle":"String","date":"0001-01-01 00:00:00","initialQuantity":0,"quantity":0,"plannedDeliveryDate":"0001-01-01 00:00:00"}]}]}