Pobierz magazyn po ID
GET
/api/warehouses/v2/warehouses/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses/1';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/1 \ --header 'Authorization: Bearer <token>'Zwraca szczegóły pojedynczego magazynu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
isDefault
boolean
stockEdition
boolean
warehouseType
string
catalogIds
Array<integer>
object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
isDefault
boolean
stockEdition
boolean
warehouseType
string
catalogIds
Array<integer>
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "isDefault": true, "stockEdition": true, "warehouseType": "example", "catalogIds": [ 1 ]}object
id
integer format: int64
name
string
description
string
address
string
postCode
string
city
string
country
string
isDefault
boolean
stockEdition
boolean
warehouseType
string
catalogIds
Array<integer>
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "isDefault": true, "stockEdition": true, "warehouseType": "example", "catalogIds": [ 1 ]}
