Jump to content

API Update Client Reports Success but fails and returns empty clientid


Recommended Posts

While doing what seems like a straightforward client update external API call, the response is returned as successful but nothing is changed in the system. The response also returned the client id as null.

 

Example Request Query: (I'm using guzzle to post)

array (size=1)
 'query' => 
   array (size=
     'username' => string 'xxx' (length=
     'password' => string 'xxx' (length=32)
     'responsetype' => string 'json' (length=4)
     'action' => string 'updateclient' (length=12)
     'clientid' => int 1266
     'firstname' => string 'Test' (length=7)

 

object(stdClass)[113]
 public 'result' => string 'success' (length=7)
 public 'clientid' => null

 

Just as a test I removed the clientid from the post fields and I get the expected error:

 

object(stdClass)[113]
 public 'result' => string 'error' (length=5)
 public 'message' => string 'Client ID Not Found' (length=19)

 

So is there any undocumented restricts to updating client details or is this a bug?

Link to comment
Share on other sites

Hello,

 

I wrote a simple API script to reproduce this and was unable to reproduce the error. Can you open a support ticket so our team will be able to investigate your particular installation and move this to a reproducible state that our dev team can resolve.

 

Have a great day,

 

Nate C

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated