cURL
curl -sS -X GET 'https://apipub.firstbasehq.com/api/v1/warehouses/{id}' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "https://apipub.firstbasehq.com/api/v1/warehouses/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://apipub.firstbasehq.com/api/v1/warehouses/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "US East Warehouse",
"address": {
"street1": 123,
"street2": "Suite 100",
"city": "San Francisco",
"province": "California",
"postalCode": 94105,
"countryCode": "US",
"phoneNumber": "+15551234567"
}
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}Warehouses
Get warehouse
Returns full details for a single warehouse accessible to the caller’s organization.
GET
https://apipub.firstbasehq.com
/
api
/
v1
/
warehouses
/
{id}
cURL
curl -sS -X GET 'https://apipub.firstbasehq.com/api/v1/warehouses/{id}' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "https://apipub.firstbasehq.com/api/v1/warehouses/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://apipub.firstbasehq.com/api/v1/warehouses/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "US East Warehouse",
"address": {
"street1": 123,
"street2": "Suite 100",
"city": "San Francisco",
"province": "California",
"postalCode": 94105,
"countryCode": "US",
"phoneNumber": "+15551234567"
}
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}Authorizations
Prefix the value with "ApiKey" to indicate the custom authorization type
Path Parameters
Response
The requested warehouse
A Firstbase warehouse location where inventory can be stocked and shipment notices directed
Unique identifier for this warehouse; use this ID when creating inventory orders or shipment notices
Example:
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Display name of the warehouse
Example:
"US East Warehouse"
Physical address of the warehouse; null when not yet configured
Show child attributes
Show child attributes