Thanx · Schema

Campaign

Campaign schema from Thanx Partner API

RestaurantLoyaltyGuest EngagementMarketingCRMOnline OrderingWebhooksPointsRewardsCampaigns

Properties

Name Type Description
id string
name string
objective string
start_at string
end_at string
redeemable_from string
redeemable_to string
time_zone string
fine_print string
variants array
View JSON Schema on GitHub

JSON Schema

partner-api-campaign-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Campaign",
  "description": "Campaign schema from Thanx Partner API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thanx/refs/heads/main/json-schema/partner-api-campaign-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "92b7b0dac4"
    },
    "name": {
      "type": "string",
      "example": "Pizza Town Co"
    },
    "objective": {
      "type": "string",
      "example": "Free coffee for loyal customers."
    },
    "start_at": {
      "type": "string",
      "format": "date-time",
      "example": "2025-06-01T18:02:05Z"
    },
    "end_at": {
      "type": "string",
      "format": "date-time",
      "example": "2025-06-01T18:02:05Z"
    },
    "redeemable_from": {
      "type": "string",
      "format": "date-time",
      "example": "2025-06-01T18:02:05Z"
    },
    "redeemable_to": {
      "type": "string",
      "format": "date-time",
      "example": "2025-06-01T18:02:05Z"
    },
    "time_zone": {
      "type": "string",
      "example": "example"
    },
    "fine_print": {
      "type": "string",
      "example": "Free coffee for loyal customers."
    },
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reward_template_id": {
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  }
}