Invoice object

A document sent to request payment for goods or services.

Example

{
  "id": "998e085f-a7b2-465e-b89e-7ee3a3f2df28",
  "companyName": "Palermo Consulting",
  "companyStreetAddress": "123 Main St",
  "number": "INV-0001",
  "statusId": "open",
  "billTo": "Acme",
  "invoiceFor": "Company Website",
  "issuedOn": "2024-01-31",
  "servicesThrough": "2024-01-31",
  "paymentTermsId": "net_30",
  "dueOn": "2024-03-01",
  "poNumber": "PO-123",
  "notes": "Thank you for your business!",
  "emailSubject": "Invoice",
  "emails": ["[email protected]"],
  "ccEmails": ["[email protected]"],
  "emailBody": "Thank you for your business!",
  "emailFromName": "Palermo Consulting",
  "replyTo": "[email protected]",
  "sendBcc": true,
  "sentOn": "2022-12-31",
  "currency": "USD",
  "subtotal": 750,
  "totalDiscount": 100,
  "taxRate": 0.1,
  "totalTax": 43.33,
  "total": 693.33,
  "amountPaid": 100,
  "amountCredited": 100,
  "amountDue": 493.33,
  "createdAt": "2024-01-01T00:00:00.000Z",
  "client": {
    "id": "05bc5b36-d7e0-46e6-972e-63b10b5bb2d8",
    "name": "Acme"
  },
  "projects": [
    {
      "id": "1f6ef1a1-e387-471f-a074-1d8606d2bf2a",
      "name": "Company Website"
    }
  ],
  "lines": [
    {
      "id": "97765875-0d88-4c9e-8311-58700f7262f2",
      "lineNumber": 1,
      "item": "Income",
      "description": "Software Development",
      "quantity": 5,
      "rate": 100,
      "amount": 500,
      "taxable": true,
      "invoiceItem": {
        "id": "ce9909b7-08a3-4efa-972c-12697678e1f5",
        "name": "Income"
      },
      "project": {
        "id": "1f6ef1a1-e387-471f-a074-1d8606d2bf2a",
        "name": "Company Website"
      }
    },
    {
      "id": "f655bfa1-5a71-49dc-8dd6-4905ed6f856c",
      "lineNumber": 2,
      "item": "Expense",
      "description": "Expenses (per diem)",
      "quantity": 5,
      "rate": 50,
      "amount": 250,
      "taxable": false,
      "invoiceItem": {
        "id": "c1851b33-fca2-4281-9de8-6f998de4d016",
        "name": "Expense"
      },
      "project": null
    }
  ],
  "payments": [
    {
      "id": "741ed88d-d401-44de-b574-a812b19e4ff9",
      "referenceNumber": "ACH-0001",
      "amount": 100
    }
  ],
  "creditNotes": [
    {
      "id": "dca0c2f7-030a-4bcd-82a8-8988484da394",
      "number": "1",
      "amount": 100
    }
  ]
}

Attributes

NameTypeDescription
iduuidThe unique identifier for the object.
companyNamestringName of the company issuing the invoice.
companyStreetAddressstringStreet address of the company issuing the invoice.
numberstringNumber assigned to the invoice.
statusIdstringStatus of the invoice. Can be either "draft", "open" or "paid".
billTostringName of the entity billed in the invoice.
invoiceForstringDescription of the products or services being invoiced.
issuedOndateDate when the invoice was issued. Will be in the form YYYY-MM-DD.
servicesThroughdateDate through which the services were provided or products were sold. Will be in the form YYYY-MM-DD.
paymentTermsIdstringPayment terms associated with the invoice. Can be either "due_on_receipt", "net_10", "net_15", "net_30", "net_45", "net_60", "net_75" or "net_90".
dueOnstringDue date for payment of the invoice.
poNumberstringPurchase order number associated with the invoice.
notesstringAdditional notes or messages included in the invoice.
emailSubjectstringSubject line for the email containing the invoice.
emailsarray of stringsArray of comma-separated email addresses to which the invoice is sent.
ccEmailsarray of stringsArray of comma-separated email addresses to be cc'ed on the invoice email.
emailBodystringBody content of the email containing the invoice.
emailFromNamestringName displayed as the sender of the invoice email.
replyTostringEmail address to which replies to the invoice email are directed.
sendBccstringBoolean indicating whether to send a blind carbon copy of the invoice email.
sentOndateDate when the invoice email was sent. Will be in the form YYYY-MM-DD.
currencystringCurrency in which the invoice is denominated.
subtotalnumberSubtotal amount before discounts and taxes.
totalDiscountnumberTotal discount applied to the invoice.
taxRatenumberTax rate applied to the invoice.
totalTaxnumberTotal tax amount calculated for the invoice.
totalnumberTotal amount due including taxes and discounts.
amountPaidnumberTotal amount already paid towards the invoice.
amountCreditednumberTotal amount credited towards the invoice.
amountDuenumberRemaining amount due on the invoice.
createdAttimestampThe timestamp when the object was created.
clientobjectA simple object to the related client. See attributes.
projectsarray of objectsAn array of related projects. See attributes.
linesarray of objectsAn array of the invoice line items included in the invoice. See attributes.
paymentsarray of objectsAn array of the payments applied to the invoice. See attributes.
creditNotesarray of objectsAn array of the credit notes applied to the invoice. See attributes.

Client attributes

NameTypeDescription
iduuidThe unique identifier for the object.
namestringThe name of the client.

Project attributes

NameTypeDescription
iduuidThe unique identifier for the object.
namestringThe name of the project.

Invoice Line attributes

NameTypeDescription
iduuidThe unique identifier for the object.
lineNumbernumberSequential number assigned to the line item within the invoice.
itemstringCategory or type of item being invoiced. This value is automatically set to the related invoice item's name when the invoice is published.
detailsstringSpecific details or additional information about the item or service being invoiced.
quantitynumberQuantity of the item or service being invoiced.
ratenumberUnit price or rate for each unit of the item or service.
amountnumberTotal amount for the line item.
taxablebooleanBoolean indicating whether the line item is subject to taxation.
invoiceItemobjectA simple object to the related invoice item. See attributes .
projectobjectA simple object to the related project. See attributes .

Payment attributes

NameTypeDescription
iduuidThe unique identifier for the object.
referenceNumberstringReference number associated with the payment.
amountnumberThe payment amount applied to the invoice.

Credit Note attributes

NameTypeDescription
iduuidThe unique identifier for the object.
numberstringNumber assigned to the credit note.
amountnumberThe credit applied to the invoice.

Invoice Item attributes

NameTypeDescription
iduuidThe unique identifier for the object.
namestringThe name of the invoice item.