Przejdź do głównej zawartości

Zaktualizuj szablon kompletacji

PUT
/api/v1/PickingPackingTemplates/{id}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v1/PickingPackingTemplates/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "type": "Picking", "profiles": [ 1 ], "allowManualModifications": true, "barcodeScannerOnly": true, "barcodeAction": "GoToAssistantImmediately", "skipMode": "SkipNone", "pickingMethod": { "mode": "Group" }, "batch": { "number": 1 }, "sorting": { "algorithm": "Oldest" }, "orderSize": { "mode": "All", "minPositions": 1, "maxPositions": 1 }, "orderFilters": { "orderStatuses": [ 1 ], "shipmentOptions": [ "example" ] } }'

Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

id
wymagane
integer format: int64
Typ treściapplication/json
object
name
string
nullable
type

Typ - zbieranie/pakowanie

string
Dozwolone wartości: Picking Packing
profiles

Profile pracowników - identyfikatory użytkowników

Array<integer>
nullable
allowManualModifications

Ręczne modyfikacje

boolean
barcodeScannerOnly

Skaner kodów kreskowych

boolean
nullable
barcodeAction

Kody kreskowe - działanie

string
Dozwolone wartości: GoToAssistantImmediately OpenPickingWindowWithTemplate
skipMode

Pomiń zebrane/spakowane

string
Dozwolone wartości: SkipNone SkipCollected SkipPacked
pickingMethod

Tryb zbierania

object
mode
string
Dozwolone wartości: Group Basket Single
batch

Liczba - na ten moment nie mamy możliwości wyboru pomiędzy zamówień/produktów/metrów

object
number
integer format: int32
sorting

Algorytm

object
algorithm
string
Dozwolone wartości: Oldest Newest
orderSize

Wielkość zamówień

object
mode
string
Dozwolone wartości: All SingleItemOnly MultiItemOnly CustomRange
minPositions
integer format: int32
nullable
maxPositions
integer format: int32
nullable
orderFilters

Filtrowanie po statusach/shipmentach

object
orderStatuses
Array<integer>
nullable
shipmentOptions
Array<string>
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"
}

Forbidden

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"
}