Hi guys,
Thank you for the quick responses.
@Tyson: I am using the API SDK and integrating it with Drupal 7.
This is a snippet of my code:
$api = new BlestaApi($url, $user, $key);
$params = array(
...
);
$response = $api->post("clients", "create", $params);
//dsm($response->response());
dsm($response->errors());
This is the output of $response->errors() in Krumo Debug:
(Object) stdClass
error (Object) stdClass
message
(String, 28 characters ) An unexpected error occured.
response
(String, 25 characters ) Parameter is not optional
As you can see, neither the error nor the response hints at what field is missing. In big models with dozens of fields this is a huge hurdle.