Skip to content

Finance Payout Specification

Access financial transaction specifications in the Amili system. Finance payout specifications are detailed financial entries created during payment settlement, representing the breakdown of collected funds by category (capital, interest, fees, commissions) that contribute to creditor payouts.

Each specification tracks a single financial transaction with its amounts, VAT calculations, booking date, and references to the related case or debt collection process.

Finance Payout Specification endpoints

See Creditor for accessing the creditors that receive payouts and Finance Examples for detailed usage examples.

Example Request

Below is an example of retrieving finance payout specifications with pagination.

URL: GET /finance--payout-specifications?page=1&max_results=20&sort=-_created

Headers:

x-api-key: {your_access_token}
Content-Type: application/json

Request Body: None (GET request)

Response Code: 200 OK

Response Body:

json
{
  "_items": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "_created": "Wed, 11 Jun 2025 14:00:18 GMT",
      "_updated": "Wed, 11 Jun 2025 14:00:18 GMT",
      "_etag": "a1b2c3d4e5f678901234567890123456",
      "creditor": "686e6ed854377058c2dd10bd",
      "creditor_name": "Example Creditor AB",
      "currency": "SEK",
      "amount": 60.0,
      "vat_amount": 15.0,
      "total_amount": 75.0,
      "article": "reminder",
      "state": "reminder",
      "booking_date": "Wed, 11 Jun 2025 00:00:00 GMT",
      "finance_category": "creditor_commission",
      "invoice_number": "INV-2025-020",
      "reference_number": "25020",
      "payout_reference": "Creditor Commission",
      "payout_date": "Fri, 13 Jun 2025 00:00:00 GMT",
      "payout": "507f1f77bcf86cd799439099"
    },
    {
      "_id": "507f1f77bcf86cd799439012",
      "_created": "Wed, 11 Jun 2025 14:00:17 GMT",
      "_updated": "Wed, 11 Jun 2025 14:00:17 GMT",
      "_etag": "b2c3d4e5f67890123456789012345678",
      "creditor": "686e6ed854377058c2dd10bd",
      "creditor_name": "Example Creditor AB",
      "currency": "SEK",
      "amount": 1064.0,
      "vat_amount": 0.0,
      "total_amount": 1064.0,
      "article": "capital",
      "state": "reminder",
      "booking_date": "Wed, 11 Jun 2025 00:00:00 GMT",
      "finance_category": "capital",
      "invoice_number": "INV-2025-020",
      "reference_number": "25020"
    }
  ],
  "_meta": {
    "page": 1,
    "max_results": 20,
    "total": 162
  }
}

Parameters

Query Parameters

Standard Eve pagination and filtering parameters are supported:

ParameterTypeDescription
pagenumberPage number (default: 1)
max_resultsnumberItems per page (default: 25, max: 100)
sortstringSort field (prefix with - for descending, e.g. -_created)
wherestringJSON query filter (e.g. {"creditor": "686e6ed854377058c2dd10bd"})
projectionstringJSON field projection (e.g. {"amount": 1, "article": 1})

See Pagination and Queries for detailed information.

Response Properties

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the payout specification
_createdstringYesCreation timestamp (RFC 1123 format)
_updatedstringYesLast update timestamp (RFC 1123 format)
_etagstringYesEntity tag for concurrency control
creditorstringYesCreditor ID (ObjectId)
creditor_namestringNoCreditor name (cascade updated from creditor)
currencystringYesCurrency code (currently only "SEK" supported)
amountnumberYesBase amount (excluding VAT)
vat_amountnumberYesVAT amount
total_amountnumberYesTotal amount (amount + vat_amount)
articlestringYesType of charge (e.g. "capital", "interest", "reminder")*
statestringNoCase state when specification was created (e.g. "reminder", "debt_collection")*
state_datestringNoState date when specification was created (RFC 1123 format)
booking_datestringNoBooking date from underlying action (RFC 1123 format)
finance_categorystringNoFinancial payout category (e.g. "capital", "interest", "creditor_commission")*
payoutstringNoPayout ID (ObjectId) if specification has been scheduled for payout
payout_referencestringNoReference text for the payout (cascade updated from payout)
payout_datestringNoScheduled payout date (RFC 1123 format, cascade updated from payout)
payout_intervalstringNoFinance interval of the payout (e.g. "daily", "weekly", cascade updated from payout)
reference_numberstringNoReference number from the related case/debt collection
invoice_numberstringNoInvoice number (if single invoice)
invoice_numbersarrayNoInvoice numbers (if multiple invoices)
referencesobjectNoReferences to related documents (case, debt_collection, enforcement, etc.)

Common Articles

ArticleDescription
capitalPrincipal debt amount
interestInterest charges
reminderReminder fees
costCollection costs

Common Finance Categories

CategoryDescription
capitalPrincipal amounts collected
interestInterest collected
creditor_commissionCommission fees charged to creditor
amili_commissionAmili's commission from collection

Common States

StateDescription
initializingCase is being initialized
reminderCase is in reminder phase
debt_collectionCase is in debt collection phase
enforcementCase is in enforcement phase
debt_surveillanceCase is in debt surveillance phase

*) For complete list of values and details, please see Finance Payout Specification