Skip to main content
Solved

API exception message when updating customer shipping branch

  • October 7, 2023
  • 1 reply
  • 134 views

Hello.

I’m trying to update a Customer through a PUT request to the REST API, using v2022 R2. At some point of my body request I have the following code to update the ShippingBranch:

{
...

"RestrictVisibilityTo": {
"value": "GROUPE"
},
"ShippingBranch": {
"value": "OUTREMER"
},

...
}

This request is returning the exception

	"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "Do you want to keep the value in the Shipping Branch box?",
"exceptionType": "PX.Data.PXException",
"stackTrace": null
}

Am I missing any property in my request to confirm that I really want to update or override the Shipping Branch?

What am I doing wrong?

Thanks.

Best answer by Django

You might have to add code as per this thread to know if the caller is using the API or not:

 

1 reply

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • October 7, 2023

You might have to add code as per this thread to know if the caller is using the API or not: