Skip to content

Case ​

Access cases in the Amili system. Cases represent collection matters with associated invoices, customer information, and status tracking.

Case Management endpoints ​

See Case Registration and Invoice Registration for case creation.

Examples ​

For working code examples and detailed usage guides, see Case Status Examples and Case Flow Examples.

For complete API specification with interactive testing, see Swagger: Case.

Parameters ​

Path Parameters ​

NameTypeRequiredDescription
caseIdstringYesThe unique identifier of the case

Response Properties ​

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the case
_createdstringYesCreation timestamp
_updatedstringYesLast update timestamp
_etagstringYesEntity tag for concurrency control
creditorstringYesCreditor ID
creditor_namestringYesName of the creditor
customerstringYesCustomer ID
customer_namestringYesName of the customer
customer_id_numberstringYesCustomer's personal ID or organization number
customer_numberstringNoCustomer's reference number
customer_statusstringYesCurrent customer status (e.g. "initialized")*
reference_numberstringNoReference number from creditor
currencystringYesCurrency code (e.g. "SEK")
statestringYesCurrent state (e.g. "initializing")*
state_historyarrayYesHistory of state changes
statusstringYesCurrent status (e.g. "initialized")*
status_historyarrayYesHistory of status changes
latest_state_datestringYesTimestamp of latest state change
agreement_versionstringYesAgreement version ID
case_registrationstringYesCase registration ID
case_settingsobjectYesCase specific settings
debtobjectYesDebt information
transactionsarrayYesList of transactions
total_added_capital_amountnumberYesTotal capital amount added
total_added_costs_amountnumberYesTotal costs amount added
total_added_interest_amountnumberYesTotal interest amount added
total_added_transaction_amountnumberYesTotal transaction amount added
total_remaining_capital_amountnumberYesRemaining capital amount
total_remaining_costs_amountnumberYesRemaining costs amount
total_remaining_interest_amountnumberYesRemaining interest amount
total_remaining_transaction_amountnumberYesRemaining transaction amount
local_added_capital_amountnumberYesCapital amount added in local currency
local_added_costs_amountnumberYesCosts amount added in local currency
local_added_interest_amountnumberYesInterest amount added in local currency
local_added_transaction_amountnumberYesTransaction amount added in local currency
local_remaining_capital_amountnumberYesRemaining capital amount in local currency
local_remaining_costs_amountnumberYesRemaining costs amount in local currency
local_remaining_interest_amountnumberYesRemaining interest amount in local currency
local_remaining_transaction_amountnumberYesRemaining transaction amount in local currency
original_invoiceobjectNoOriginal invoice document information

Debt Properties ​

PropertyTypeRequiredDescription
invoice_numberstringYesInvoice number from creditor
debt_referencestringNoReference number for the debt
payout_referencestringNoReference for payout tracking
invoice_datestringYesDate invoice was issued
invoice_due_days_after_invoice_datenumberYesDays until due date after invoice date
interest_days_after_invoice_datenumberYesDays until interest starts after invoice date
initial_capitalnumberYesInitial capital amount
capital_to_claimnumberYesCapital amount to collect
debt_descriptionstringYesDescription of the debt

Transaction Properties ​

PropertyTypeRequiredDescription
bank_transaction_datestringYesDate of bank transaction
registration_datestringYesDate transaction was registered
originstringYesOrigin of transaction (e.g. "creditor_system")*
typestringYesType of transaction (e.g. "capital")*
description_locale_tagstringYesLocalization tag for description
amountnumberYesTransaction amount

*) For complete list of values and details, please see Case