Zaktualizuj stan pakowania zamówień
PUT
/api/v2/Orders/Packing
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v2/Orders/Packing';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mode":"Pack","state":{"orders":[{"id":1,"reserve":true,"lineItems":[{"id":1,"packedQuantity":1,"pickedQuantity":1}]}]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
mode
string
state
object
orders
Array<object>
object
id
integer format: int64
reserve
boolean
lineItems
Array<object>
object
id
integer format: int64
packedQuantity
number format: double
pickedQuantity
number format: double
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
result
status
string
command
string
scope
string
scopeValue
string
silentMode
boolean
ajsChainId
string
ajsChainVisits
string
Example
{ "status": "New"}Bad Request
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

