Jump to content

How can I refer to a custom field in GetProducts API request?


rocconeri

Recommended Posts

Hi all,

I have the GetProduct query that look like this

 

http_build_query(

array(

'action' => 'GetClientsProducts',

// See https://developers.whmcs.com/api/authentication

'username' => $api_identifier,

'password' => $api_secret,

'clientid' => '111',

'responsetype' => 'json',

 

 

but instead client id I would like to query with a customfield. How can I do it?

Thanks.

Link to comment
Share on other sites

  • WHMCS Developer

It isn't possible to query this API command via a custom field.

 

As detailed on http://developers.whmcs.com/api-reference/getclientsproducts/ you can only use the following to filter the results from the api call:

 

* clientid

* serviceid

* pid

* domain

* username2

 

You would need to loop through the results returned to find the appropriate value based on your custom field.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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