{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-add-balance-request-schema.json",
  "title": "AddBalanceRequest",
  "description": "Request to charge the org's default payment method and add to balance.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/parallel-ai-account-api-openapi.yml#/components/schemas/AddBalanceRequest",
  "properties": {
    "amount_cents": {
      "type": "integer",
      "maximum": 10000.0,
      "exclusiveMinimum": 0.0,
      "title": "Amount Cents",
      "description": "Amount in cents to charge and add to the balance. Must be between 1 and 10000 cents ($100.00)."
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Idempotency Key",
      "description": "Required idempotency key. Stripe dedupes the charge server-side for at least 24h when the same key is submitted again for the same org (see https://docs.stripe.com/api/idempotent_requests). Pick a high-entropy value (e.g. a UUID) so distinct agent attempts do not collide."
    }
  },
  "type": "object",
  "required": [
    "amount_cents",
    "idempotency_key"
  ]
}