Endpoint Details
- Method:
GET
- URL:
/api/v0/invoices/{invoice_id}
- Authentication: Required (API Key & Secret)
- Content-Type:
application/json
- Rate Limiting: 100 requests per minute
Authentication
This endpoint requires API key authentication using:x-client-key
: Your API client keyx-client-secret
: Your API client secret
Path Parameters
Parameter | Type | Description | Required |
---|---|---|---|
invoice_id | string | Unique identifier for the invoice | Yes |
Response
Success Response (200 OK)
Response Fields
Core Invoice Fields
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the invoice |
invoice_number | string | Auto-generated invoice number (INV-XXXXXX) |
name | string | Invoice name/title |
app_id | string | Application ID that created the invoice |
string | Customer email address | |
address | string | Customer address (optional) |
phone_number | string | Customer phone number (optional) |
logo | string | Company logo URL (optional) |
customer_id | string | Customer identifier |
walletId | string | Wallet used for payment processing |
due_date | string | Payment due date (ISO 8601) |
send_date | string | Date invoice was sent (ISO 8601) |
date_created | string | Invoice creation date (ISO 8601) |
date_updated | string | Last update date (ISO 8601) |
status | enum | Current invoice status |
payment_methods | array | Accepted payment methods |
delivery | enum | Delivery method |
payment_link | boolean | Whether payment link was generated |
payment_link_url | string | URL for payment link (if enabled) |
partial_payment | boolean | Whether partial payments are allowed |
Financial Fields
Field | Type | Description |
---|---|---|
currency | enum | Invoice currency |
subtotal | number | Subtotal before tax |
tax_amount | number | Total tax amount |
total_amount | number | Total amount including tax |
amount_paid | number | Total amount paid |
amount_due | number | Remaining amount due |
is_overdue | boolean | Whether invoice is past due |
days_until_due | number | Days until due date (negative if overdue) |
Related Objects
Field | Type | Description |
---|---|---|
customer | object | Complete customer information |
wallet | object | Payment wallet details |
items | array | Invoice line items with products |
tax | object | Tax configuration details |
transactions | array | Payment transactions |
payment_history | array | Simplified payment history |
reminders_sent | array | Email reminders sent |
notes | array | Internal notes and comments |
metadata | object | Custom metadata fields |
Example Requests
Error Responses
Invoice Status Analysis
Status Meanings
DRAFT
DRAFT
- Description: Invoice created but not yet sent to customer
- Actions Available: Edit, send, delete
- Payment Status: No payments expected
- Customer Access: Customer cannot see draft invoices
OPEN
OPEN
- Description: Invoice sent and awaiting payment
- Actions Available: Send reminders, update, receive payments
- Payment Status: Full payment expected
- Customer Access: Customer can view and pay invoice
PARTIALLYPAID
PARTIALLYPAID
- Description: Partial payment received, balance remaining
- Actions Available: Send balance reminders, receive remaining payment
- Payment Status: Partial payment received
- Customer Access: Customer can pay remaining balance
PAID
PAID
- Description: Invoice fully paid
- Actions Available: View only, issue refunds
- Payment Status: Payment complete
- Customer Access: Customer can view paid invoice
PASTDUE
PASTDUE
- Description: Invoice overdue for payment
- Actions Available: Send overdue notices, collection activities
- Payment Status: Payment overdue
- Customer Access: Customer can still pay overdue invoice
Payment Analysis
Payment Progress
Payment Progress
- Calculation: (amount_paid / total_amount) × 100
- Thresholds: 0% (unpaid), 1-99% (partial), 100% (paid)
- Status Impact: Affects invoice status and customer communications
Overdue Calculation
Overdue Calculation
- Logic: Current date > due_date
- Days Overdue: Math.abs(days_until_due) when is_overdue = true
- Risk Assessment: Increases collection risk with time
Payment Methods Tracking
Payment Methods Tracking
- Available Methods: Listed in payment_methods array
- Used Methods: Tracked in transactions array
- Analytics: Payment method preferences and success rates
Use Cases
Invoice Details Display
Show complete invoice information in customer portals and admin interfaces
Payment Tracking
Monitor payment progress and transaction history
Collections Management
Manage overdue invoices and collection activities
Customer Support
Access invoice details for customer service inquiries
Financial Reporting
Generate detailed reports and analytics
Audit Trail
Review invoice history for compliance and auditing
Implementation Examples
Security Considerations
Invoice details contain sensitive financial and customer information. Ensure proper access controls and data protection.
Data Access Control
Data Access Control
- Invoice data is automatically scoped to your authenticated application
- Only invoices created by your application are accessible
- Customer payment information requires secure handling
Sensitive Information
Sensitive Information
- Transaction hashes and payment details are sensitive
- Customer personal and financial data requires protection
- Implement proper audit logging for access tracking
Compliance Requirements
Compliance Requirements
- Maintain records for tax and regulatory compliance
- Implement data retention and deletion policies
- Ensure proper access controls for financial data
Performance Considerations
Data Loading
Data Loading
- Invoice details include comprehensive related data
- Consider caching frequently accessed invoices
- Implement lazy loading for large transaction histories
Real-time Updates
Real-time Updates
- Use webhooks to receive payment status updates
- Implement optimistic UI updates for better experience
- Cache invoice data with appropriate TTL values
Rate Limiting
This endpoint is subject to the standard API rate limits:- Production: 100 requests per minute per API key
- Development: 50 requests per minute per API key
Related Endpoints
POST /api/v0/invoices
- Create a new invoiceGET /api/v0/invoices
- List all invoicesPATCH /api/v0/invoices/{id}
- Update invoice detailsGET /api/v0/customers/{id}
- Get customer details