{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-revoke-credits-request-schema.json",
  "title": "RevokeCreditsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-admin-api-openapi.yml#/components/schemas/RevokeCreditsRequest",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "User's ObjectId"
    },
    "amount_credits": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Amount Credits",
      "description": "Credit amount to revoke (integer, 100 credits = $1)"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason",
      "description": "Reason for revoking credits"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key",
      "description": "Stable idempotency key for retry-safe revocations"
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "amount_credits"
  ]
}