API:setOrderReferrer - Assign affiliate to an order

Change affiliate assignment, this will add commissions for this order to affiliate account.

Required parameters

id
Order ID
referral
Affiliate ID

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=setOrderReferrer&id=ID&referral=AFFILIATE_ID

Response

   {
      "success": true,
      "call": "setOrderReferrer",
      "server_time": 1481294453,
      "info": [
         "order_marked_referred"
      ]
   }