{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-delivery-response-schema.json",
  "title": "DeliveryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-deliveries-api-openapi.yml#/components/schemas/DeliveryResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/DeliveryOut"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "DeliveryOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "invoice_id": {
          "type": "string",
          "title": "Invoice Id"
        },
        "to": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "To"
        },
        "cc": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Cc"
        },
        "bcc": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Bcc"
        },
        "subject": {
          "type": "string",
          "title": "Subject"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message"
        },
        "attach_pdf": {
          "type": "boolean",
          "title": "Attach Pdf"
        },
        "status": {
          "$ref": "#/$defs/DeliveryStatus"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "sent_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sent At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "invoice_id",
        "to",
        "cc",
        "bcc",
        "subject",
        "attach_pdf",
        "status",
        "created_at"
      ],
      "title": "DeliveryOut"
    },
    "DeliveryStatus": {
      "type": "string",
      "enum": [
        "queued",
        "sent",
        "failed"
      ],
      "title": "DeliveryStatus",
      "description": "Email delivery. `sent` is terminal success — nothing reports back what\nthe provider did with the message after we handed it over."
    }
  }
}