{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pluggy/json-schema/pluggy-schedule-payment-schema.json",
  "title": "SchedulePayment",
  "description": "Information of a schedule payment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pluggy-payment-schedule-api-openapi.yml#/components/schemas/SchedulePayment",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "description": {
      "type": "string",
      "description": "Scheduled payment description"
    },
    "status": {
      "type": "string",
      "description": "Scheduled payment status",
      "enum": [
        "SCHEDULED",
        "COMPLETED",
        "ERROR"
      ]
    },
    "scheduledDate": {
      "type": "string",
      "format": "date",
      "description": "Date when the payment is scheduled"
    },
    "endToEndId": {
      "type": "string",
      "description": "Identifier for the payment, used to link the scheduled payment with the corresponding payment received"
    },
    "errorDetail": {
      "type": [
        "object",
        "null"
      ],
      "description": "Details about an error that occurred with the scheduled payment",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code"
        },
        "description": {
          "type": "string",
          "description": "Human-readable description of the error"
        },
        "detail": {
          "type": "string",
          "description": "Additional details about the error in the provider's language"
        }
      }
    }
  },
  "type": "object",
  "required": [
    "id",
    "description",
    "status",
    "scheduledDate"
  ]
}