Get a Brand

get
Get by ID

https://api.moltin.com/v2/brands/:id
This endpoint retrieves an existing Brand by ID.
Request
Response
Path Parameters
id
required
string
The ID for the requested Brand.
Headers
Authorization
required
string
The Bearer token to grant access to the API
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": {}
}
}
cURL
JavaScript SDK
Moltin Request
Swift SDK
curl -X GET https://api.moltin.com/v2/brands/:id \
-H "Authorization: Bearer XXXX" \
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X'
})
const id = 'XXXX'
Moltin.Brands.Get(id).then(brand => {
// Do something
})
const { MoltinClient } = require('@moltin/request')
const client = new MoltinClient({
client_id: 'X'
})
const id = 'XXXX'
client
.get(`brands/${id}`)
.then(brands => {
// Do something...
})
.catch(console.error)
let moltin = Moltin(withClientID: "<your client ID>")
let id = "XXXX"
moltin.brand.get(forID: id) { result in
switch result {
case .success(let response):
print(response)
case .failure(let error):
print(error)
}
}