{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "ReceiptEvent.json",
  "title": "receipt.issued object",
  "description": "A receipt is available. Same as the receipt object, without paymentMethod.",
  "type": "object",
  "properties": {
    "invoiceId": {
      "type": "integer",
      "format": "int32",
      "description": "The paid invoice."
    },
    "invoiceNumber": {
      "type": "string",
      "description": "The invoice number."
    },
    "customerId": {
      "type": "integer",
      "format": "int32",
      "description": "The customer."
    },
    "currency": {
      "type": "string",
      "description": "ISO currency code."
    },
    "amount": {
      "type": "number",
      "format": "decimal",
      "description": "The invoice total."
    },
    "paidAt": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?$",
      "description": "When it was paid. Server time, no offset."
    }
  },
  "required": [
    "invoiceId",
    "invoiceNumber",
    "customerId",
    "currency",
    "amount",
    "paidAt"
  ],
  "examples": [
    {
      "invoiceId": 5012,
      "invoiceNumber": "MAX-2026-0042",
      "customerId": 812,
      "currency": "NGN",
      "amount": 860000,
      "paidAt": "2026-11-03T14:02:00"
    }
  ]
}
