| POST | /createOrder |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GlobalIds | body | long[] | No | |
| TokenId | body | Guid | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | OrderItemModel[] | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OrderItemId | form | Guid | No | |
| GlobalId | form | long | No | |
| Date | form | DateTime | No | |
| LastUpdate | form | DateTime | No | |
| ProductId | form | Guid | No | |
| ProductNumber | form | string | No | |
| ProductTitle | form | string | No | |
| ManufacturerTitle | form | string | No | |
| ReplacementProductId | form | Guid? | No | |
| ReplacementProductNumber | form | string | No | |
| ReplacementProductTitle | form | string | No | |
| ReplacementManufacturerTitle | form | string | No | |
| Quantity | form | int | No | |
| Price | form | decimal | No | |
| InitialPrice | form | decimal | No | |
| Comment | form | string | No | |
| ExpectedDeliveryDays | form | int | No | |
| GuaranteedDeliveryDays | form | int | No | |
| GuaranteedDeliveryTime | form | DateTime? | No | |
| ExpectedDeliveryTime | form | DateTime? | No | |
| PriceListLogo | form | string | No | |
| Delivery | form | string | No | |
| IsCash | form | bool | No | |
| DeliveryDate | form | DateTime? | No | |
| PriceListUseSchedule | form | bool | No | |
| SupplierAliasId | form | Guid | No | |
| SubcustomerId | form | Guid? | No | |
| IsCashSubcustomer | form | bool? | No | |
| SubcustomerLogo | form | string | No | |
| InitialSubcustomerPrice | form | decimal? | No | |
| SubcustomerPrice | form | decimal? | No | |
| Motions | form | OrderItemMotionModel[] | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MotionId | form | Guid | No | |
| ParentId | form | Guid? | No | |
| State | form | OrderItemState | No | |
| StateTitle | form | string | No | |
| Date | form | DateTime | No | |
| InitialQuantity | form | int | No | |
| Quantity | form | int | No | |
| PlannedDeliveryDate | form | DateTime? | No |
| 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 .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 /createOrder HTTP/1.1
Host: api.oszz.ru
Accept: application/json
Content-Type: application/json
Content-Length: length
{"globalIds":[0],"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":[{"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"}]}]}