Restaurant - Invoice
InvoiceController_findAll
const url = 'https://api.inspow.tech/api/v1/restaurant/invoices?limit=10&offset=0&sortBy=createdAt&sortOrder=asc&sort=%7B%22lastName%22%3A%20-1%2C%20%22email%22%3A%201%7D';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.inspow.tech/api/v1/restaurant/invoices?limit=10&offset=0&sortBy=createdAt&sortOrder=asc&sort=%7B%22lastName%22%3A%20-1%2C%20%22email%22%3A%201%7D'Parameters
Sección titulada « Parameters »Query Parameters
Sección titulada «Query Parameters »Example
10Number of items to return
Example
0Number of items to skip
Example
createdAtField to sort the results (Deprecated, use sort instead)
Example
ascSort direction, either asc or desc (Deprecated, use sort instead)
Query search to filter items
Query to filter items in MongoDB query format
Example
{"lastName": -1, "email": 1}JSON string specifying sorting fields and order (e.g. { “lastName”: -1, “email”: 1 })
Responses
Sección titulada « Responses »object
Unique code for the invoice, e.g., INV-000123.
Status of the payment.
The ID of the subscription this invoice covers.
The ID of the subscription this invoice covers.
The due date for the invoice payment.
The timestamp when the invoice was paid.
Amount billed in this invoice.
Payment method used for this invoice.
Número de días hábiles facturados (solo para pricing per_business_day)
Precio por día usado en el cálculo (solo para pricing per_business_day)
Example
{ "invoiceCode": "INV-000123", "status": "PAID", "subscription": "645cc3d3f8a9c9a2b88a22f1", "plan": "645cc3d3f8a9c9a2b88a22f1", "dueDate": "2023-11-26T00:00:00.000Z", "paidAt": "2023-11-26T00:00:00.000Z", "amount": 45000, "paymentMethod": "wompi_nequi", "businessDaysCount": 20, "pricePerDay": 14000}