to get a personalized navigation.
to get a personalized navigation.
Hi!
We have an integration that creates salesorders in Visma from a webshop. In some cases we want the billing and deliveryadress to be different than the one on the customer in Visma.net and for that we were thinking of using the "overrideAdress" boolean to on those salesorders put a different adress.
We are using the /controller/api/v2/customerinvoice endpoint and we are having problems with this section:
"soShippingAddress": {
"value": {
"overrideAddress": {
"value": true
},
We should be able to use the overrideAddress to tick the box in teh UI that lets us put in a new adress. When I do it manually in the UI it works fine but no matter if I put true/false in my API call nothing happens on the salesOrder when I create it through the API. I have attached the different calls that I have tried but I get the same result every time: the order is created but the box for overriding the adress unchecked. The difference in the calls is what information I have in this section:
"soShippingAddress": {
"addressId": 0,
"overrideAddress": {
"value": true
},
Is there anything else than true/false I need to use for it to be correct?
Thanks in advance!
/Frida
@Anonymous wrote:We are using the /controller/api/v2/customerinvoice endpoint and we are having problems with this section:
"soShippingAddress": { "value": { "overrideAddress": { "value": true }
The section you've shared in the printscreen (Sales Order > Financials Settings >Invoice Address) is corresponding with
{
"soBillingAddress": {
"value": {
"overrideAddress": {
"value": true
},
"addressLine1": {
"value": "override address API"
},
"postalCode": {
"value": "2600"
},
"city": {
"value": "Glostrup"
},
"countryId": {
"value": "DK"
}
}
},
"orderType": {
"value": "SO"
},
"date": {
"value": "2021-04-26"
},
"customerOrder": {
"value": "81327435"
},
"customerRefNo": {
"value": "Epay:217110470"
},
"customer": {
"value": "10023"
}
}
Copyright © 2022 Visma.com. All rights reserved.