Skip to main content
@smokeballdev/smokeball-client-sdk

Interface: Api

Entry point for expenses in Smokeball.

Methods

create()

create(request): Promise<Expense>
Creates a new expense and returns the newly created expense.

Parameters

request
CreateExpenseRequest the create request.

Returns

Promise<Expense>

Example


get()

get(request): Promise<Expense>
Gets the expense associated with the specified id.

Parameters

request
GetExpenseRequest

Returns

Promise<Expense> the expense associated with the specified id.

Example