Retrieve warehouse locations used for stock management.
Location — Returns a single location based on the id provided
query GetLocation($id: ID) {
Location(id: $id) {
id
label
active
deleted_at
backup_location { id label }
stock_transferred
address { id label country address_1 postal_code city }
integrations { id }
type
shipping_cost
phone
replace_company_name
}
}
{
"id": 100012
}
Locations — Returns a list of locations with ordering and filters
query Locations(
$where: QueryLocationsWhereWhereConditions,
$orderBy: [QueryLocationsOrderByOrderByClause!],
$search: String
) {
Locations(
where: $where
orderBy: $orderBy
search: $search
) {
id
label
active
deleted_at
backup_location { id label }
stock_transferred
type
shipping_cost
phone
replace_company_name
}
}