BizKitHub
DocsAPI ReferenceExpense/bff/expense/create
postExpenseAdmin BFF

/bff/expense/create

Creates a new expense ledger entry. The accountingEntityExternalId is required only when multiple entities exist for the organisation — when omitted, the org default is used.

ExpensepostBffExpenseCreate

Parameters

JSON body

Request body

application/json
accountingEntityExternalIdstringOptional
Length: 2424
branchSlugstring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
supplierContactExternalIdstring | nullOptional

External id of the "PŘÍJEMCE" (payee) contact. Optional. When omitted or null, the expense is stored with supplier=NULL — the BFF does NOT invent a fallback (historically it auto-picked the org internal contact for write-offs, dropped 2026-07 so a genuinely unknown recipient stays unknown). Fill it in later via /update.

One of 2:
Variant 1
string
Length: 1624
Variant 2
null
invoiceExternalIdstring | nullOptional
One of 2:
Variant 1
string
Length: 1624
Variant 2
null
purchaseInvoiceSequenceNumberstring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
orderHashstring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
category"fees" | "shipping" | "marketing" | "payroll" | "utilities" | "supplies" | "services" | "sw" | "storage" | "tax" | "insurance" | "travel" | "writeoff" | "refund" | "other"Required
accountCodestring | nullOptional
One of 2:
Variant 1
string
Length: 016
Variant 2
null
vatRatenumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null
totalMoneynumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null
netMoneynumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null
vatMoneynumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null
currencystringOptional
Length: 33
effectiveDatestringRequired

YYYY-MM-DD

dueDatestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
paidDatestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
paymentMethodstring | nullOptional
One of 2:
Variant 1
string
Length: 032
Variant 2
null
descriptionstringRequired
Length: 1
internalNotestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
payerContactExternalIdstring | nullOptional

External id of the "PLÁTCE" — the contact liable to pay the expense. Optional. When omitted or null, the expense is stored with payer=NULL — the BFF does NOT invent a fallback (operators sometimes don't know the counterparty at creation time; the admin fills the default at the UI layer). Fill it in later via /update.

One of 2:
Variant 1
string
Length: 1624
Variant 2
null
attachmentBlobTokensstring[]Optional

Response schema

1 status code documented

200Success
successbooleanRequired
Default: true
externalIdstringRequired
attachmentCountnumberRequired

Response example

application/json
{
  "success": true,
  "externalId": "example_externalId",
  "attachmentCount": 0
}

Request example

POST /bff/expense/create

post
curl -X POST "https://api.bizkithub.com/bff/expense/create" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "accountingEntityExternalId": "example_accountingEntityExternalId",
  "currency": "example_currency",
  "effectiveDate": "example_effectiveDate",
  "description": "example_description",
  "attachmentBlobTokens": [
    "string"
  ]
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key