Przejdź do głównej zawartości

Pobierz stanowiska pakowania

GET
/api/v4/PackStations
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v4/PackStations \
--header 'Authorization: Bearer <token>'

Success

Typ treściapplication/json
Array<object>
object
id
integer format: int64
name
string
nullable
printers
Array<object>
nullable
object
id
integer format: int64
printerId
integer format: int64
printerName
string
nullable
computerName
string
nullable
position
integer format: int32
Examplegenerated
[
{
"id": 1,
"name": "example",
"printers": [
{
"id": 1,
"printerId": 1,
"printerName": "example",
"computerName": "example",
"position": 1
}
]
}
]

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

Unauthorized

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