Expenses

Raise an expense

Raised as the key owner, through the same approval workflow as the dashboard. submit: true sends it for approval; false saves a draft. Needs a recipient (see the Recipients doc) and optionally a category, tax, department and custom fields (see the Expense Categories, Taxes, Departments and Custom Fields docs). Receipts must be verified uploads (see the Receipts doc).

POST
/api/v1/expenses
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/expenses" \  -H "Content-Type: application/json" \  -d '{    "currency": "NGN",    "date": "2024-06-27T14:23:13.248Z",    "items": [      {        "description": "Office supplies",        "quantity": 5,        "price": 1000,        "currency": "NGN"      }    ],    "submit": true,    "recipientId": "98d34e0c-69dc-4683-9bbe-6e6921ed155c"  }'
{
  "id": "string",
  "businessId": "string",
  "amount": 0,
  "currency": "string",
  "description": "string",
  "status": "pending",
  "date": "2019-08-24T14:15:22Z",
  "claimReimbursement": true,
  "receipt": [
    "string"
  ],
  "payoutId": "string",
  "expenseCategory": {
    "name": "string"
  },
  "department": {
    "name": "string"
  },
  "recipient": {
    "accountName": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z"
}
Empty
Empty
Empty
Empty
Empty

How is this guide?

Last updated on