Skip to content

Banners and magazines ​

Read the brand's banners and magazines.

Access labels such as Origin + Brand key + Customer are defined in Headers and access. Each endpoint ends in a Try it console; set the host and keys once in its Settings tab or on the overview.

Get all banners ​

MethodURL pathRequired access
GET/api/v1/brand/bannerOrigin + Brand key

Request fields:

FieldTypeRequiredRules / meaning
query.pagesarray of stringoptional—
query.hubIdnumberoptional—
query.namestringoptionalWhitespace trimmed

Example:

bash
curl -X GET "$BASE_URL/api/v1/brand/banner" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: md, sm, lg.

Source: app/v1/controller/banner_controller.js:6 → getAllBanners; routes: routes/v1/banner_route.js:10; service: _getBanners (app/v1/service/banner_service.js:6).

Get banner by ID ​

MethodURL pathRequired access
GET/api/v1/brand/banner/:bannerIdOrigin + Brand key

Request fields:

FieldTypeRequiredRules / meaning
path.bannerIdnumberyes—

Example:

bash
curl -X GET "$BASE_URL/api/v1/brand/banner/1" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/banner_controller.js:34 → getBannerById; routes: routes/v1/banner_route.js:20; service: _getBannerById (app/v1/service/banner_service.js:110).

Get all magazine ​

MethodURL pathRequired access
GET/api/v1/magazineOrigin + Brand key

Request fields: no body, query, or path fields are read by this controller. Context comes from the headers/middleware above.

Example:

bash
curl -X GET "$BASE_URL/api/v1/magazine" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/magazine_controller.js:11 → getAllMagazine; routes: routes/v1/magazine_route.js:9; service: _getAllMagazine (app/v1/service/magazine_service.js:4).

Get magazine by ID ​

MethodURL pathRequired access
GET/api/v1/magazine/:magazineIdOrigin + Brand key

Request fields:

FieldTypeRequiredRules / meaning
path.magazineIdnumberyes—

Example:

bash
curl -X GET "$BASE_URL/api/v1/magazine/1" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

Response: JSON with success: true and result containing the operation’s service data.

Source: app/v1/controller/magazine_controller.js:23 → getMagazineById; routes: routes/v1/magazine_route.js:19; service: _getMagazineById (app/v1/service/magazine_service.js:22).

Batch platform, Shopify app and API documentation