curl --request GET \
--url https://api.sprucecollective.co.uk/discount-brands[
{
"archived": true,
"collection_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"discount_codes": [
{
"active": true,
"allow_multiple_claims": true,
"alphanumeric": true,
"category": "<string>",
"claimed_codes": [
"<string>"
],
"code": "<string>",
"code_display": "<string>",
"code_length": 123,
"code_pattern": "<string>",
"code_required": true,
"created_at": "<string>",
"current_uses": 123,
"description": "<string>",
"discount_brand": "<unknown>",
"discount_brand_id": "<string>",
"discount_percentage": 123,
"featured": true,
"has_claimed_code": true,
"id": "<string>",
"is_bulk_code": true,
"is_valid": true,
"max_uses": 123,
"partner_logo": "<string>",
"partner_url": "<string>",
"points_required": 123,
"site_id": "<string>",
"tags": [
{
"active": true,
"color": "<string>",
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"site_id": "<string>",
"slug": "<string>",
"updated_at": "<string>"
}
],
"terms": "<string>",
"third_party_id": "<string>",
"thumbnail": "<string>",
"title": "<string>",
"updated_at": "<string>",
"valid_from": "<string>",
"valid_until": "<string>"
}
],
"draft": true,
"id": "<string>",
"item_id": "<string>",
"locale_id": "<string>",
"logo": "<string>",
"logo_black_and_white": "<string>",
"max_discount": "<string>",
"name": "<string>",
"published_on": "<string>",
"site_id": "<string>",
"slug": "<string>",
"thumbnail": "<string>",
"updated_at": "<string>"
}
]Get a list of discount brands
curl --request GET \
--url https://api.sprucecollective.co.uk/discount-brands[
{
"archived": true,
"collection_id": "<string>",
"created_at": "<string>",
"description": "<string>",
"discount_codes": [
{
"active": true,
"allow_multiple_claims": true,
"alphanumeric": true,
"category": "<string>",
"claimed_codes": [
"<string>"
],
"code": "<string>",
"code_display": "<string>",
"code_length": 123,
"code_pattern": "<string>",
"code_required": true,
"created_at": "<string>",
"current_uses": 123,
"description": "<string>",
"discount_brand": "<unknown>",
"discount_brand_id": "<string>",
"discount_percentage": 123,
"featured": true,
"has_claimed_code": true,
"id": "<string>",
"is_bulk_code": true,
"is_valid": true,
"max_uses": 123,
"partner_logo": "<string>",
"partner_url": "<string>",
"points_required": 123,
"site_id": "<string>",
"tags": [
{
"active": true,
"color": "<string>",
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"name": "<string>",
"site_id": "<string>",
"slug": "<string>",
"updated_at": "<string>"
}
],
"terms": "<string>",
"third_party_id": "<string>",
"thumbnail": "<string>",
"title": "<string>",
"updated_at": "<string>",
"valid_from": "<string>",
"valid_until": "<string>"
}
],
"draft": true,
"id": "<string>",
"item_id": "<string>",
"locale_id": "<string>",
"logo": "<string>",
"logo_black_and_white": "<string>",
"max_discount": "<string>",
"name": "<string>",
"published_on": "<string>",
"site_id": "<string>",
"slug": "<string>",
"thumbnail": "<string>",
"updated_at": "<string>"
}
]Page number
Page size
Filter by archived status
Filter by draft status
Search term (name, slug, description)
Sort by field (name, slug, created_at, updated_at, archived, draft)
Sort order (asc or desc)
OK
Show child attributes
List of codes claimed by current user (for bulk codes)
Hidden until redeemed
New fields for code visibility
true
Whether current user has claimed this code
Associated tags
Show child attributes