GET /invoice/all
List Invoice(s)GET /invoice/{id}
Get InvoicePOST /invoice/add
Add / Create InvoicePUT /invoice/{id}
Edit / Update InvoicePOST /invoice/send
Send InvoicePOST /invoice/record-payment
Record PaymentGET /invoice/paid/{id}
Mark Invoice As PaidGET /invoice/not-paid/{id}
Mark Invoice As Not-PaidDELETE /invoice/{id}
Delete Invoice
GET
https://api.invoice.ng/v1/invoice/all
HTTP/1.1 200 OK
{ "status": "success", "data": [ { "id": "787714923851009", "short_code": "ZDWEUITXGA", "invoice_no": "INV-01", "description": "GSVBS Website Project", "customer_id": "606213207287745", "customer_name": "Dana K. Adrian", "customer_phone": "+145677312965", "customer_address": "Plot 64A, Ajaguna Street, Lekki Phase 1, Lagos.", "payment_status": "Paid", "currency": "NGN", "tax_rate": 5, "tax_amount": 8000, "sub_total": 160000, "total": 168000, "amount_paid": "0", "outstanding_balance": "168000", "issue_date": "2017-06-06", "due_date": "2017-06-20", "note": "Thank you for your patronage.", "created_at": "2017-06-06 11:11:07", "updated_at": "2017-06-06 11:11:07" }, ... ] }
GET
https://api.invoice.ng/v1/invoice/{id}
HTTP/1.1 200 OK
{ "status": "success", "invoice": [ { "id": "787714923851009", "short_code": "ZDWEUITXGA", "invoice_no": "INV-01", "description": "GSVBS Website Project", "customer_id": "621216506875950", "customer_id": "606213207287745", "customer_name": "Dana K. Adrian", "customer_phone": "+145677312965", "customer_address": "Plot 64A, Ajaguna Street, Lekki Phase 1, Lagos.", "currency": "NGN", "payment_status": "Not Paid", "tax_rate": 5, "tax_amount": 8000, "sub_total": 160000, "total": 168000, "amount_paid": "0", "outstanding_balance": "168000", "issue_date": "2017-06-06", "due_date": "2017-06-20", "note": "" } ], "items": [ { "description": "Web Development Fee", "quantity": 1, "rate": "150000", "amount": "150000" }, { "description": "Domain Registration", "quantity": 4, "rate": "2500", "amount": "10000" }, ... ], "payments": [ { "status": "success", "reference": "FLW_PT023kV3", "amount": 157000, "bank": "Access Bank", "created_at": "2017-05-02 21:24:46" }, ... ], "send_log": [ { "email": "info@google.xyz", "date": "2017-05-02 21:24:46" }, ... ] }
POST
https://api.invoice.ng/v1/invoice/add
Parameter | Type | Description |
---|---|---|
client | string | Client unique ID (required) |
invoice_no | string | Invoice number (required) |
payment_status | string | Payment status ('Paid' or 'Not Paid') (required) |
description | string | Description or project summary (optional) |
currency | string | ISO 4217 currency code e.g. USD, GBP, EUR, NGN etc. (optional) |
tax_rate | numeric | Tax rate in % (optional) |
issue_date | date | Date invoice was issued for payment (YYYY-MM-DD) (optional) |
due_date | date | Date invoice will be due for payment (YYYY-MM-DD) (optional) |
note | text | Invoice footer note (optional) |
items [ ] | array | Invoice line items (required) |
Parameter | Type | Description |
---|---|---|
description | string | Item description (required) |
quantity | numeric | Item quantity (required)
|
rate | string | Rate / Unit price (required) |
HTTP/1.1 200 OK
{ "status": "success", "invoice": [ { "id": "787714923851009", "short_code": "ZDWEUITXGA", "invoice_no": "INV-01", "description": "GSVBS Website Project", "customer_id": "621216506875950", "customer_id": "606213207287745", "customer_name": "Dana K. Adrian", "customer_phone": "+145677312965", "customer_address": "Plot 64A, Ajaguna Street, Lekki Phase 1, Lagos.", "currency": "NGN", "payment_status": "Not Paid", "tax_rate": 5, "tax_amount": 8000, "sub_total": 160000, "total": 168000, "amount_paid": "0", "outstanding_balance": "168000", "issue_date": "2017-06-06", "due_date": "2017-06-20", "note": "", "created_at": "2017-06-14 10:17:26", "updated_at": "2017-06-16 15:31:21" } ], "items": [ { "description": "Web Development Fee", "quantity": 1, "rate": "150000" }, { "description": "Domain Registration", "quantity": 4, "rate": "2500" }, ... ] }
PUT
https://api.invoice.ng/v1/invoice/{id}
Parameter | Type | Description |
---|---|---|
client | string | Client unique ID (required) |
invoice_no | string | Invoice number (required) |
payment_status | string | Payment status (required) |
description | string | Description or project summary (optional) |
currency | string | Biiling currency (optional) |
tax_rate | numeric | Tax rate in % (optional) |
issue_date | date | Date invoice will be due for payment (YYYY-MM-DD) (optional) |
due_date | date | Date invoice will be due for payment (YYYY-MM-DD) (optional) |
note | text | Invoice footer note (optional) |
items [ ] | array | Invoice line items (optional) |
Parameter | Type | Description |
---|---|---|
description | string | Item description (required) |
quantity | numeric | Item quantity (required) |
rate | string | Rate / Unit Price (required) |
HTTP/1.1 200 OK
{ "status": "success", "invoice": [ { "id": "787714923851009", "short_code": "ZDWEUITXGA", "invoice_no": "INV-01", "description": "GSVBS Website Project", "customer_id": "621216506875950", "customer_id": "606213207287745", "customer_name": "Dana K. Adrian", "customer_phone": "+145677312965", "customer_address": "Plot 64A, Ajaguna Street, Lekki Phase 1, Lagos.", "currency": "NGN", "payment_status": "Not Paid", "tax_rate": 5, "tax_amount": 8000, "sub_total": 160000, "total": 168000, "amount_paid": "0", "outstanding_balance": "168000", "issue_date": "2017-06-06", "due_date": "2017-06-20", "note": "", "created_at": "2017-06-14 10:17:26", "updated_at": "2017-06-16 15:31:21" } ], "items": [ { "description": "Web Development Fee", "quantity": 1, "rate": "150000" }, { "description": "Domain Registration", "quantity": 4, "rate": "2500" }, ... ] }
POST
https://api.invoice.ng/v1/invoice/send
Parameter | Type | Description |
---|---|---|
id | string | Invoice ID (required) |
string | E-mail address (required) |
|
phone | string | Phone number (optional) |
HTTP/1.1 200 OK
{ "status": "success", "message": "Invoice was successfully sent." }
POST
https://api.invoice.ng/v1/invoice/record-payment
Parameter | Type | Description |
---|---|---|
id | string | Invoice ID (required) |
payment_date | date | Payment Date (YYYY-MM-DD) (required) |
amount_paid | numeric | Amount Paid (required) |
payment_method | string | Payment Method (E.g. 'Cash' | 'Bank Transfer' | 'Cheque' | 'Credit Card' | 'Others') (optional) |
HTTP/1.1 200 OK
{ "status": "success", "message": "Invoice payment update was successful." }
GET
https://api.invoice.ng/v1/invoice/paid/{id}
HTTP/1.1 200 OK
{ "status": "success", "message": "Invoice update was successful." }
GET
https://api.invoice.ng/v1/invoice/not-paid/{id}
HTTP/1.1 200 OK
{ "status": "success", "message": "Invoice update was successful." }
DELETE
https://api.invoice.ng/v1/invoice/{id}
HTTP/1.1 200 OK
{ "status": "success", "message": "Invoice was successfully deleted." }
© 2024 InvoiceApp Inc. All Rights Reserved.