Skip to main content
POST
Create expense

Authorizations

X-API-Key
string
header
default:your_tyms_sk_or_partner_key
required

Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.

Body

application/json
date
string<date>
required

Expense date.

items
object[]
required
Minimum array length: 1
payment_category
string
required

Cash or bank name paid from. Payment is assumed in full from the line totals — do not send amount_paid (that key is only for invoices and bills).

currency
string
customer
string
document_number
string

Alias: bill_no.

narration
string
is_prepayment
boolean

Set true (or 1) to create a prepaid_expenses record instead of a regular expense. The expense amount is deferred and recognized monthly over prepayment_duration.

prepayment_duration
integer

Number of months to recognize the prepaid expense over. Required when is_prepayment is true.

prepayment_account
string

Asset account name for the prepaid balance. Defaults to the business prepaid expenses account.

Response

Expense created

status
string
required
Example:

"success"

message
string
required
data
any

Single resource, array of resources, statement sections, or async job metadata — see each operation's example.

meta
object

Pagination (page, limit, total) and/or report range (from, to). Cash flow may include previous_period_end.