Invoices
Get invoice by Id
Changed onget/1.0/invoices/{invoiceId}
Request
- Base URLhttps://api.rocketlane.com/api
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}
],
"budgets": [
{
"budgetId": 201,
"budgetName": "Pre-sales"
}
],
"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"
}
]
}Changes
- info
added the optional property
to the response with the status
- info