API Documentation
- API
- Customer
- Invoice
- Invoice Payment
- Usage
Invoice List Api
Lists invoices with optional filtering.
curl --request GET \
--url https://api.justpaid.io/api/v1/invoice/ \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"invoice_status": "draft",
"amount": 1000,
"currency": "USD",
"invoice_number": "INV-2024-001",
"invoice_date": "2024-03-21",
"line_items": [
{
"name": "Product A",
"unit_price": 100,
"quantity": 2,
"amount": 200,
"currency": "USD"
}
],
"customer": {
"uuid": "456e4567-e89b-12d3-a456-426614174000",
"name": "Customer Name"
}
}
],
"count": 1
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Filter by invoice status (e.g., 'draft', 'sent', 'paid')
Filter by customer UUID
Number of results to return per page
Number of results to skip
Response
The unique identifier for the invoice
"123e4567-e89b-12d3-a456-426614174000"
The current status of the invoice
"draft"
The total amount due for the invoice
1000
The currency code for the invoice
"USD"
The unique invoice number
"INV-2024-001"
The date when the invoice was created
"2024-03-21"
The date by which the invoice must be paid
"2024-04-21"
The start date of the service period
"2024-03-01"
The end date of the service period
"2024-03-31"
A description of the invoice
"Monthly services for March 2024"
The timestamp when the invoice was created
"2024-03-21T10:00:00Z"
Indicates if this is a recurring invoice
false
Indicates if the invoice was created from an external source
false
The name of the external source if applicable
"stripe"
The ID of the invoice in the external system
"inv_123456"
URL where the customer can pay this invoice
"https://app.justpaid.ai/portal/inv/123"
List of line items included in this invoice
The name of the line item
"Product A"
The price per unit for this line item
100
The quantity of units for this line item
2
The total amount for this line item (unit_price * quantity)
200
The currency code for this line item
"USD"
Additional details about the line item
"Detailed description of the product or service"
URL to download the invoice PDF
"https://api.justpaid.ai/invoices/123.pdf"
Details of the customer associated with this invoice
An optional external identifier for the customer. This can be used to link the customer to an external system.
"CUST-001"
Customer name
100
The name of the contact person
100
50
A list of additional customer email addresses
Billing email addresses
Customer phone number with country code
20
3
Customer tax id
9
curl --request GET \
--url https://api.justpaid.io/api/v1/invoice/ \
--header 'Authorization: Bearer <token>'
{
"items": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"invoice_status": "draft",
"amount": 1000,
"currency": "USD",
"invoice_number": "INV-2024-001",
"invoice_date": "2024-03-21",
"line_items": [
{
"name": "Product A",
"unit_price": 100,
"quantity": 2,
"amount": 200,
"currency": "USD"
}
],
"customer": {
"uuid": "456e4567-e89b-12d3-a456-426614174000",
"name": "Customer Name"
}
}
],
"count": 1
}