cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Business Partner Address Update Error

gigic31
Discoverer
0 Kudos

I'm having 400 Bad Request error when I tried to update a Business Partner's billing address. But it worked for Inserting new Business Partner. Here is a sample request

PATCH  /b1s/v1/BusinessPartners('AC03201')

{

"BPAddresses": [
{
"AddressName": "Test Imaging Site 4",
"Street": "94 Forest Manor Road",
"ZipCode": "M2J 0E5",
"City": "Toronto",
"Country": "CA",
"State": "ON",
"AddressType": "bo_BillTo",
"BPCode": "AC03201",
"RowNum": 0
}
]

}

 

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Can you share a screenshot showing the full request, response and the error message?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Accepted Solutions (1)

Accepted Solutions (1)

gigic31
Discoverer
0 Kudos

 

{
  "CardCode": "AC03201",
  "CardName": "Test 4",
  "Valid": "tNO",
  "BPAddresses": [
    {
      "AddressName": "Test Imaging Site 4",
      "Street": "88 Forest Manor Road",
      "ZipCode": "M2J 0E5",
      "City": "Toronto",
      "Country": "CA",
      "State": "ON",
      "AddressType": "bo_BillTo",
      "BPCode": "AC03201",
      "RowNum": 0
    }
  ]
}

 

HTTP PATCH on resource '/b1s/v1/BusinessPartners('AC03201')' failed: bad request (400).

Edit: Figured out the issue, when Valid is No, the Frozen field needs to be set as well

Answers (0)