> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sibipro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices

# Invoice Data

Attributes on the invoice payload body for events with the topic `invoice.created`

## `invoiceNumber`

The unique identifier for the invoice, assigned by the distributor.

## `createdAt`

The date the invoice was generated, in ISO 8601 format.

## `orderId`

The unique identifier of the order in Sibi that is associated with this invoice.

## `poNumber`

The external purchase order number provided for this invoice. Is defined by the user when placing the order. Is `null` when not available.

## `propertyAddress`

The property address associated with the invoice. Broken down into separate string fields `line1`, `line2`, `city`, `stateOrProvince`, `postalCode`. If the address doesn't have a `line2`, it will return a value of `null`.

## `taxCents`

The tax amount applied to this invoice, represented in cents.

## `totalCents`

The total amount of the invoice, represented in cents.

## `lineItems`

A list of items included in the invoice.

## `lineItems.sku`

The stock-keeping unit (SKU) identifier for the item.

## `lineItems.name`

Human readable name of the item. Is `null` when not available.

## `lineItems.quantity`

The number of units purchased for this item.

## `lineItems.unitOfMeasure`

The unit of measurement for this item (e.g., EA for each).

## `lineItems.unitPriceCents`

The price per unit of the item, represented in cents.

## `lineItems.totalPriceCents`

The total price for the line item, accounting for the quantity and unit price, represented in cents.

## `lineItems.serialNumber`

The serial number of the item when available. Will be `null` when not available.

### Example payload

```json theme={null}
{
  "topic": "invoice.created",
  "data": {
    "invoiceNumber": "987654321",
    "createdAt": "2025-03-10T00:00:00.000Z",
    "orderId": "ORD-12345678",
    "poNumber": "12345",
    "propertyAddress": {
      "line1": "12345 E Main St",
      "line2": "Unit 3",
      "city": "Anytown",
      "stateOrProvince": "AZ",
      "postalCode": "85233"
    },
    "taxCents": 0,
    "totalCents": 58700,
    "lineItems": [
      {
        "name": "4.0 cf Top Load Washer",
        "sku": "HTW265ASWWW",
        "quantity": 1,
        "unitOfMeasure": "EA",
        "unitPriceCents": 48500,
        "totalPriceCents": 48500,
        "serialNumber": "1234567890"
      },
      {
        "name": "Install Washer",
        "sku": "M302",
        "quantity": 1,
        "unitOfMeasure": "EA",
        "unitPriceCents": 3000,
        "totalPriceCents": 3000,
        "serialNumber": null
      },
      {
        "name": "Supply Washer Braided Line",
        "sku": "M314",
        "quantity": 1,
        "unitOfMeasure": "EA",
        "unitPriceCents": 3200,
        "totalPriceCents": 3200,
        "serialNumber": null
      },
      {
        "name": "Disconnect Old Washer",
        "sku": "M024",
        "quantity": 1,
        "unitOfMeasure": "EA",
        "unitPriceCents": 1000,
        "totalPriceCents": 1000,
        "serialNumber": null
      },
      {
        "name": "Recycle Old Appliance",
        "sku": "M007",
        "quantity": 1,
        "unitOfMeasure": "EA",
        "unitPriceCents": 3000,
        "totalPriceCents": 3000,
        "serialNumber": null
      }
    ]
  }
}
```
