expense_categories

Adds a expense category

Changed on

Adds an expense category to the system

post/api/v1/expense_categories

Request

Query parameters

includestring
Example:first_load

Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes

Headers

X-API-TOKENstring required
Example:TOKEN

The API token to be used for authentication

X-Requested-Withstring required
Example:XMLHttpRequest

Used to send the XMLHttpRequest header

Response

Returns the saved invoice object

idstring

The expense hashed id

namestring

The expense category name

user_idstring

The user hashed id

is_deletedboolean

Flag determining whether the expense category has been deleted

updated_atinteger

The updated at timestamp

created_atinteger

The created at timestamp

Example response

{
  "id": "Opnel5aKBz",
  "name": "Accounting",
  "user_id": "XS987sD",
  "is_deleted": true,
  "updated_at": 2,
  "created_at": 2
}

Changes

    • info

      the response optional property became read-only for the status

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status