{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/referralcandy/main/json-schema/referralcandy-get-api-v22-referrals-json-response-schema.json",
  "title": "GetApiV22ReferralsJsonResponse",
  "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/GetApiV22ReferralsJsonResponse",
  "type": "object",
  "properties": {
    "referrals": {
      "type": "string",
      "description": "Array of referred customers and referral timestamps."
    },
    "referral_email": {
      "type": "string",
      "description": "Email address of referred customer."
    },
    "referral_timestamp": {
      "type": "string",
      "description": "UNIX timestamp when referral purchase was made."
    },
    "referring_email": {
      "type": "string",
      "description": "Email address of advocate who made the referral."
    },
    "review_period_over": {
      "type": "string",
      "description": "Whether the review period for this referred purchase is over."
    },
    "external_reference_id": {
      "type": "string",
      "description": "An ID that can be used to track this referred purchase externally."
    },
    "campaignID": {
      "type": "string",
      "description": "Campaign ID that is associated to the referral."
    },
    "period_from": {
      "type": "string",
      "description": "UNIX timestamp of start of query period."
    },
    "period_to": {
      "type": "string",
      "description": "UNIX timestamp of end of query period of the results returned."
    },
    "message": {
      "type": "string",
      "description": "A message indicating the outcome of the API call."
    },
    "reason": {
      "type": "string",
      "description": "Further information provided about the response."
    }
  }
}