Przejdź do głównej zawartości

Utwórz szablon kompletacji i pakowania

POST
/api/v1/PickingPackingTemplates
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v1/PickingPackingTemplates \
--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.

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