Utwórz magazyn
POST
/api/warehouses/v2/warehouses
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","description":"example","address":"example","postCode":"example","city":"example","country":"example","catalogIds":[1],"stockEdition":true,"warehouseType":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example" }'Dodaje nowy magazyn. Odpowiednik addInventoryWarehouse w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
id
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
boolean
warehouseType
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}object
id
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
boolean
warehouseType
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}object
id
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
boolean
warehouseType
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

