Skip to content

Creditor

Manage creditor information in the Amili system. Creditors represent businesses that use Amili for invoice and case management, including their organization details, addresses, and configuration settings. Creditors are always associated with an Account, and each Account must have at least one Creditor. The first Creditor for an Account is created during Account creation using the initial_creditor_data parameter. Additional Creditors can be created using this endpoint.

Creditor endpoints

Example Request

Below is an example of retrieving a specific creditor.

URL: GET /creditors/674dbeb208847b9501cc9138

Headers:

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

Request Body: None (GET request)

Response Code: 200 OK

Response Body:

json
{
  "_id": "674dbeb208847b9501cc9138",
  "account": "674dbeaf08847b9501cc9132",
  "name": "Amili Integration Team",
  "organization_no": "1122334455",
  "is_active": true,
  "standard_debt_description": "Standard skuldbeskrivning på Konto",
  "agreement_address": {
    "address_line_1": "Redaregatan 50",
    "zip_code": "25236",
    "city": "Helsingborg",
    "country": "SE"
  },
  "case_config": {
    "vat_area": "sweden",
    "commission_excluded_vat": false,
    "payout_capital_by_invoice": true,
    "payout_interest_by_invoice": false,
    "letter_config": {}
  },
  "description": "Generella tester",
  "default_letter_locale": "sv",
  "payout_details": {
    "sek": {
      "bankgiro": "12312312"
    }
  },
  "sender_address": {
    "address_line_1": "Redaregatan 50",
    "zip_code": "25236",
    "city": "Helsingborg",
    "country": "SE"
  },
  "invoice_address": {
    "address_line_1": "Redaregatan 50",
    "zip_code": "25236",
    "city": "Helsingborg",
    "country": "SE"
  },
  "always_use_standard_debt_description": false,
  "added_to_erp_system": false,
  "_updated": "Fri, 04 Apr 2025 14:30:14 GMT",
  "_created": "Mon, 02 Dec 2024 14:05:38 GMT",
  "creditor_number": 2000037,
  "_etag": "9513f97705d5a98d99f5a61f483b4102c67f0ec6"
}

Parameters

Path Parameters

NameTypeRequiredDescription
creditorIdstringYesThe unique identifier of the creditor

Response Properties

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the creditor
_createdstringYesCreation timestamp
_updatedstringYesLast update timestamp
_etagstringYesEntity tag for concurrency control
accountstringYesAccount ID
namestringYesCreditor name
descriptionstringNoCreditor description
organization_nostringYesOrganization/company registration number
creditor_numbernumberYesSystem-assigned creditor identifier
is_activebooleanYesWhether the creditor is active
standard_debt_descriptionstringNoDefault description for debts
always_use_standard_debt_descriptionbooleanNoWhether to always use default description
agreement_addressobjectYesPrimary business address
sender_addressobjectYesAddress for sending correspondence
invoice_addressobjectYesAddress for invoice correspondence
case_configobjectNoCase handling configuration
payout_detailsobjectYesBank account details for payouts
default_letter_localestringNoDefault language for letters (e.g. "sv")*
added_to_erp_systembooleanNoWhether added to ERP system

Address Properties

PropertyTypeRequiredDescription
address_line_1stringYesPrimary address line
zip_codestringYesPostal code
citystringYesCity name
countrystringYesCountry code in ISO 3166-1 alpha-2 format (e.g. "SE")*

Case Config Properties

PropertyTypeRequiredDescription
vat_areastringNoVAT region (e.g. "sweden")*
commission_excluded_vatbooleanNoWhether commission excludes VAT
payout_capital_by_invoicebooleanNoWhether to pay out capital per invoice
payout_interest_by_invoicebooleanNoWhether to pay out interest per invoice
letter_configobjectNoLetter template configuration

Payout Details Properties

PropertyTypeRequiredDescription
sekobjectNoSEK currency payout details

SEK Payout Properties

PropertyTypeRequiredDescription
bankgirostringYesBankgiro number for SEK payments

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