Pobierz listę magazynów
GET
/api/warehouses/v2/warehouses
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses?pageSize=100&pageNumber=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”catalogId
integer format: int64
pageSize
integer format: int32
Max value : 1000
pageNumber
integer format: int32
forUi
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
catalogs
Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
isDefault
boolean
stockEdition
boolean
warehouseType
string
object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
catalogs
Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
isDefault
boolean
stockEdition
boolean
warehouseType
string
Examplegenerated
{ "totalRecords": 1, "totalPages": 1, "data": [ { "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogs": [ { "id": 1, "name": "example", "description": "example", "isDefault": true } ], "isDefault": true, "stockEdition": true, "warehouseType": "example" } ]}object
totalRecords
integer format: int32
totalPages
integer format: int32
data
Array<object>
object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
catalogs
Array<object>
object
id
integer format: int64
name
string
description
string
isDefault
boolean
isDefault
boolean
stockEdition
boolean
warehouseType
string
Examplegenerated
{ "totalRecords": 1, "totalPages": 1, "data": [ { "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogs": [ { "id": 1, "name": "example", "description": "example", "isDefault": true } ], "isDefault": true, "stockEdition": true, "warehouseType": "example" } ]}
