v1
latestOpenAPI 3.0.12026-07-2464217456.8 KBGet all invoices
Query parameters
Filter by date of issue (equals).
Filter by date of issue greater than.
Filter by date of issue greater than or equal.
Filter by date of issue less than.
Filter by date of issue less than or equal.
Filter by due date (equals).
Filter by due date greater than.
Filter by due date greater than or equal.
Filter by due date less than.
Filter by due date less than or equal.
Filter by amount (equals).
Filter by amount greater than.
Filter by amount greater than or equal.
Filter by amount less than.
Filter by amount less than or equal.
Filter by amount outstanding (equals).
Filter by amount outstanding greater than.
Filter by amount outstanding greater than or equal.
Filter by amount outstanding less than.
Filter by amount outstanding less than or equal.
Filter by amount paid (equals).
Filter by amount paid greater than.
Filter by amount paid greater than or equal.
Filter by amount paid less than.
Filter by amount paid less than or equal.
Filter by amount written off (equals).
Filter by amount written off greater than.
Filter by amount written off greater than or equal.
Filter by amount written off less than.
Filter by amount written off less than or equal.
You can use this param to provide an epoch milli value and the responses will contain invoices whose date are greater than the given invoice created date.
You can use this param to provide an epoch milli value and the responses will contain exact matches of invoices that match the given invoice created date.
You can use this param to provide an epoch milli value and the responses will contain invoices whose date are less than the given invoice created date.
You can use this param to provide an epoch milli value and the responses will contain invoices whose date are greater than or equal to the given invoice created date.
You can use this param to provide an epoch milli value and the responses will contain invoices whose date are less than or equal to the given invoice created date.
You can use this param to provide a customer company id and the responses will contain exact matches of invoices that match the given customer company id.
You can use this param to provide customer company ids separated by commas and the responses will contain matches of invoices that match any of the given customer company id.
You can use this param to provide customer company id separated by commas and the responses will not contain matches of invoices that match the given set of customer company id.
Filter by invoice number (equals).
You can use this param to specify some text and the responses will contain invoices that contain the given text in their invoice number
You can use this param to specify some text and the responses will contain invoices that DO NOT contain the given text in their invoice number
You can use this param to provide status and the responses will contain invoices that are equal to the given status
You can use this param to provide statuses and the responses will contain invoices that match one of the given statuses
You can use this param to provide statuses and the responses will contain invoices that matches none of the given statuses
This parameter sets the maximum number of responses to be displayed per page. If the page size is insufficient to accommodate the whole number of responses obtained, the pagination object will include a link to the next page as well as the next page token. If left blank, it defaults to 100.
Use this parameter to specify the pageToken of a page to which you want to navigate. This pageToken can be obtained from a previous request which specified a limit and will only be active for 15 minutes after it is created.
This query parameter allows you to specify which fields should be returned in the response body by selecting from the drop down. To get the relevant fields, use comma separated values. If the field is left blank, the default properties are returned.
This query parameter allows you to specify if all the fields should be returned in the response body. If the field is left blank, the default properties are returned.
You can use the sortBy param to sort the responses by the given field.
The sortOrder param can be used to specify the sorting order, which can be Ascending (ASC) or Descending (DESC). Descending is the default option.
You can use the match param to specify if we need to filter the entries using either AND(all) / OR(any). Defaults to AND.
Response
The requested action was successfully executed.
Example response
{
"data": [
{
"invoiceId": 201,
"invoiceNumber": "INV-2024-001",
"dateOfIssue": "2023-03-28",
"dueDate": "2023-03-28",
"currency": "USD",
"status": "DRAFT",
"amount": 1000.25,
"tax": 100.25,
"subTotal": 1000.25,
"amountOutstanding": 500.25,
"amountPaid": 500.25,
"amountWrittenOff": 500.25,
"notes": "This is the default address",
"createdAt": 1681319726000,
"updatedAt": 1681319726000,
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"updatedBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"company": {
"companyId": 201,
"companyName": "Acme Inc",
"companyUrl": "https://www.acme.com"
},
"projects": [
{
"projectId": 201,
"projectName": "Acme onboarding"
}
],
"fields": [
{
"fieldId": 201,
"fieldLabel": "MRR",
"fieldValueLabel": "1000"
}
],
"attachments": [
{
"attachmentId": 201,
"attachmentName": "test_upload.png",
"createdAt": 1680616174929,
"location": "https://rocketlane.com/attachments/0/db83eb19-0bbf-4a37-b4e2-cd1b96708c73/test_upload.png",
"thumbLocation": "https://rocketlane.com/attachments/0/db83eb19-0bbf-4a37-b4e2-cd1b96708c73/thumb_test_upload.png"
}
]
}
],
"pagination": {
"pageSize": 100,
"hasMore": true,
"totalRecordCount": 10398,
"nextPage": "https://api.rocketlane.com/api/1.0/invoices?pageToken=e4a3dd8e-e338-11ed-b5ea-0242ac120002&limit=100",
"nextPageToken": "e4a3dd8e-e338-11ed-b5ea-0242ac120002"
}
}