Tracking conversions with PerfectPay
PerfectPay is not a built-in checkout in AtomicPlayer revenue tracking. The Checkout list has AtomicPay, Hotmart, Kiwify, Cartpanda, Stripe, and Custom. To attribute PerfectPay sales to videos, connect Custom and send each sale to AtomicPlayer in the Custom JSON format from a server or automation you control. Revenue tracking is available on Standard and Scale.
Connect a Custom checkout
- Open Integrations & APIs → Revenue.
- In Checkout, choose Custom.
- In Parameter, choose the parameter that PerfectPay passes back to you with the sale:
src,sck,xcode,xcod,sid,subid,vtid, orsub1. Check PerfectPay's own documentation for which one it keeps. - In Checkout domain, enter the domain of your PerfectPay buy links, without
https://or a path. - Select Connect and copy the webhook URL. It contains a secret token. Treat it like a password.
![]()
Send each sale to the webhook
When a viewer clicks a buy link on that domain, the player writes a click key that starts with ap1_ into the parameter. When PerfectPay tells your server about the sale, read that value and POST this JSON to the webhook URL:
{
"order_id": "order_123",
"order_amount_cents": 9700,
"currency": "USD",
"conversion_key": "ap1_click_key_from_the_buy_link",
"product_name": "Course",
"category": "initial_sale",
"occurred_at": "2026-09-28T12:00:00Z"
}
order_id,order_amount_cents, andconversion_keyare required for a sale to count.order_amount_centsis an integer in minor units, so9700is 97.00.- Always send
currencyas a three-letter code. Without it, the amount is read as BRL. conversion_keyis the click key from the buy link.categoryis optional. Userefundorchargebackwith the sameorder_idto take a sale out of revenue.upsellandsubscription_renewallabel the sale type.
AtomicPlayer does not read the native PerfectPay notification format. Sending PerfectPay's own notification straight to the webhook URL does not record the sale.
Limits
- A workspace can connect each checkout once, and that includes Custom. The dashboard saves one checkout domain for it.
- With the JavaScript embed, the player also rewrites matching buy links on the page around the player. With the iframe embed, only buttons inside the player are tracked.
- A click key stays valid for 30 days. A sale with a missing, unknown, or expired key is listed under Recent orders but left out of revenue.
- Select Send test sale on the card to check the setup, then Remove test.
CTA click webhooks
The conversion.fired event in Integrations & APIs → Webhooks fires when a viewer clicks a player CTA. It carries button metadata only, with no amount. You can use it as a click signal in your own system, but it does not record a sale.
Related docs
Frequently asked questions
Is there a built-in PerfectPay connector?
No. The built-in checkouts are AtomicPay, Hotmart, Kiwify, Cartpanda, and Stripe. Use Custom for PerfectPay.
Can I paste the AtomicPlayer webhook URL into PerfectPay?
Not directly. The Custom webhook expects AtomicPlayer's JSON format. A server or automation you control must turn the PerfectPay notification into that JSON.
Which plan do I need?
Revenue tracking is available on Standard and Scale.
What does conversion.fired contain?
Player context and CTA button metadata. It has no amount or currency.