Additional Costs
Additional costs of the agency and their types, included in the accounting statement. Requires accounting in the agency's plan.
Update additional cost
Same JSON body as create, but only the given fields change. A blank name or an amount of 0 or less is ignored. Requires the agency owner or a team admin.
path Parameters
costIdID of the cost
Update additional cost › Request Body
nameName of the cost, 1 to 254 characters
amountAmount in USD, above 0: once for retention NONE, otherwise per retention period
retentionHow often the cost recurs
typeIdID of a cost type available to the agency (own or common)
validUpdate additional cost › Responses
Updated cost
idID of the cost
nameName of the cost
amountAmount in USD: once for retention NONE, otherwise per retention period
Cost type
retentionHow often the cost recurs
createdAtWhen the cost was created (UTC); it counts from this day on. A one-time cost counts on this day only
deletedAtWhen the cost was deleted (UTC); it stops counting after this day. null while active
Rename additional cost type
JSON body: name. Only the agency's own cost types can be renamed. Requires the agency owner or a team admin.
path Parameters
typeIdID of the cost type
Rename additional cost type › Request Body
nameName of the cost type; unique among the agency's own and the common types
Rename additional cost type › Responses
Updated cost type
idID of the cost type
nameName of the cost type
commonWhether this is a common type available to every agency; common types cannot be renamed or deleted
ownerIdID of the agency that owns the type
disabledWhether the type was deleted
createdAtWhen the type was created (UTC)
List additional costs
Additional costs of the agency that were active at any time from from to to (UTC): created at or before to and not deleted before from. Newest first. Without to the page is empty; without from only costs that are not deleted are returned. Request the next page while last is false. Requires the agency owner or a team admin.
query Parameters
fromStart of the period, UTC
toEnd of the period, UTC
pagePage number, starts at 0. Default 0
sizeCosts per page. Default 20
sortSorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
List additional costs › Responses
Page of additional costs
totalElementstotalPagessizenumberfirstlastnumberOfElementsemptyCreate additional cost
JSON body, all fields required: name (1 to 254 characters), amount (above 0), retention (NONE = one-time, or DAILY, WEEKLY, MONTHLY, YEARLY = recurring) and typeId (a cost type from GET /dashboard/api/v1/accounting/additional-cost-types). Requires the agency owner or a team admin.
Create additional cost › Request Body
nameName of the cost, 1 to 254 characters
amountAmount in USD, above 0: once for retention NONE, otherwise per retention period
retentionHow often the cost recurs
typeIdID of a cost type available to the agency (own or common)
validCreate additional cost › Responses
Created cost
idID of the cost
nameName of the cost
amountAmount in USD: once for retention NONE, otherwise per retention period
Cost type
retentionHow often the cost recurs
createdAtWhen the cost was created (UTC); it counts from this day on. A one-time cost counts on this day only
deletedAtWhen the cost was deleted (UTC); it stops counting after this day. null while active
List additional cost types
Cost types the agency can use: its own types and the common ones (common = true). Deleted types are left out. Requires the agency owner or a team admin.
List additional cost types › Responses
Cost types
idID of the cost type
nameName of the cost type
commonWhether this is a common type available to every agency; common types cannot be renamed or deleted
ownerIdID of the agency that owns the type
disabledWhether the type was deleted
createdAtWhen the type was created (UTC)
Create additional cost type
JSON body: name. Requires the agency owner or a team admin.
Create additional cost type › Request Body
nameName of the cost type; unique among the agency's own and the common types
Create additional cost type › Responses
Created cost type
idID of the cost type
nameName of the cost type
commonWhether this is a common type available to every agency; common types cannot be renamed or deleted
ownerIdID of the agency that owns the type
disabledWhether the type was deleted
createdAtWhen the type was created (UTC)
