Fanovate
Fanovate API

Accounting

Cost types, cost entries and the cost summary of the agency.


List cost entries

GET
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-entries
X-API-Key (header)

Returns up to 500 entries, newest first. Filter by period (ISO dates), cost type or creator.

List cost entries › query Parameters

from
​string
to
​string
typeId
​integer
creatorId
​integer

List cost entries › Responses

Success.

​object[]
id
​integer · required
costTypeId
​integer · required
creatorId
​integer | null · required
amountCents
​integer · required
currency
​string · required
description
​string | null · required
occurredAt
​string · date-time · required
createdAt
​string · date-time · required

Create a cost entry

POST
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-entries
X-API-Key (header)

The cost type and the optional creator must belong to the agency, otherwise 404. Currency defaults to USD.

Create a cost entry › Request Body

costTypeId
​integer · required
amountCents
​integer · required
creatorId
​integer | null
currency
​string · minLength: 3 · maxLength: 3
description
​string · maxLength: 500
occurredAt
​string · date-time

Create a cost entry › Responses

Success.

id
​integer · required
costTypeId
​integer · required
creatorId
​integer | null · required
amountCents
​integer · required
currency
​string · required
description
​string | null · required
occurredAt
​string · date-time · required
createdAt
​string · date-time · required

Update a cost entry

PATCH
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-entries/{id}
X-API-Key (header)

Update a cost entry › path Parameters

id
​integer · required

Update a cost entry › Request Body

costTypeId
​integer
creatorId
​integer | null
amountCents
​integer
currency
​string · minLength: 3 · maxLength: 3
description
​string · maxLength: 500
occurredAt
​string · date-time

Update a cost entry › Responses

Success.

id
​integer · required
costTypeId
​integer · required
creatorId
​integer | null · required
amountCents
​integer · required
currency
​string · required
description
​string | null · required
occurredAt
​string · date-time · required
createdAt
​string · date-time · required

Delete a cost entry

DELETE
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-entries/{id}
X-API-Key (header)

Delete a cost entry › path Parameters

id
​integer · required

Delete a cost entry › Responses

Success.

ok
​boolean · const · required
Const value:

List cost types

GET
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-types
X-API-Key (header)

Returns all cost types of the agency, ordered by name.

List cost types › Responses

Success.

​object[]
id
​integer · required
name
​string · required
symbol
​string | null · required
color
​string | null · required
defaultMonthlyBudgetCents
​integer | null · required
archived
​boolean · required
createdAt
​string · date-time · required
updatedAt
​string · date-time · required

Create a cost type

POST
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-types
X-API-Key (header)

Create a cost type › Request Body

name
​string · minLength: 1 · maxLength: 120 · required
symbol
​string | null · maxLength: 8
color
​string | null · pattern: ^[0-9a-fA-F]{3,8}$
defaultMonthlyBudgetCents
​integer | null · min: 0 · max: 1000000000
archived
​boolean

Create a cost type › Responses

Success.

id
​integer · required
name
​string · required
symbol
​string | null · required
color
​string | null · required
defaultMonthlyBudgetCents
​integer | null · required
archived
​boolean · required
createdAt
​string · date-time · required
updatedAt
​string · date-time · required

Update a cost type

PATCH
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-types/{id}
X-API-Key (header)

Partial update. Responds 404 if the cost type does not belong to the agency.

Update a cost type › path Parameters

id
​integer · required

Update a cost type › Request Body

name
​string · minLength: 1 · maxLength: 120
symbol
​string | null · maxLength: 8
color
​string | null · pattern: ^[0-9a-fA-F]{3,8}$
defaultMonthlyBudgetCents
​integer | null · min: 0 · max: 1000000000
archived
​boolean

Update a cost type › Responses

Success.

id
​integer · required
name
​string · required
symbol
​string | null · required
color
​string | null · required
defaultMonthlyBudgetCents
​integer | null · required
archived
​boolean · required
createdAt
​string · date-time · required
updatedAt
​string · date-time · required

Delete a cost type

DELETE
https://api.fanovate.io
/dashboard/api/v1/accounting/cost-types/{id}
X-API-Key (header)

Deletes the cost type together with all of its cost entries.

Delete a cost type › path Parameters

id
​integer · required

Delete a cost type › Responses

Success.

ok
​boolean · const · required
Const value:

Get the cost summary

GET
https://api.fanovate.io
/dashboard/api/v1/accounting/summary
X-API-Key (header)

Spend per cost type and budget headroom for the period (default: last 30 days), converted to USD cents. Totals are null and kursFehlt is true when an entry cannot be converted.

Get the cost summary › query Parameters

from
​string
to
​string

Get the cost summary › Responses

Success.

from
​string · date-time · required
to
​string · date-time · required
​object[] · required
totalSpentCents
​integer | null · required
kursFehlt
​boolean