Billing document issued to customers for goods or services provided. Tracks invoice details, customer information, payment amounts, tax calculations, payment status, and due dates.
https://api.mockly.codes/invoices?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/invoicesGet a collection of invoices
/business/invoices/invoices/:idGet a single invoice by ID
/business/invoices/:id/invoices/metaGet resource metadata and schema
/business/invoices/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/invoices?q=laptopGET https://api.mockly.codes/invoices?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 invoices
fetch('https://api.mockly.codes/invoices?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/invoices?count=10'
)
data = response.json()curl "https://api.mockly.codes/invoices?count=10"fetch('https://api.mockly.codes/invoices?nocache=true')idintegerUnique identifier for the invoice record
random_intinvoice_numberstringUnique invoice number or reference code used for tracking and accounting purposes
invoice_numbercustomer_idintegerForeign key reference to the customer or client this invoice is billed to
random_intcustomer_namestringFull name of the customer or business entity being invoiced
namecustomer_emailstringEmail address where the invoice is sent and payment notifications are delivered
emailemailamountnumberSubtotal amount before taxes and additional fees
pricetaxnumberTax amount calculated based on applicable tax rates
taxtotalnumberTotal amount due including subtotal, taxes, and all applicable fees
pricecurrencystringISO currency code for the invoice amounts (e.g., USD, EUR, GBP)
currencystatusstringCurrent payment status of the invoice (e.g., pending, paid, overdue, cancelled, refunded)
invoice_statusissue_datestringDate when the invoice was created and issued to the customer
past_datedatedue_datestringDate by which payment is expected or required
future_datedatepaid_atstringTimestamp when the invoice was fully paid, null if still pending
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request