My Products
Help

Add SupplierPayment in USD to SupplierInvoice in USD

by Gert-Jan van der Kamp

Hi all,

 

A client wants to have their expenses and payment synced in original currency. 

 

I created a supplierinvoice for 20 USD, but when I want to add a supplierPayment for 20 USD and link that to the si I just created I get this error: 

"Error: HTTP 400 : BadRequest\r\n{\"message\":\"Error creating payment. Customer error: The entry must be less than or equal to 17.58.\"}"

Where that 17.58 is the 20 USD converted to EUR by Visma. 

 

Here is my call, there is no currency field on SupplierPaymentAdjustmentUpdateDto so how should I create this payment? 

 

POST https://integration.visma.net/API/controller/api/v1/supplierpayment

{
"type": {
"value": "Payment"
},
"overrideNumberSeries": {
"value": true
},
"hold": {
"value": false
},
"applicationDate": {
"value": "2024-10-21T00:00:00Z"
},
"supplier": {
"value": 30016
},
"paymentMethod": {
"value": "8"
},
"cashAccount": {
"value": "20080"
},
"currency": {
"value": "USD"
},
"description": {
"value": "OPENAI *CHATGPT SUBSCR \\ HTTPSOPENAI.C US"
},
"paymentAmount": {
"value": 20
},
"branch": {
"value": "1"
},
"paymentLines": [
{
"operation": "Insert",
"documentType": {
"value": "Invoice"
},
"refNbr": {
"value": "200448"
},
"amountPaid": {
"value": 20
}
}
]
}

1 REPLY 1
Marten Voort
VISMA

by Marten Voort (Updated ‎25-11-2024 15:58 by Marten Voort VISMA )

Hi Gert-Jan, for a given bank account you can only use the currency set in that account. In your request I see cash account 20080. The application currency will always be in the currency of this cash account. In the UI this field is not editable. Can you check what the currency is?