Callback URLs

CALLBACK URLS

The new REST API also supports callback URLs for 2 operations : 1) Place Order and 2) Query Pricing. This allows our channel partners to take it to the next level and recruit additional channel partners under them. It also gives them full freedom to manage their own billing and at the same time, enjoy wide and comprehensive support for TheSSLStore.com Plug-in investments.

General Flow for callback URLs is like this:

 
 
 
This allows you in:

  • Query Pricing: Return the Pricing set by you to your resellers/partners

  • Place Order:Bill your reseller and control whether to allow the order to go through or not depending on your own pricing concerns as well as doing things like charging your resellers’ credit card etc.All in all, this opens up whole new possibilities for you to take your SSL products one step further.



Order Callback
If you have set a callback URL (non-empty string), for any new orders/invite order requests by your sub-users, your URL will get callback, with access to all the fields in the Form collection. Your URL will receive a POST request, with all the data in the request. We expect that you return only “TRUE” or “FALSE” in the response to approve or reject the order, respectively.


Pricing Callback
Just like Order Callback, you get your callback on any price related queries with access to your custom Sub-User code, so you can keep track of their pricing and what to return. In this callback we expect that you return the same JSON that we return so we can proceed with the call replacing important fields.



Cancel Notification
If you have set a cancel notification URL (non-empty string), for refund request of order by your sub-users, your URL will get callback, with access to all the fields in the Form collection. Your URL will receive a POST request, with all the data in the request. We expect that you return only “TRUE” or “FALSE” in the response to approve or reject the order, respectively.