{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pin-payments/main/json-schema/pin-payments-charge-create-schema.json",
  "title": "ChargeCreate",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pin-payments-charges-api-openapi.yml#/components/schemas/ChargeCreate",
  "type": "object",
  "required": [
    "email",
    "description",
    "amount",
    "ip_address"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "description": {
      "type": "string"
    },
    "amount": {
      "type": "integer"
    },
    "ip_address": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "default": "AUD"
    },
    "capture": {
      "type": "boolean",
      "default": true
    },
    "reference": {
      "type": "string"
    },
    "card": {
      "type": "object"
    },
    "card_token": {
      "type": "string"
    },
    "customer_token": {
      "type": "string"
    },
    "payment_source_token": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "three_d_secure": {
      "type": "object"
    },
    "platform_adjustment": {
      "type": "object"
    }
  }
}