-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi Billdu,
when creating a client the following payload sent via POST request works without any issue:
{
"company": "ACME Ltd.",
"street": "1st Avenue",
"street2": "",
"zip": "",
"city": "New York",
"province": "New York",
"country": "US",
"shippingCompany": "",
"shippingStreet": "",
"shippingStreet2": "",
"shippingZip": "",
"shippingCity": "",
"shippingProvince": "",
"shippingCountry": "",
"phone": "+555555555",
"mobil": "+5555550000",
"fax": "",
"web": "example.com",
"note": "",
"email": "acme@example.com",
"companyId": "",
"vatId": "",
"taxId": "US13456789"
}
However, updating using PATCH request only works for following properties:
{
"company": "ACME Ltd.",
"street": "1st Avenue",
"zip": "",
"city": "New York",
"province": "New York",
"country": "US",
"phone": "+555555555",
"mobil": "+5555550000",
"fax": "",
"web": "example.com",
"note": "",
"email": "acme@example.com",
"companyId": "",
"vatId": "",
"taxId": "US13456789"
}
trying to update any of the following properties will trigger a 500 response:
{
"street2": "",
"shippingCompany": "",
"shippingStreet": "",
"shippingStreet2": "",
"shippingZip": "",
"shippingCity": "",
"shippingProvince": "",
"shippingCountry": ""
}
error message (example for "street2"):
"message":"MF\\Json\\ValidationException:property []: The property street2 is not defined and the definition does not allow additional properties"
Unfortunately I didn't find a part related to updating a client in the API documentation. Is updating a client via API supported functionality?
Metadata
Metadata
Assignees
Labels
No labels