v1

latestOpenAPI 3.0.32026-07-26208618579.9 KB
Create transactions

Post payment to given invoice

Creates a payment transaction that is allocated to the specified invoice.

Transaction type is derived:

  • CPT if invoice is in collection
  • PT otherwise

Note: The additionalInfo.paymentReference field is prohibited in this request.

post/v3/invoice/{invoiceId}/payment

Path parameters

invoiceIdstring biginteger required

Invoice id to allocate the payment to

Query parameters

auditUserstring required

The audit user to log the request

Request body

amountnumber required

Transaction amount. It is possible to post only amount which is equal or more than minimal currency unit (For example, for EUR, SEK, NOK minimal unit is 0,01)

currencystring required

A valid ISO 4217 currency code

textstring

Free input text

transactionDetailsstring

Merchant name

datestring date

The date when transaction was posted at Enfuce in ISO-8601 date format (YYYY-MM-DD). Only one of date or postingDate can be used at a time. This field will always post a transaction even if this date is not valid.

postingDatestring date

The date when transaction was posted at Enfuce in ISO-8601 date format (YYYY-MM-DD). Only one of date or postingDate can be used at a time. When using this field an exception will be thrown if posting date is not valid. For a postingDate to be valid, it must be no later than the due date of the account's contract.

transactionDatestring date

The local date when the transaction was made in ISO-8601 date format (YYYY-MM-DD).

Example request

{
  "currency": "EUR"
}

Response

Successful creation of payment transaction allocated to invoice

descriptionstring

Short description of the result of the action

idstring

Will contain the ID of the resource that has been created or updated