{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opn-ooo/main/json-schema/opn-ooo-post-charges-request-schema.json",
  "title": "PostChargesRequest",
  "x-generated": "2026-10-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/opn-ooo-openapi-generated.yml#/components/schemas/PostChargesRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "Amount for charge in smallest currency unit."
    },
    "currency": {
      "type": "string",
      "description": "Currency for the charge."
    },
    "authorization_type": {
      "type": "string",
      "description": "One of: pre_auth, final_auth."
    },
    "capture": {
      "type": "boolean",
      "description": "Whether charge is set to be automatically captured (paid)."
    },
    "card": {
      "type": "string",
      "description": "Unused token identifier or card identifier."
    },
    "customer": {
      "type": "string",
      "description": "Identifier for a customer that has at least one card."
    },
    "description": {
      "type": "string",
      "description": "Charge description."
    },
    "expires_at": {
      "type": "string",
      "description": "UTC datetime of desired charge expiration in ISO 8601 format."
    },
    "first_charge": {
      "type": "string",
      "description": "The Charge ID of the first transaction in the recurring cycle."
    },
    "ip": {
      "type": "string",
      "description": "IP address to attach to the charge."
    },
    "linked_account": {
      "type": "string",
      "description": "The linked account object for direct debit."
    },
    "metadata": {
      "type": "object",
      "description": "Custom metadata."
    },
    "platform_fee": {
      "type": "object",
      "description": "Platform fee object."
    },
    "recurring_reason": {
      "type": "string",
      "description": "Reason for recurring charge."
    },
    "ref_id": {
      "type": "string",
      "description": "Idempotency reference ID."
    },
    "return_uri": {
      "type": "string",
      "description": "URI to which customer is redirected after 3-D Secure."
    },
    "source": {
      "type": "string",
      "description": "Valid source identifier or source object."
    },
    "sub_merchant_country": {
      "type": "string",
      "description": "Sub Merchant Country Code as two-letter ISO 3166 code."
    },
    "transaction_indicator": {
      "type": "string",
      "description": "Indicates who initiated the charge."
    },
    "webhook_endpoints": {
      "type": "array",
      "description": "URLs to which charge notifications are to be sent."
    },
    "zero_interest_installments": {
      "type": "boolean",
      "description": "Whether merchant absorbs the interest for installment payments."
    }
  },
  "required": [
    "amount",
    "currency"
  ]
}