v1
latestOpenAPI 3.0.12026-07-2464217456.8 KBInvoices
Get invoice by Id
get/1.0/invoices/{invoiceId}
Path parameters
invoiceIdinteger required
Unique identifier of the invoice
Query parameters
includeFieldsstring[]
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.
includeAllFieldsboolean
Example:true
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.
Response
The requested action was successfully executed.
Example response
{
"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"
}
]
}