Skip to content

Collectibles ​

Browse available collectibles and customer-owned copies. A collectible is the item definition; a user collectible is a particular customer ownership record.

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

MethodURL pathRequired access
GET/api/v1/brand/collectiblesOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
query.tagstringoptionalNo controller schema

Example:

bash
curl -X GET "$BASE_URL/api/v1/brand/collectibles" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN"

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: Available collectible definitions and assets.

Source: app/v1/controller/usercollectible_controller.ts:15 → getAllCollectible; routes: routes/v1/usercollectible_route.ts:133; service: _getAllCollectible (app/v1/service/usercollectible_service.ts:7).

Get all user collectible ​

MethodURL pathRequired access
GET/api/v1/user/collectiblesOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
query.tagstringoptionalNo controller schema

Example:

bash
curl -X GET "$BASE_URL/api/v1/user/collectibles" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN"

Response: JSON with success: true and result containing the operation’s service data. Result fields/details: Collectible ownership records for the current customer.

Source: app/v1/controller/usercollectible_controller.ts:31 → getAllUserCollectible; routes: routes/v1/usercollectible_route.ts:142; service: _getAllUserCollectible (app/v1/service/usercollectible_service.ts:64).

Get user collectible by ID ​

MethodURL pathRequired access
GET/api/v1/user/collectible/:idOrigin + Brand key + Customer

Request fields:

FieldTypeRequiredRules / meaning
path.idnumberyes—

Example:

bash
curl -X GET "$BASE_URL/api/v1/user/collectible/1" \
  -H "Origin: $ORIGIN" \
  -H "api-key: $API_KEY" \
  -H "Authorization: Bearer $CUSTOMER_TOKEN"

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

Source: app/v1/controller/usercollectible_controller.ts:46 → getUserCollectibleById; routes: routes/v1/usercollectible_route.ts:162; service: _getUserCollectibleById (app/v1/service/usercollectible_service.ts:108).

Get collectible by ID ​

MethodURL pathRequired access
GET/api/v1/collectible/:idOrigin + Brand key

Request fields:

FieldTypeRequiredRules / meaning
path.idnumberyes—

Example:

bash
curl -X GET "$BASE_URL/api/v1/collectible/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/usercollectible_controller.ts:101 → getCollectibleById; routes: routes/v1/usercollectible_route.ts:152; service: _getCollectibleById (app/v1/service/usercollectible_service.ts:145).

Lists the brand's available, unarchived collectibles with their assets, oldest first. The route sits in the loyalty campaign controller, but the service reads only collectibles and returns no campaign data.

MethodURL pathRequired access
GET/api/v1/brand/loyalty/collectibles/trendingOrigin + Brand key

Request fields:

FieldTypeRequiredRules / meaning
queryobjectoptional—
query.tagstringoptionalWhitespace trimmed; pattern(/^[a-zA-Z0-9_-]+(,[a-zA-Z0-9_-]+)*$/); Maximum (200)

tag accepts comma-separated identifiers with a maximum total length of 200.

Example:

bash
curl -X GET "$BASE_URL/api/v1/brand/loyalty/collectibles/trending" \
  -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/loyalty_campaign_controller.ts:348 → getTrendingCollectibles; routes: routes/v1/loyalty_campaign_route.ts:249; service: _getTrendingCollectibles (app/v1/service/loyalty_campaign_service.ts:1089).

Batch platform, Shopify app and API documentation