API Endpoints
Complete reference for InvoiceDoodle's API endpoints
Base URL
https://api.invoicedoodle.com/v1
POST
/api/v1/invoices
Create a new invoice with specified details
Parameters
Name | Type | Required | Description |
---|---|---|---|
client_id | string | Yes | Unique identifier of the client |
amount | number | Yes | Invoice amount |
currency | string | Yes | Currency code (e.g., USD, ETH) |
due_date | string | Yes | Invoice due date (ISO 8601) |
Response
201Invoice created successfully
{
"id": "inv_123xyz",
"status": "draft",
"amount": 1000,
"currency": "USD",
"created_at": "2024-01-20T12:00:00Z"
}
GET
/api/v1/invoices/{invoice_id}
Retrieve details of a specific invoice
Response
200Invoice details retrieved successfully
{
"id": "inv_123xyz",
"status": "paid",
"amount": 1000,
"currency": "USD",
"payment_details": {
"method": "crypto",
"transaction_hash": "0x123..."
}
}
POST
/api/v1/payments
Process a new payment for an invoice
Parameters
Name | Type | Required | Description |
---|---|---|---|
invoice_id | string | Yes | Invoice ID to pay |
payment_method | string | Yes | Payment method (crypto, card, bank) |
amount | number | Yes | Payment amount |
Response
201Payment processed successfully
{
"id": "pay_456abc",
"status": "completed",
"amount": 1000,
"currency": "USD",
"timestamp": "2024-01-20T12:05:00Z"
}
Next Steps
Learn more about implementing these endpoints in your application: