GET Single Invoice
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-04-20 12:10:30
Maintainer:Not configured
id
: Invoice ID (required){
"result": "success",
"code": 200,
"data": {
"Invoice": {
"id": 123,
"number": "INV-2023-001",
"client_id": 15,
"date": "2023-03-23",
"due_date": "2023-04-22",
"total": 120.00,
"status": 1,
"currency_code": "USD",
"draft": 0,
"notes": "Thank you for your business",
"created": "2023-03-23 10:15:22",
"modified": "2023-03-23 10:15:22"
// Additional invoice fields...
},
"Client": {
"id": 15,
"name": "ACME Corp",
"business_name": "ACME Corporation",
"email": "billing@acmecorp.com"
// Additional client fields...
},
"InvoiceItem": [
{
"id": 456,
"invoice_id": 123,
"product_id": 1,
"description": "Premium Widget",
"quantity": 1,
"unit_price": 100.00,
"discount": 0,
"tax1": 20.00,
"total": 120.00
// Additional item fields...
}
],
"InvoicePayment": [
{
"id": 789,
"invoice_id": 123,
"payment_method": "Credit Card",
"amount": 50.00,
"date": "2023-03-24",
"transaction_id": "TXN123456"
// Additional payment fields...
}
]
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/invoices/{{id}}.json'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"Invoice": {
"id": 123,
"number": "INV-2023-001",
"client_id": 15,
"date": "2023-03-23",
"due_date": "2023-04-22",
"total": 120,
"status": 1,
"currency_code": "USD",
"draft": 0,
"notes": "Thank you for your business",
"created": "2023-03-23 10:15:22",
"modified": "2023-03-23 10:15:22"
},
"Client": {
"id": 15,
"name": "ACME Corp",
"business_name": "ACME Corporation",
"email": "billing@acmecorp.com",
"phone1": "555-1234",
"address1": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country_code": "US"
},
"InvoiceItem": [
{
"id": 456,
"invoice_id": 123,
"product_id": 1,
"description": "Premium Widget",
"quantity": 1,
"unit_price": 100,
"discount": 0,
"tax1": 20,
"total": 120
}
],
"InvoicePayment": [
{
"id": 789,
"invoice_id": 123,
"payment_method": "Credit Card",
"amount": 50,
"date": "2023-03-24",
"transaction_id": "TXN123456",
"treasury_id": 1,
"status": 1
}
]
}
}
Request
None