Skip to content

Create Payment of sales invoice



NOTE

V2 should be used when the payment is not in local currency

Endpoints v1

https://app.passelimerit.fi/api/v1/sendpayment

Query Payload

json
{ 
  "BankId": "93f8d710-d0d2-4e9c-8c66-c2f669a1885d",
  "IBAN": "FI32 3623 6540 0065 56", 
  "CustomerName": "FirstCustomer Inc", 
  "InvoiceNo": "123",
  "RefNo": "1232", 
  "PaymentDate":"20240529", 
  "Amount": "2000.00" 
}
Click to see the query parameters
FieldTypeCommentRequired
BankIdGuid
IBANStr 50Must match with one of the payment methods in the database
CustomerNameStr 150Required
InvoiceNoStr 35Required
RefNoStr 36Required
PaymentDateDate
AmountDecimal 18.2

Endpoints v2

https://app.passelimerit.fi/api/v2/sendpayment

Query Payload

json
{
  "BankId": "93f8d710-d0d2-4e9c-8c66-c2f669a1885d",
  "IBAN": "FI32 3623 6540 0065 56",
  "CustomerName": "FirstCustomer Inc",
  "InvoiceNo": "123",
  "RefNo": "1232",
  "PaymentDate": "20240529",
  "Amount": "2000.00",
  "CurrencyCode": "EUR",
  "CurrencyRate": "1.0000000"
}
Click to see the query parameters
FieldTypeCommentRequired
BankIdGuid
IBANStr 50Must match with one of the payment methods in the database
CustomerNameStr 150Required
InvoiceNoStr 35Required
RefNoStr 36Required
PaymentDateDate
AmountDecimal 18.2
CurrencyCodeStrRequired if not local currency
CurrencyRateDecimal 18.7If the exchange rate is not included, we will take it from the EU central bank's request for the respective date

Successful Result

json
{
  "CustomerId": "7da4cd44-9b49-4a35-8d1b-f339a68e7058",
  "InvoiceId": "4878a49b-6e41-480f-b881-6e522aa1eca1",
  "InvoiceNo": "12",
  "RefNo": "",
  "NewCustomer": null
}

IMPORTANT

  • There must be invoice with that customer.
  • This purchase invoice has to be not paid yet, you can only pay the full amount.
  • Sales invoice payment can be sent in several parts.
  • Subsequent payment can only be made as a cash or bank payment. In the case of a bank, the IBAN must be provided. If there is no IBAN, the payment is placed at the cash register.