Giftbit · Schema

Campaign

A Giftbit reward order (campaign), which can produce one or more individual rewards delivered by email, shortlink, direct link, or in-app embed.

Gift CardsDigital RewardsIncentivesPaymentsReward DistributionPrepaid Cards

Properties

Name Type Description
uuid string Giftbit-generated unique order identifier.
id string Client-supplied unique order identifier used for idempotency.
price_in_cents integer Value of each reward in the order in cents.
brand_code string Brand code for single-brand orders.
brand_codes array List of brand codes for multi-brand choice orders.
region string Geographic region for full-catalog reward orders.
expiry string Claim-before date after which unclaimed rewards expire.
fees object Cost breakdown for this order.
View JSON Schema on GitHub

JSON Schema

campaign.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/giftbit/main/json-schema/campaign.json",
  "title": "Campaign",
  "description": "A Giftbit reward order (campaign), which can produce one or more individual rewards delivered by email, shortlink, direct link, or in-app embed.",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "description": "Giftbit-generated unique order identifier."
    },
    "id": {
      "type": "string",
      "description": "Client-supplied unique order identifier used for idempotency."
    },
    "price_in_cents": {
      "type": "integer",
      "minimum": 1,
      "description": "Value of each reward in the order in cents."
    },
    "brand_code": {
      "type": "string",
      "description": "Brand code for single-brand orders."
    },
    "brand_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of brand codes for multi-brand choice orders."
    },
    "region": {
      "type": "string",
      "description": "Geographic region for full-catalog reward orders."
    },
    "expiry": {
      "type": "string",
      "format": "date",
      "description": "Claim-before date after which unclaimed rewards expire."
    },
    "fees": {
      "type": "object",
      "description": "Cost breakdown for this order.",
      "properties": {
        "cost_entries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "percentage": { "type": "number" },
              "fee_type": { "type": "string" },
              "amount_in_cents": { "type": "integer" },
              "currency": { "type": "string" },
              "tax_type": { "type": "string" },
              "tax_in_cents": { "type": "integer" },
              "number_of_gifts": { "type": "integer" },
              "fee_per_gift_in_cents": { "type": "integer" }
            }
          }
        },
        "subtotal_in_cents": { "type": "integer" },
        "tax_in_cents": { "type": "integer" },
        "tax_type": { "type": "string" },
        "total_in_cents": { "type": "integer" }
      }
    }
  },
  "required": ["id", "price_in_cents"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/campaign"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.