Once you have your offers set up, it is a good idea to test them. The process is different for affiliate links compared to iframe or API.
Testing Affiliate Links
To test affiliate links, go to the offer and click on Preview Offer. In the Link tab, choose the affiliate for whom you want to generate the unique link (you can select the default one). Once selected, open the generated affiliate link. This action will create a click. Each click generates a pcid, which is a unique identifier for that specific click. You can find this ID in the URL (if the advertiser does not hide it) or in the click logs.
On the destination website, you usually need to complete an action. For example, submitting a lead form or making a purchase. This is necessary to trigger the event and create a lead or purchase entry in the advertiser’s CRM. At that point, the advertiser should fire a pixel or a postback that includes this conversion, usually with a Pending result. The transaction will appear in your system as Pending if it matches the defined commission conditions.
To test the full flow, you can ask the advertiser to:
- Fire a postback with the status Approved
- Then fire the same postback again, but with the status Rejected
The transaction should first change from Pending to Approved, then from Approved to Rejected. This way, you confirm that all three states (Pending, Approved, and Rejected) are handled correctly.
Testing iFrame
To test iframe, go to the offer and click on Preview Offer. In the iframe tab, choose the affiliate for whom you want to generate the unique iframe (you can select the default one). Once selected, copy the iframe code and embed the form on one of your websites. Open the page, fill out the form, and click the submit button. This action will create a lead. Each lead generates a pcid, which is a unique identifier for that specific lead. You can find this ID in the lead logs.
After submitting the form, you may see some processing and possibly land on the advertiser’s website to complete the flow. Once the lead is accepted, it should create a corresponding entry in the advertiser’s CRM. At this point, the advertiser can fire a postback with this conversion, usually with a Pending status. If the postback matches the defined commission conditions, a transaction will be created in your system with the result Pending.
However, a better setup is to configure the commission rule to create the transaction immediately after the lead is accepted by the advertiser. This way, no pending postback is required.
To test the full process, you can ask the advertiser to:
- Fire a postback with the status Approved
- Then fire the same postback again with the status Rejected
The transaction should first change from Pending to Approved, and then from Approved to Rejected. This confirms that all three statuses (Pending, Approved, and Rejected) are handled properly.
Testing API
To test api, go to the offer and click on Preview Offer. In the api tab, choose the affiliate for whom you want to get API token (you can select the default one). Once selected, copy the endpoint URL. Open Postman or any other API testing tool and prepare the request based on the API documentation provided in the offer. Submitting the request will create a lead.
You can review the API response and follow the URL returned to continue the process. The rest of the flow is the same as with iframe testing.