List invoices
GET/invoices/
API to get list of invoices
Request
Version stringrequired
API Version
Available options
v3altId stringrequired
location Id / company Id based on altType
altType stringrequired
Alt Type
Available options
locationstatus string
status to be filtered
startAt string
startAt in YYYY-MM-DD format
endAt string
endAt in YYYY-MM-DD format
search string
To search for an invoice by id / name / email / phoneNo
paymentMode string
payment mode
Available options
defaultlivetestcontactId string
Contact ID for the invoice
limit stringrequired
Limit the number of items to return
offset stringrequired
Number of items to skip
sortField string
The field on which sorting should be applied
Available options
issueDatesortOrder string
The order of sort which should be applied for the sortField
Available options
ascenddescendSuccessful response
- application/json
- Schema
- Example (auto)
Schema
invoicesobject[]required
totalnumberrequired
Total number of invoices
{
"invoices": [
{
"_id": "6578278e879ad2646715ba9c",
"status": "draft",
"liveMode": false,
"amountPaid": 0,
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"name": "New Invoice",
"businessDetails": {
"name": "Alex",
"address": {
"addressLine1": "9931 Beechwood",
"city": "St. Houston",
"state": "TX",
"countryCode": "USA",
"postalCode": "559-6993"
},
"phoneNo": "+1-214-559-6993",
"website": "www.example.com"
},
"invoiceNumber": "19",
"currency": "USD",
"contactDetails": {
"id": "c6tZZU0rJBf30ZXx9Gli",
"phoneNo": "+1-214-559-6993",
"customFields": [],
"name": "Alex",
"address": {
"countryCode": "US"
}
},
"issueDate": "2023-01-01",
"dueDate": "2023-01-01",
"discount": {
"type": "percentage",
"value": 0
},
"invoiceItems": [
{
"taxes": [],
"_id": "c6tZZU0rJBf30ZXx9Gli",
"productId": "c6tZZU0rJBf30ZXx9Gli",
"priceId": "c6tZZU0rJBf30ZXx9Gli",
"currency": "USD",
"name": "Macbook Pro",
"qty": 1,
"amount": 999
}
],
"total": 999,
"title": "INVOICE",
"amountDue": 999,
"createdAt": "2023-12-12T09:27:42.355Z",
"updatedAt": "2023-12-12T09:27:42.355Z",
"automaticTaxesEnabled": true,
"automaticTaxesCalculated": true,
"paymentSchedule": {},
"totalSummary": {
"subTotal": 999,
"discount": 0,
"tax": 0
},
"remindersConfiguration": {
"reminderExecutionDetailsList": {},
"reminderSettings": {
"defaultEmailTemplateId": "dhwjqi2899012990w2u",
"reminders": [
{
"enabled": true,
"emailTemplate": "default",
"smsTemplate": "default",
"emailSubject": "Reminder",
"reminderId": "9333e45f-a27d-4659-90e5-76c5ef06d094",
"reminderName": "Special Reminder",
"reminderTime": "before",
"intervalType": "daily",
"maxReminders": 3,
"reminderInvoiceCondition": "invoice_sent",
"reminderNumber": 10,
"startTime": "9:00 AM",
"endTime": "5:00 PM",
"timezone": "businessTZ"
}
]
}
}
}
],
"total": 100
}