Przejdź do głównej zawartości

Zaktualizuj stan pakowania zamówień

PUT
/api/v2/Orders/Packing
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v2/Orders/Packing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "mode": "Pack", "state": { "orders": [ { "id": 1, "reserve": true, "lineItems": [ { "id": 1, "packedQuantity": 1, "pickedQuantity": 1 } ] } ] } }'

Ustawia stan pakowania jednego lub wielu zamówień i zwraca jego pełny, zaktualizowany stan.

Typ treściapplication/json
object
mode
string
Dozwolone wartości: Pack Pick
state
object
orders
Array<object>
nullable
object
id
integer format: int64
reserve
boolean
nullable
lineItems
Array<object>
nullable
object
id
integer format: int64
packedQuantity
number format: double
nullable
pickedQuantity
number format: double
nullable

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error