{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/referralcandy/main/json-schema/referralcandy-get-api-v22-contacts-json-response-schema.json",
  "title": "GetApiV22ContactsJsonResponse",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/referralcandy-openapi-generated.yml#/components/schemas/GetApiV22ContactsJsonResponse",
  "type": "object",
  "properties": {
    "contacts": {
      "type": "string",
      "description": "Array of contacts."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier of contact."
    },
    "first_name": {
      "type": "string",
      "description": "First name of contact."
    },
    "last_name": {
      "type": "string",
      "description": "Last name of contact."
    },
    "email": {
      "type": "string",
      "description": "Email address of contact."
    },
    "purchase_made": {
      "type": "string",
      "description": "Whether contact made a purchase at the store."
    },
    "purchases": {
      "type": "string",
      "description": "Array of purchases made by contact."
    },
    "purchased_at": {
      "type": "string",
      "description": "UNIX timestamp of purchase."
    },
    "amount": {
      "type": "string",
      "description": "Invoice amount of purchase."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code of the purchase."
    },
    "unsubscribed": {
      "type": "string",
      "description": "Whether contact is unsubscribed."
    },
    "total_count": {
      "type": "string",
      "description": "Number of contacts returned in this response."
    },
    "campaignId": {
      "type": "string",
      "description": "ID of the campaign the contacts were read from."
    },
    "limit": {
      "type": "string",
      "description": "Number of contacts returned in this response."
    },
    "message": {
      "type": "string",
      "description": "A message indicating the outcome of the API call."
    },
    "reason": {
      "type": "string",
      "description": "Further information provided about the response."
    }
  }
}