Skip to content

Batches and master data ​

Read batches, categories, brand names, and reference values used to populate filters or application menus.

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 batches ​

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

Request fields:

FieldTypeRequiredRules / meaning
query.limitnumberoptional—
query.offsetnumberoptional—
query.searchstringoptionalAlso accepts ("")

Pagination is added only when limit and offset are both truthy.

Example:

bash
curl -X GET "$BASE_URL/api/v1/brand/batches?limit=10&offset=0" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY"

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

Source: app/v1/controller/batch_controller.ts:8 → get_all_batches; routes: routes/v1/batch_route.ts:9; service: _get_all_batches (app/v1/service/batch_service.ts:6).

Batch platform, Shopify app and API documentation