
Can You Execute a Callback from Post Affiliate Pro? Complete Guide to Callback URLs
Learn how to execute callbacks in Post Affiliate Pro. Discover callback URL setup, configuration, security best practices, and real-world use cases for automati...

Post Affiliate Pro’s webhooks and callbacks feature allows you to automatically notify external systems when specific events occur, such as new sales, affiliate signups, or commission approvals.
Available in:
Post Affiliate Pro , Post Affiliate Pro Ultimate , Post Affiliate Network
Webhooks (also called Application Callbacks or Postback URLs) are automated HTTP notifications that Post Affiliate Pro sends to external systems when specific events occur. Instead of constantly polling for updates, your connected systems receive instant notifications the moment something happens in your affiliate program.
This feature is essential for:
Post Affiliate Pro supports two main types of webhooks:
These webhooks are triggered by transaction-related events:
| Trigger Event | Description |
|---|---|
| On Create | Fires immediately when a new transaction (sale, action, lead) is recorded |
| On Approve | Fires when a pending transaction is approved |
| On Decline | Fires when a transaction is declined |
| On Refund/Chargeback | Fires when a refund or chargeback is processed |
You can configure a single webhook to fire on multiple events, or create separate webhooks for each event type.
These webhooks are triggered by affiliate registration events:
| Trigger Event | Description |
|---|---|
| On Register | Fires immediately when a new affiliate completes the signup form |
| On Approve | Fires when a pending affiliate is approved by a merchant |
Post Affiliate Pro supports three HTTP request types for webhooks:
Parameters are appended to the URL as query string parameters.
https://your-system.com/webhook?transactionid=abc123&commission=50.00&orderid=ORD-456
Parameters are sent in the request body using standard form encoding.
Content-Type: application/x-www-form-urlencoded
transactionid=abc123&commission=50.00&orderid=ORD-456
Parameters are sent as a JSON object in the request body.
Content-Type: application/json
{"transactionid": "abc123", "commission": "50.00", "orderid": "ORD-456"}
You can use dynamic variables in your webhook URLs that are automatically replaced with actual values. Use the format ${#variablename#} to include a variable.
| Variable | Description |
|---|---|
${#transactionid#} | Unique transaction identifier |
${#visitorid#} | Visitor ID (tracking cookie) |
${#commission#} | Commission amount |
${#totalcost#} | Total order value |
${#fixedcost#} | Fixed cost amount |
${#orderid#} | Order ID from your e-commerce system |
${#productid#} | Product ID |
${#dateinserted#} | Date and time the transaction was created |
${#dateapproved#} | Date and time the transaction was approved |
${#tier#} | Commission tier level |
${#status#} | Transaction status (Approved, Pending, Declined) |
${#statuscode#} | Status code (A, P, D) |
${#type#} | Transaction type (Sale, Action, etc.) |
| Variable | Description |
|---|---|
${#campaignid#} | Campaign identifier |
${#campaignname#} | Campaign name |
${#bannerid#} | Banner identifier |
${#channel#} | Channel name |
${#channel_code#} | Channel code |
${#coupon_code#} | Coupon code used |
| Variable | Description |
|---|---|
${#userid#} | Affiliate user ID |
${#refid#} | Affiliate referral ID |
| Variable | Description |
|---|---|
${#firstclicktime#} | First click timestamp |
${#firstclickreferer#} | First click referrer URL |
${#firstclickip#} | First click IP address |
${#firstclickdata1#} | First click custom data 1 |
${#firstclickdata2#} | First click custom data 2 |
${#lastclicktime#} | Last click timestamp |
${#lastclickreferer#} | Last click referrer URL |
${#lastclickip#} | Last click IP address |
${#lastclickdata1#} | Last click custom data 1 |
${#lastclickdata2#} | Last click custom data 2 |
| Variable | Description |
|---|---|
${#saledata1#} | Transaction custom data field 1 |
${#saledata2#} | Transaction custom data field 2 |
${#saledata3#} | Transaction custom data field 3 |
${#saledata4#} | Transaction custom data field 4 |
${#saledata5#} | Transaction custom data field 5 |
| Variable | Description |
|---|---|
${#ip#} | IP address of the customer |
${#countrycode#} | Country code based on IP |
${#refererurl#} | Referrer URL |
| Variable | Description |
|---|---|
${#originalcurrency#} | Original currency name |
${#originalcurrencyvalue#} | Original currency value |
${#originalcurrencyrate#} | Exchange rate used |
| Variable | Description |
|---|---|
${#merchantnote#} | Note visible to affiliate |
${#systemnote#} | Note visible to merchant only |
${#actionName#} | Action commission type name |
${#actionCode#} | Action commission type code |
For affiliate signup webhooks, you can use affiliate profile variables:
| Variable | Description |
|---|---|
${#username#} | Affiliate email/username |
${#firstname#} | Affiliate first name |
${#lastname#} | Affiliate last name |
${#name#} | Full name (first + last) |
${#userId#} | Affiliate user ID |
| Custom fields | Any custom profile field by its code |
By default, webhooks are executed only for tier 1 (direct) commissions. You can enable the “Execute for each tier” option to trigger webhooks for all tier levels in multi-tier commission structures.
This is useful when:
You can configure webhooks to be more specific:
Limit the webhook to a specific commission type (e.g., only for “Premium Sales” action commissions).
Create webhooks that only fire for a specific affiliate. This is useful for:
In Post Affiliate Network, you can create account-specific webhooks.
Post Affiliate Pro maintains a comprehensive log of all webhook executions, accessible in the merchant panel under Tools > Callbacks Log.
The log shows:
If a webhook fails (e.g., your server is temporarily unavailable), Post Affiliate Pro will automatically retry the request. This ensures reliable delivery even during temporary outages.
Webhook logs are automatically cleaned up after a configurable number of days (default: 60 days). You can adjust this in Configuration > Features > Application Callbacks.
By default, webhooks created by affiliates require merchant approval before they become active. Merchants can:
Webhooks have three possible statuses:
Merchants can change webhook status at any time from the webhooks management screen.
Post Affiliate Pro can send email notifications for webhook-related events:
These notifications can be enabled or disabled in Configuration > Email Notifications.
Send new sale data to your CRM when a transaction is approved:
https://crm.example.com/api/sales?customer_order=${#orderid#}&value=${#totalcost#}&affiliate=${#refid#}
Notify your team channel when a new affiliate signs up:
https://hooks.slack.com/services/xxx/yyy?text=New+affiliate:+${#firstname#}+${#lastname#}
Add customers to an email sequence after purchase:
POST https://email.example.com/api/subscribers
Body: {"email": "${#saledata1#}", "purchase_value": "${#totalcost#}"}
Record commission payments in your accounting system:
https://accounting.example.com/webhook?affiliate_id=${#userid#}&commission=${#commission#}&order=${#orderid#}
Webhooks (also called Application Callbacks) are HTTP requests that Post Affiliate Pro automatically sends to a URL you specify when certain events occur, such as a new sale, commission approval, or affiliate signup. This allows you to integrate with external systems in real-time.
Webhooks can be triggered by: new transaction creation, transaction approval, transaction decline, refunds and chargebacks, new affiliate registration, and affiliate approval. You can configure different URLs for different events.
You can include any transaction or affiliate data using dynamic variables. For sales webhooks, you can use over 40 variables including transaction ID, commission, order ID, product ID, affiliate ID, campaign name, and custom data fields. For signup webhooks, you can include affiliate details like name, email, and custom profile fields.
Yes, Post Affiliate Pro supports GET, POST (form-urlencoded), and POST JSON request types. You can choose the format that best fits your receiving system's requirements.
Connect Post Affiliate Pro to your CRM, email platform, or any external system with powerful webhooks and callbacks. Get real-time notifications for every important event.

Learn how to execute callbacks in Post Affiliate Pro. Discover callback URL setup, configuration, security best practices, and real-world use cases for automati...

Learn how Application Callbacks work in Post Affiliate Pro. Discover customizable event triggers for sales, leads, and affiliate signups with seamless external ...

Post Affiliate Pro integrates with 200+ platforms including payment gateways, e-commerce systems, CRM tools, and marketing automation platforms. Track sales aut...
Cookie Consent
We use cookies to enhance your browsing experience and analyze our traffic. See our privacy policy.