Brands

Information about hotel brands supported by Duffel Stays.

id
string

The unique ID for this brand.

Example: "bra_0000Alr8BYNsbmDMThHSbI"
name
string

The name of the brand.

Example: "Duffel Test"

Lists all the brands supported by Duffel Stays.

Endpoint

GET https://api.duffel.com/stays/brands

Request

curl -X GET --compressed "https://api.duffel.com/stays/brands" \
-H "Accept-Encoding: gzip" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Duffel-Version: v2" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"

Response

{
"data": [
{
"name": "Duffel Test",
"id": "bra_0000Alr8BYNsbmDMThHSbI"
}
]
}

Gets a specific brand's details.

URL parameters

id
stringrequired

The unique ID for this brand.

Example: "bra_0000Alr8BYNsbmDMThHSbI"

Endpoint

GET https://api.duffel.com/stays/brands/{id}

Request

curl -X GET --compressed "https://api.duffel.com/stays/brands/{id}" \
-H "Accept-Encoding: gzip" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Duffel-Version: v2" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"

Response

{
"data": {
"name": "Duffel Test",
"id": "bra_0000Alr8BYNsbmDMThHSbI"
}
}