Skip to content

Case Registration

Register new cases in the Amili system. Case registration is used for initiating collection matters, including customer information and associated invoices that require processing from the reminder stage onwards.

Case Registration endpoints

See Case for accessing registered cases.

NOTE It is highly recommended to upload the original invoice of a case. Please refer to Media Upload for this.

Example Request

Below is an example of creating a new case registration. Other operations follow similar request/response patterns with the same data structure.

URL: POST /case--registrations

Headers:

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

Request Body:

json
{
  "account": "674dbeaf08847b9501cc9132",
  "creditor": "674dbeb208847b9501cc9138",
  "first_action": "debt_collection",
  "currency": "SEK",
  "customer": {
    "name": "Jane Doe",
    "id_number": "202501012385",
    "address": {
      "address_line_1": "Business Street 456",
      "zip_code": "54321",
      "city": "Gothenburg"
    },
    "mobile_number": "+46709876543",
    "email": "jane.doe@domain.se"
  },
  "debts": [
    {
      "invoice_number": "778899",
      "debt_description": "Consulting fee",
      "invoice_date": "Mon, 16 Jun 2025 00:00:00 GMT",
      "capital_to_claim": 250.0,
      "invoice_due_days_after_invoice_date": 10
    }
  ]
}

Response Code: 201 Created

Response Body:

json
{
  "_updated": "Fri, 04 Jul 2025 13:43:19 GMT",
  "_created": "Fri, 04 Jul 2025 13:43:19 GMT",
  "_etag": "fb0b598d816eaa0085492ba22c7876ecd06f3764",
  "_id": "6867da77eaa52b3ff595b5a5",
  "_status": "OK",
  "_cases": ["6867da7788b9226bb78d716c"],
  "_ocr_numbers": ["6867da77eaa52b3ff595b5aa"],
  "_ocr_numbers_ocr": ["20251852687013699044"]
}

Parameters

Request Body Properties

PropertyTypeRequiredDescription
accountstringYesAccount ID
creditorstringYesCreditor ID
first_actionstringYesInitial action (e.g. "debt_collection")*
currencystringYesCurrency code (currently only "SEK" supported)
customerobjectYesCustomer information
debtsarrayYesArray of debt objects

Customer Properties

PropertyTypeRequiredDescription
namestringYesCustomer's full name
id_numberstringYes**Personal ID or organization number
addressobjectYesCustomer's address information
mobile_numberstringNoContact phone number
emailstringNoContact email address

Address Properties

PropertyTypeRequiredDescription
address_line_1stringYesPrimary address line
zip_codestringYesPostal code
citystringYesCity name

Debt Properties

PropertyTypeRequiredDescription
invoice_numberstringYesInvoice number from creditor
debt_descriptionstringYes***Description of the debt
invoice_datestringYesDate invoice was issued
capital_to_claimnumberYesCapital amount to collect
invoice_due_days_after_invoice_datenumberYesDays until due date after invoice date

Response Properties

PropertyTypeRequiredDescription
_idstringYesRegistration ID
_createdstringYesCreation timestamp
_updatedstringYesLast update timestamp
_etagstringYesEntity tag for concurrency control
_statusstringYesRegistration status (e.g. "OK")*
_casesarrayYesArray of created case IDs
_ocr_numbersarrayYesArray of OCR number IDs
_ocr_numbers_ocrarrayYesArray of actual OCR numbers

*) For complete list of values and details, please see Case Registration) Required for enforcement services *) Required for debt collection and enforcement services