Jump to content

External API function not working as expected - price override twice


JinVan

Recommended Posts

I want to use the External API function - 'Add Order' to create a order, additionally, use a promocode to override the price of the product . As expected, it will create a order with the override price . But Actually , it create a order and override the price both product and domain. I only want to override the price of product.

It works fine with the WHMCS, but it get wrong with my own website.

I forget some parameters ? or I use the API in a wrong way?

anyone can help me?

 

The Add Order function parameters like this:

username=xxx

password=xxx

responstype=json

action=addorder

clientid=x

pid=x

paymentmethod=paypal

billingcycle=annually

domain=xxx.com

domaintype=register

regperiod=1

dnsmanagement=on

idprotection=on

promocode=xxxx

 

The promocode settings like this:

Promotion Code=xxxx

Type=Price Override

Value=100

Applies To=xxx(only applies to my product)

Billing Cycles=Annually(for Products/Services)/10 Years(for Domains because I don't want it applies to the domains registered one year)

Apply Once=checked

other setting is default

 

And I set the product to offer a free domain registration/transfer only (renew as normal),

and set the price of ID Protection to $30

 

So, the right result is : I buy a product with a price of $300, choose a domain(free) and its ID Protection of $30, at the admin area, I will see a order which has a product of $100 and a free domain and ID Protection of $30 ,the total amount will be $130, but I get the total amount of $200, seems that it price override twice.

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