curl --request GET \
--url 'https://api.widgetic.com/v1/invoices/partner/123e4567-e89b-12d3-a456-426614174000?status=draft&limit=50' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"
{
"success": true,
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partnerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"number": "Example number",
"description": "Example description",
"purpose": "Example purpose",
"amount": 42,
"subtotal": 42,
"taxAmount": 42,
"total": 42,
"amountDue": 42,
"amountPaid": 42,
"currency": "USD",
"failureReason": "Example failureReason",
"status": "Example status",
"invoiceDate": "2026-01-15T09:30:00.000Z",
"dueDate": "2026-01-15T09:30:00.000Z",
"paidDate": "2026-01-15T09:30:00.000Z",
"periodStart": "2026-01-15T09:30:00.000Z",
"periodEnd": "2026-01-15T09:30:00.000Z",
"paymentMethod": "Example paymentMethod",
"hostedInvoiceUrl": "Example hostedInvoiceUrl",
"pdfUrl": "Example pdfUrl",
"lineItems": [],
"createdAt": "2026-01-15T09:30:00.000Z",
"updatedAt": "2026-01-15T09:30:00.000Z"
}
],
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}Credits and billing
List invoices
Lists the invoices issued to a partner, newest first. Each carries the price (subtotal), the tax on
it (taxAmount) and what is paid (total), its status as the payment provider reports it, why the
last payment failed (failureReason), and the page where it is paid (hostedInvoiceUrl).
A partner reads its own: the caller must be the person who administers the partner (an API key of
that account works), and anyone else is refused with 403 whether or not the partner exists.
Widgetic administrators can read any partner’s and see exactly what the partner sees; the full
records, with the internal fields, are getAllInvoices filtered by partner.
The page is always bounded: limit defaults to 50 and is capped at 100, offset defaults to 0.
GET
/
invoices
/
partner
/
{partnerId}
curl --request GET \
--url 'https://api.widgetic.com/v1/invoices/partner/123e4567-e89b-12d3-a456-426614174000?status=draft&limit=50' \
--header "Authorization: Bearer $WIDGETIC_API_KEY"
{
"success": true,
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partnerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"number": "Example number",
"description": "Example description",
"purpose": "Example purpose",
"amount": 42,
"subtotal": 42,
"taxAmount": 42,
"total": 42,
"amountDue": 42,
"amountPaid": 42,
"currency": "USD",
"failureReason": "Example failureReason",
"status": "Example status",
"invoiceDate": "2026-01-15T09:30:00.000Z",
"dueDate": "2026-01-15T09:30:00.000Z",
"paidDate": "2026-01-15T09:30:00.000Z",
"periodStart": "2026-01-15T09:30:00.000Z",
"periodEnd": "2026-01-15T09:30:00.000Z",
"paymentMethod": "Example paymentMethod",
"hostedInvoiceUrl": "Example hostedInvoiceUrl",
"pdfUrl": "Example pdfUrl",
"lineItems": [],
"createdAt": "2026-01-15T09:30:00.000Z",
"updatedAt": "2026-01-15T09:30:00.000Z"
}
],
"meta": {
"page": 1,
"size": 20,
"total": 135,
"limit": 20,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "<string>",
"warnings": [
"<string>"
]
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Composition not found",
"timestamp": "2026-10-15T10:00:00.000Z",
"param": "name",
"docUrl": "<string>",
"suggestedAction": "<string>",
"retryAfter": 60,
"details": {},
"correlationId": "req_123e4567-e89b-12d3-a456-426614174000"
}
}