Przejdź do głównej zawartości

Pobierz listę magazynów

GET
/api/warehouses/v2/warehouses
curl --request GET \
--url 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses?pageSize=100&pageNumber=0' \
--header 'Authorization: Bearer <token>'

Zwraca stronicowaną listę magazynów, opcjonalnie dla wskazanego katalogu. Odpowiednik getInventoryWarehouses w BaseLinker.

catalogId
integer format: int64
pageSize
integer format: int32
default: 100 <= 1000

Max value : 1000

pageNumber
integer format: int32
0
forUi
boolean

Success

object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
nullable
object
id
integer format: int64
name
string
nullable
description
string
nullable
address
string
nullable
postCode
string
nullable
city
string
nullable
country
string
nullable
catalogs
Array<object>
nullable
object
id
integer format: int64
name
string
nullable
description
string
nullable
isDefault
boolean
isDefault
boolean
stockEdition
boolean
warehouseType
string
nullable