Skip to content

Creditor Payment

Register payments in the Amili system. Used when a customer makes a payment directly to a creditor, allowing the payment to be recorded against a case.

Creditor Payment endpoints

See Case for accessing the cases that can receive payments.

Examples

For working code examples and detailed usage guides, see Creditor Case Actions.

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

Parameters

Request Body Properties

PropertyTypeRequiredDescription
accountstringNo**Account ID (readonly, automatically set from case/creditor)
creditorstringYesCreditor ID
casestringYes*Case ID to register payment for (mutually exclusive with invoice_number)
invoice_numberstringYes*Invoice number to resolve case (mutually exclusive with case)
currencystringYesCurrency code (currently only "SEK" supported)
amountnumberYesPayment amount
bank_transaction_datestringYesDate of the bank transaction (RFC 1123 format)
client_registration_datestringNoWhen payment was registered (RFC 1123 format, defaults to current timestamp)
creditor_payment_referencestringNoReference for payment tracking
file_import_reportstringNo**File import report ID (readonly, set by system during file imports)
originstringYesOrigin of request (must be "creditor_system")***

Response Properties

PropertyTypeRequiredDescription
_idstringYesUnique identifier for the payment
_createdstringYesCreation timestamp (RFC 1123 format)
_updatedstringYesLast update timestamp (RFC 1123 format)
_etagstringYesEntity tag for concurrency control
_statusstringYesRequest status (e.g. "OK")***
_payment_statusstringYesPayment process status (e.g. "completed")***
settled_amountnumberNoThe amount that was actually settled
statusstringNoProcessing status: "completed", "warning", or "error"
status_reason_localestringNoLocale key for status reason message
case_invoice_numberstringNoInvoice number from the case (projection, not same as input field)
case_reference_numberstringNoCase reference number
booking_datestringNoDate when payment was settled (RFC 1123 format)

*) Either case OR invoice_number must be provided, but not both

**) Readonly fields automatically set by the system

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