to get a personalized navigation.
to get a personalized navigation.
Hi,
We have an issue with updating the PaymentMethodId, AccountUsedForPayment and the SupplierPaymentMethodDetails. As an example we have a supplier that already has PaymentMethodId = 01, AccountUsedForPayment = Bank transfer (Bankgiro in swedish) and a giro number in the payment method details. If we then try to update this supplier with a new PaymentMethodId, lets say 04, and AccountUsedForPayment to IBAN and set new SupplierPaymentMethodDetails, we get an error saying that the giro number doesn't exist. Why do we get this error and shouldn't it be possible to change all this information at once?
Solved! Go to Solution.
Hello,
since updating the payment method forces "PaymentMethod-ScreenId=CA204000" related fields to be updated accordingly in the Supplier Card(as it can be seen in the UI), we should first update the Payment Method, then we can set the value of the connected SupplierPaymentDetails in the consecutive PUT request.
1) PUT
{
"paymentMethodId": {
"value": "01"
},
"cashAccount": {
"value": "1930"
},
"accountUsedForPayment": {
"value": "BANKGIRO"
},
"attributeLines": [
{
"attributeId": {
"value": "MOMSKAT"
},
"attributeValue": {
"value": "40"
}
}
]
}
2) PUT - SupplierPaymentMethodDetails
{
"supplierPaymentMethodDetails": [{
"paymentMethodDetailDescription": "BANKGIRO",
"paymentMethodDetailValue": {
"value": "1234-1234"
}
}]
}
Hi,
This is an example of how the request can look lite that we send to visma:
Hello,
please share the used JSON and specify the transaction steps (if there are any additional requests), so we can check the scenario to be able to confirm whether there is any issue.
Thanks.
Copyright © 2022 Visma.com. All rights reserved.