Create and manage expenses.
GET /expense/all
List Expense(s)GET /expense/{id}
Get ExpensePOST /expense/add
Add ExpensePUT /expense/{id}
Edit / Update ExpenseDELETE /expense/{id}
Delete ExpenseGET https://api.invoice.ng/v1/expense/all
HTTP/1.1 200 OK
{ "status": "success", "data": [ { "id": "994230036710411", "short_code": "FLOKGC9DI3", "category": "General Expenses", "description": "Monthly Internet Subscription", "amount": "2500", "currency": "NGN", "vendor": "Swift Nigeria", "issued_date": "2018-02-19", "created_at": "2018-02-21 05:30:31", "updated_at": "2018-02-21 05:30:31" }, ... ] }
GET https://api.invoice.ng/v1/expense/{id}
HTTP/1.1 200 OK
{ "status": "success", "expense": [ { "id": "994230036710411", "short_code": "FLOKGC9DI3", "category": "General Expenses", "description": "Monthly Internet Subscription", "amount": "2500", "currency": "NGN", "vendor": "Swift Nigeria", "issued_date": "2018-02-19", "created_at": "2018-02-21 05:30:31", "updated_at": "2018-02-21 05:30:31" } ] }
POST https://api.invoice.ng/v1/expense/add
Parameter | Type | Description |
---|---|---|
description | string | Expense name or description (required) |
issue_date | date | Date the expense was issued ( YYYY-MM-DD ) (required) |
amount | numeric | Amount (required) |
currency | string | ISO 4217 currency code e.g. USD, GBP, EUR, NGN etc. (required) |
vendor | string | Name of the vendor or supplier (optional) |
HTTP/1.1 200 OK
{ "status": "success", "expense": [ { "id": "909632780692043", "short_code": "6Y4Q6OFGCR", "category": "General Expenses", "description": "Aprils Monthly Internet Subscription", "amount": "2500", "currency": "NGN", "vendor": "Swift Nigeria", "issued_date": "2018-04-03", "created_at": "2018-04-03 16:42:08", "updated_at": "2018-04-03 16:42:08" } ] }
PUT https://api.invoice.ng/v1/expense/{id}
Parameter | Type | Description |
---|---|---|
description | string | Expense name or description (required) |
issue_date | date | Date the expense was issued ( YYYY-MM-DD ) (required) |
amount | numeric | Amount (required) |
currency | string | ISO 4217 currency code e.g. USD, GBP, EUR, NGN etc. (required) |
vendor | string | Name of the vendor or supplier (optional) |
HTTP/1.1 200 OK
{ "status": "success", "expense": [ { "id": "909632780692043", "short_code": "6Y4Q6OFGCR", "category": "General Expenses", "description": "Aprils Monthly Internet Subscription", "amount": "2500", "currency": "NGN", "vendor": "Swift Nigeria", "issued_date": "2018-04-03", "created_at": "2018-04-03 16:42:08", "updated_at": "2018-04-03 16:42:08" } ] }
DELETE https://api.invoice.ng/v1/expense/{id}
HTTP/1.1 200 OK
{ "status": "success", "id": "909632780692043" }
© 2024 InvoiceApp Inc. All Rights Reserved.