[Preview] Create a supplier invoice payment

Register a payment on a recorded supplier invoice. The payment is booked immediately as a journal entry. The supplier invoice must be recorded (have a journalEntryRef) before a payment can be added.

Scope: supplier-invoices:write

Path Params
uuid
required

Unique identifier of the company

uuid
required

Unique identifier of the supplier invoice

Body Params

The payment to register on the supplier invoice.

string
enum
required

The direction of the payment.

  • payment is money paid to the supplier.

  • refund is money received back from the supplier.

Allowed:
date
required

The date the payment was made.

double
required
> 0

The amount of the payment in the base currency. Currently the base currency is always SEK.

int32
Defaults to 1930

The account number the money was paid from. Must match an account that exists in the chart of accounts. Defaults to 1930.

string
enum

How to handle the difference between the payment and the remaining amount of the supplier invoice.
Required when the payment does not settle the invoice exactly (there is a difference). Must be omitted when there is no difference.

  • leaveOpen keeps the invoice open for the remaining amount.

  • currencyWinOrLoss books the difference as a currency gain or loss and closes the invoice.

  • roundedOffCurrency books the difference as an ƶre rounding and closes the invoice.

  • reminderFee books an overpayment as a reminder fee and closes the invoice. Only valid when the invoice is overpaid after the payment or refund.

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json