Thanx · JSON Structure

Consumer Api User Input Structure

UserInput schema from Thanx Consumer API

Type: object Properties: 7 Required: 3
RestaurantLoyaltyGuest EngagementMarketingCRMOnline OrderingWebhooksPointsRewardsCampaigns

UserInput is a JSON Structure definition published by Thanx, describing 7 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

email phone first_name last_name birth_date zip_code signup_program_id

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thanx/refs/heads/main/json-structure/consumer-api-user-input-structure.json",
  "name": "UserInput",
  "description": "UserInput schema from Thanx Consumer API",
  "required": [
    "email",
    "first_name",
    "last_name"
  ],
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "example": "jane.smith@example.com"
    },
    "phone": {
      "type": "string",
      "example": "+14158672345"
    },
    "first_name": {
      "type": "string",
      "example": "Jane"
    },
    "last_name": {
      "type": "string",
      "example": "Smith"
    },
    "birth_date": {
      "type": "object",
      "properties": {
        "year": {
          "type": "int32",
          "example": 1987
        },
        "month": {
          "type": "int32",
          "example": 8
        },
        "day": {
          "type": "int32",
          "example": 14
        }
      }
    },
    "zip_code": {
      "type": "string",
      "example": "94105"
    },
    "signup_program_id": {
      "type": "string",
      "example": "92b7b0dac4"
    }
  }
}