{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eztexting-com/json-schema/eztexting-com-credits-purchase-request-schema.json",
  "title": "CreditsPurchaseRequest",
  "description": "CreditsPurchaseRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eztexting-com-credits-api-openapi.yml#/components/schemas/CreditsPurchaseRequest",
  "type": "object",
  "properties": {
    "credits": {
      "type": "integer",
      "format": "int32",
      "description": "Amount of credits to purchase"
    },
    "couponCode": {
      "type": "string",
      "description": "Coupon code"
    },
    "creditCardLastFour": {
      "type": "string",
      "description": "Last 4 digits of credit card on file",
      "pattern": "^\\d{4}$"
    }
  },
  "required": [
    "creditCardLastFour"
  ]
}