My Products
Help

POST supplierPayment : Make supplierpayment in a specific branch

by Roland van Belle - Consolit

We try to post a supplierpayment in a specific branch. After posting, the payment is available in Visma.net, but not in the branch we put in our message.

 

{ "type": {
"value": "Payment"
},
"branch": {
"value": "0130"
},
"hold": {
"value": true
},
"applicationDate": {
"value": "2022-09-01T12:05:46.342Z"
},
"applicationPeriod": {
"value": "202209"
},
"supplier": {
"value": "313091"
},
"paymentMethod": {
"value": "9"
},
"cashAccount": {
"value": "VRF0130"
},
"currency": {
"value": "EUR"
},
"description": {
"value": "Vereffening 22703488W"
},
"paymentAmount": {
"value": 0
},
"paymentLines": [
{
"operation": "Insert",
"documentType": {
"value": "Invoice"
},
"branch": {
"value": "0130"
},
"refNbr": {
"value": "22703488W"
},
"amountPaid": {
"value": 20.91
},
"cashDiscountTaken": {
"value": 0
},
"crossRate": {
"value": 1
}
},
{
"operation": "Insert",
"documentType": {
"value": "DebitAdj"
},
"branch": {
"value": "0130"
},
"refNbr": {
"value": "22703488W"
},
"amountPaid": {
"value": 20.91
},
"cashDiscountTaken": {
"value": 0
},
"crossRate": {
"value": 1
}
}
]
}

 

RolandvanBelleConsolit_0-1662373237303.png

How can we post the supplierpayment in the branch we need?

 

We already tried branch and branchNumber, but it did not work out as we expect.

 

5 REPLIES 5
Yıldırım
VISMA

by Yıldırım

Hello,

Information about the Endpoint DTOs  & Exposed fields can be found at https://integration.visma.net/API-index/ > Endpoint > Model Section

Visma.net Integrations Documentation.jpg 

by Magnus Johnsen (Updated ‎05-09-2022 13:23 by Magnus Johnsen VISMA )

Hi,

This field is currently not exposed via the supplierPayment endpoint.

By default, the branch is set according to the cash account on the invoice. 

If this is a functionality you need, we recommend that you create a post under the Ideas part of the forum. 

Thank you for your quick reply on my post.

 

I don't think it's a new feature (Idea), but it's a bug. When a user now works with branches, we cannot use the API function for posting supplierpayments. It's a function in Visma.net, which is missing in the API.

 

Can you please make a case for this bug?

Hi,

As it is not a field that is exposed a not working, it will not be considered a bug. It's a new field that needs to be exposed via the API which means it will be treated as a wish for improvement and not a bug. 

If there is an issue with how the value for the branch associated with the cash account set on the invoice is handled, it would be a bug case.  

Hi,

I understand. But we can not book a supplierpayment when a customer use branches.

 

We are investigating another solution for this case. For now I will close this post.