{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-reversal-schema.json",
  "title": "Reversal",
  "description": "A reversal of a transfer — moves funds back from the Linked Account to the merchant. Partial reversals are supported and multiple reversals per transfer are allowed. Prefix: rvrsl_",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-transfers-api-openapi.yml#/components/schemas/Reversal",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Reversal ID. Prefix: rvrsl_"
    },
    "entity": {
      "type": "string",
      "enum": [
        "reversal"
      ]
    },
    "transfer_id": {
      "type": "string",
      "description": "Transfer ID being reversed (trf_*)."
    },
    "amount": {
      "type": "integer",
      "description": "Reversed amount in paise."
    },
    "currency": {
      "type": "string",
      "enum": [
        "INR"
      ]
    },
    "notes": {
      "$ref": "#/$defs/Notes"
    },
    "initiator_id": {
      "type": "string",
      "description": "ID of the entity that initiated the reversal."
    },
    "created_at": {
      "type": "integer"
    }
  },
  "$defs": {
    "Notes": {
      "type": "object",
      "description": "Key-value pairs for storing custom metadata. Maximum 15 pairs. Each key and value must not exceed 256 characters.",
      "additionalProperties": {
        "type": "string"
      },
      "maxProperties": 15
    }
  }
}