Jump to content

AddOrder API returns success but order data is blank


Vander Host

Recommended Posts

I have a very simple implementation of the WHMCS AddOrder API. I'm simply to add a product (ID #1) which is shared hosting and everything else is pretty much on default. 

But order data doesn't pull through and is blank.

The data I'm sending is this:

array (
  'clientid' => 1,
  'paymentmethod' => 'banktransfer',
  'pid' => 
  array (
    0 => 1,
  ),
  'domain' => 
  array (
    0 => 'siliconebands.co.za',
  ),
  'priceoverride' => '138',
  'noinvoice' => true,
  'noemail' => true,
)  

The result I'm getting back is this:

array (
  'result' => 'success',
  'orderid' => 20,
  'productids' => '',
  'serviceids' => '',
  'addonids' => '',
  'domainids' => '',
)

But have a look at this screenshot. There is no data in the order. It's empty. It's blank. Where is the product? And the price?

 

Screenshot from 2020-11-21 16-57-20.png

Link to comment
Share on other sites

  • 1 year later...

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