Post Affiliate Pro API

 

Post Affiliate Pro application work on two levels:

  • client – AJAX application running on browser

  • server – PHP based back end

 

The client communicates with a server using requests and responses encoded in JSON format.

Because of this, the application natively supports API. Everything that you can control in merchant or affiliate control panel, you can also access from an external application using the same API calls.

 

This includes retrieving, editing, adding affiliates, banners, campaigns, transactions, setting configuration, getting statistics data, etc. for both merchants and affiliates.

 

There are three API layers:

 

Communication level

requests and responses are in raw JSON format

Low level API

calls of Gpf_Rpc_GridRequest, Gpf_Rpc_FormRequest

High level API

objects like Pap_Api_Affiliate, Pap_Api_Commission

 

 

Requirements for using API classes can be found here.

 

Please note that all dates you receive (and send) through API are in server timezone (Post Affiliate Pro uses 'America/Los_Angeles' timezone by default). Dates that are displayed in merchant and affiliate panel are shifted into client timezone. Read more here.

×