GET
/
api
/
v2
/
platform
/
stock_locations
/
{id}
curl --request GET \
  --url http://{defaultHost}/api/v2/platform/stock_locations/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "180",
    "type": "stock_location",
    "attributes": {
      "name": "Dian Hills",
      "created_at": "2022-11-08T19:35:31.785Z",
      "updated_at": "2022-11-08T19:35:31.785Z",
      "default": false,
      "address1": "1600 Pennsylvania Ave NW",
      "address2": null,
      "city": "Washington",
      "state_name": null,
      "zipcode": "20500",
      "phone": "(202) 456-1111",
      "active": true,
      "backorderable_default": true,
      "propagate_all_variants": false,
      "admin_name": null
    },
    "relationships": {
      "country": {
        "data": {
          "id": "417",
          "type": "country"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Response

200
application/vnd.api+json
Record found
data
object
required