Skip to main content
GET
/
v1
/
invoices
Get All Invoices
curl --request GET \
  --url https://api.bookeeping.ai/public-api/v1/invoices \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "metaData": {
    "warnings": [
      "<string>"
    ]
  },
  "data": {
    "invoices": [
      {
        "_id": "<string>",
        "projectId": "<string>",
        "status": "DRAFT",
        "invoiceId": "<string>",
        "discount": {},
        "amount": 123,
        "invoiceDate": "2023-11-07T05:31:56Z",
        "dueDate": "2023-11-07T05:31:56Z",
        "currency": "<string>",
        "lineItems": [
          {}
        ],
        "note": "<string>",
        "calculated": {
          "grandTotal": 123,
          "tax": 123,
          "discount": 123,
          "subTotal": 123
        },
        "attachments": [
          "<string>"
        ],
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "purchaseOrderId": "<string>",
        "counterParty": {
          "_id": "<string>",
          "accountName": "<string>",
          "accountNumber": "<string>",
          "email": "jsmith@example.com",
          "phone": "<string>",
          "type": "customer",
          "otherEmails": [
            "jsmith@example.com"
          ],
          "address": {}
        },
        "convertedAmount": 123,
        "convertedCurrency": "<string>",
        "sendDate": "2023-11-07T05:31:56Z",
        "sendBy": "<string>",
        "cancellationReason": "<string>",
        "cancellationDate": "2023-11-07T05:31:56Z",
        "cancellationBy": "<string>",
        "paidMarkedBy": "<string>",
        "paidMarkedDate": "2023-11-07T05:31:56Z",
        "attachedTransactionId": "<string>",
        "payViaStripeAccountConnectionId": "<string>"
      }
    ],
    "count": 123
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Get your key from the Dashboard > Settings > API Access.

Query Parameters

page
string

The page number 1 - n

limit
string

The number of items per page. Max is 250. Default is 10.

sortKey
enum<string>

The key to sort the items by. Default is _id.

Available options:
_id,
name,
createdAt,
updatedAt,
transactionDate
sortOrder
enum<string>

The order to sort the items by. Default is 1. -1 for descending. 1 for ascending.

Available options:
1,
-1
minAmount
string

Minimum amount. Expected to be a number string (Int or Float) eg: 1000,1000.5

maxAmount
string

Maximum amount. Expected to be a number string (Int or Float) eg: 1000,1000.5

startDate
string<date-time>

Start date in ISO format

endDate
string<date-time>

End date in ISO format

counterparties
string

Includes counterparties ids. Comma separated list of object ids eg: 666666666666666666666666,666666666666666666666666

invoiceStatuses
string

Includes invoice statuses. Comma separated list of invoice statuses eg: DRAFT,SENT,PAID,OVERDUE,CANCELLED

Response

Get All Invoices executed successfully

message
string

Success message

metaData
object
data
object