{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reachsocial-dev/json-schema/reachsocial-dev-customer-account-result-schema.json",
  "title": "CustomerAccountResult",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reachsocial-dev-openapi.yml#/components/schemas/CustomerAccountResult",
  "properties": {
    "reviewer": {
      "type": "boolean",
      "title": "Reviewer",
      "default": false
    },
    "customer_id": {
      "type": "integer",
      "title": "Customer Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "csrf_token": {
      "type": "string",
      "title": "Csrf Token"
    },
    "free_remaining": {
      "type": "integer",
      "title": "Free Remaining"
    },
    "free_reserved": {
      "type": "integer",
      "title": "Free Reserved"
    },
    "one_off_price_cents": {
      "type": "integer",
      "title": "One Off Price Cents"
    },
    "paid_remaining": {
      "type": "integer",
      "title": "Paid Remaining",
      "default": 0
    },
    "paid_reserved": {
      "type": "integer",
      "title": "Paid Reserved",
      "default": 0
    },
    "keys": {
      "items": {
        "$ref": "#/$defs/ApiKeySummary"
      },
      "type": "array",
      "title": "Keys"
    },
    "purchases": {
      "items": {
        "$ref": "#/$defs/PurchaseResult"
      },
      "type": "array",
      "title": "Purchases"
    },
    "wallets": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Wallets"
    }
  },
  "type": "object",
  "required": [
    "customer_id",
    "email",
    "status",
    "csrf_token",
    "free_remaining",
    "free_reserved",
    "one_off_price_cents",
    "keys",
    "purchases"
  ],
  "$defs": {
    "ApiKeySummary": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "masked_key": {
          "type": "string",
          "title": "Masked Key",
          "description": "Non-secret key identifier and masked secret, with its final four characters when known. Earlier keys gain the ending on their next authenticated use."
        },
        "has_secret_suffix": {
          "type": "boolean",
          "title": "Has Secret Suffix"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "services": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Services"
        },
        "daily_limit_credits": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Daily Limit Credits"
        },
        "lifetime_limit_credits": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lifetime Limit Credits"
        },
        "spent_credits": {
          "type": "integer",
          "title": "Spent Credits"
        },
        "reserved_credits": {
          "type": "integer",
          "title": "Reserved Credits"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        },
        "last_used_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "masked_key",
        "has_secret_suffix",
        "name",
        "status",
        "services",
        "daily_limit_credits",
        "lifetime_limit_credits",
        "spent_credits",
        "reserved_credits",
        "expires_at",
        "last_used_at"
      ],
      "title": "ApiKeySummary"
    },
    "PurchaseResult": {
      "properties": {
        "purchase_id": {
          "type": "string",
          "title": "Purchase Id"
        },
        "method": {
          "type": "string",
          "title": "Method"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "amount_cents": {
          "type": "integer",
          "title": "Amount Cents"
        },
        "credited_cents": {
          "type": "integer",
          "title": "Credited Cents"
        },
        "reversed_cents": {
          "type": "integer",
          "title": "Reversed Cents"
        },
        "pack_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pack Id"
        },
        "granted_credits": {
          "type": "integer",
          "title": "Granted Credits",
          "default": 0
        },
        "claim_required": {
          "type": "boolean",
          "title": "Claim Required",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "purchase_id",
        "method",
        "status",
        "amount_cents",
        "credited_cents",
        "reversed_cents"
      ],
      "title": "PurchaseResult"
    }
  }
}