{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pinch/main/json-schema/pinch-post-refunds-request-schema.json",
  "title": "PostRefundsRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/pinch-openapi-generated.yml#/components/schemas/PostRefundsRequest",
  "type": "object",
  "properties": {
    "paymentId": {
      "type": "string",
      "description": "ID of the payment to refund"
    },
    "amount": {
      "type": "integer",
      "description": "Refund amount in cents"
    },
    "reason": {
      "type": "string",
      "description": "Reason for the refund"
    },
    "nonce": {
      "type": "string",
      "description": "Idempotency key to prevent duplicate refunds"
    }
  },
  "required": [
    "paymentId",
    "amount",
    "reason"
  ]
}