{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/invoices.payments-delete-422", "title": "invoices.payments-delete-422", "properties": { "details": { "type": "array", "items": { "anyOf": [ { "title": "CANNOT_DELETE_EXTERNAL_PAYMENT", "properties": { "issue": { "type": "string", "enum": [ "CANNOT_DELETE_EXTERNAL_PAYMENT" ] }, "description": { "type": "string", "enum": [ "The external payment cannot be deleted as the recorded refund cannot exceed the recored payment for an invoice." ] } } } ] } } } }