Get a Brand
Choose the right endpoint
If you are using the Product Experience Manager (EP PXM) services, use the pcm/hierarchies
endpoints instead of the v2/brands
endpoints. For details about the pcm/hierarchies
endpoints, see the topics in the EP PXM Hierarchies section.
GET
Get by ID
https://api.moltin.com/v2/brands/:id
This endpoint retrieves an existing Brand by ID.
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
id | Required | string | The ID for the requested Brand. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Examples
Curl
curl -X GET https://api.moltin.com/v2/brands/:id \
-H "Authorization: Bearer XXXX" \
JavaScript SDK
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X'
})
const id = 'XXXX'
Moltin.Brands.Get(id).then(brand => {
// Do something
})
Response Example
200 OK
{
"data": {
"id": "c46e07d2-23ef-4b3b-8437-7bcdbf38bc4c",
"type": "brand",
"status": "live",
"name": "I Love Lamp",
"slug": "ilovelamp",
"description": "A lamp brand.",
"meta": {
"timestamps": {
"created_at": "2018-04-05T08:48:39+00:00",
"updated_at": "2018-04-23T11:09:30+00:00"
}
},
"relationships": {}
}
}