{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-account-acquisition-update-schema.json",
  "title": "AccountAcquisitionUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-account-acquisition-info-api-openapi.yml#/components/schemas/AccountAcquisitionUpdate",
  "type": "object",
  "properties": {
    "cost": {
      "type": "object",
      "x-class-name": "AccountAcquisitionCost",
      "title": "Account balance",
      "items": {
        "type": "object"
      },
      "properties": {
        "currency": {
          "type": "string",
          "title": "Currency",
          "description": "3-letter ISO 4217 currency code.",
          "maxLength": 3
        },
        "amount": {
          "type": "number",
          "format": "float",
          "title": "Amount",
          "description": "The amount of the corresponding currency used to acquire the account."
        }
      }
    },
    "channel": {
      "description": "The channel through which the account was acquired.",
      "$ref": "#/$defs/ChannelEnum"
    },
    "subchannel": {
      "type": "string",
      "description": "An arbitrary subchannel string representing a distinction/subcategory within a broader channel."
    },
    "campaign": {
      "type": "string",
      "description": "An arbitrary identifier for the marketing campaign that led to the acquisition of this account."
    },
    "acquired_at": {
      "type": "string",
      "format": "date-time",
      "description": "Date the account was first created if different than the account.created_at. ie Importing accounts."
    }
  },
  "$defs": {
    "ChannelEnum": {
      "type": "string",
      "enum": [
        "advertising",
        "blog",
        "direct_traffic",
        "email",
        "events",
        "marketing_content",
        "organic_search",
        "other",
        "outbound_sales",
        "paid_search",
        "public_relations",
        "referral",
        "social_media"
      ]
    }
  }
}