06AI assistants and the MCP serverConnect a client · Available tools
07Troubleshooting and FAQ
01
Overview
The path of a sale, from click to commission, and the endpoints along the way.
Everyone
Parceiroos follows a sale from the first click to the commission paid. The affiliate publishes a tracking link; the platform records the click and sends the visitor to the advertiser; the advertiser confirms the sale back; the conversion moves through its statuses and becomes a commission. Everything that follows describes the parts of that circuit.
01
Click
Traffic enters through https://SEU-DOMINIO/click?offer=…&aff=…. The platform records the click, mints a click_id and redirects to the advertiser's page carrying that identifier.
02
Conversion
Once the sale is confirmed, the advertiser reports it by server-to-server postback, pixel or JavaScript container. The click_id and a unique transaction id travel with every call.
03
Status
A conversion is born PENDING, may pass through VALIDATING and ends as APPROVED, DECLINED or PAID. Each change can fire the affiliate's outbound postback.
04
Payout
Approved conversions enter finance and are paid to the affiliate under the program's policy.
GET https://SEU-DOMINIO/click?offer=ID_PUBLICO&aff=CODIGO
Affiliate / network
Inbound postback (conversion)
GET or POSThttps://SEU-DOMINIO/postback
Advertiser
Click capture script
https://SEU-DOMINIO/js/platform/handle.js
Advertiser (pixel / JS)
JavaScript pixel
https://SEU-DOMINIO/js/platform/pixel.js
Advertiser (JS)
MCP server (AI assistants)
POST https://SEU-DOMINIO/api/mcp
Advertiser / dev
Macro catalogue as JSON
GET https://SEU-DOMINIO/api/postback-macros
Network / integrator
02
Advertisers: reporting conversions
Three ways to confirm a sale: server-to-server postback, image pixel and JavaScript container.
Advertiser
A sale exists for Parceiroos only once the advertiser confirms it. There are three methods. The server-to-server postback is the most accurate and the first to consider; pixel and JavaScript container depend on the buyer's browser and serve those without backend access.
When redirecting the visitor, the platform appends the click identifier to the destination URL. That value has to survive until the sale is confirmed: cookie, session or a hidden field on the order. Without a click_id there is no attribution, and the conversion is rejected.
The postback accepts the click in click_id, and also in clickId, clickid, cid, p1 and sub1.
In pixel and container integrations, handle.js captures and stores the click_id on its own.
A made-up click_id does not get through: the conversion is rejected.
The advertiser's postback token. Also in postbackToken, pb_token or the X-Postback-Token header.
click_id
yes
Click identifier captured on the landing page.
txn_id
yes
Unique transaction id in the advertiser's system. It is the idempotency key: the same txn_id never produces two conversions. Also in transaction_id, transactionId or txid.
saleAmount
depends
Total sale amount in decimals (199.90), for offers paying a percentage. Also in sale_amount, orderAmount, total.
commission or rate
depends
For fixed-commission offers: the commission (commission, value, payout) or the rate (rate, fixed) instead of saleAmount. The offer page says which.
currency
no
ISO currency code; BRL by default. Also in cur.
status
no
Status at the source (approved, declined…). Stored for reconciliation; the conversion lands as PENDING and is validated by the operation.
order_id, external_id
no
Additional order identifier, stored for reconciliation.
POST accepts JSON or application/x-www-form-urlencoded; fields may go in the body or the query string.
The response is 200 with a confirmation JSON. A repeated transaction returns DUPLICATE_TRANSACTION and creates no record.
One call per sale, always from the server. Resending the same txn_id is safe.
No backend. The capture script goes on every page, or at least on the landing page; the image tag, only on the thank-you page. The image fires the conversion as it loads.
Image pixelHTML
<!-- On every page (or at least on the landing page) --><scriptsrc="https://SEU-DOMINIO/js/platform/handle.js"></script><!-- Thank-you / confirmation page only --><imgstyle="display:none;"src="https://SEU-DOMINIO/postback?token=SEU_TOKEN&click_id={CLICK_ID}&txn_id={TXN_ID}¤cy=BRL&offer_id=ID_DA_OFERTA&saleAmount=VALOR_DA_VENDA">
On the thank-you page, the window.PLATFORM_PIXEL object receives the real order data and pixel.js does the rest: reads the object, recovers the click_id stored by handle.js and sends the conversion.
JavaScript containerHTML
<!-- On every page (or at least on the landing page) --><scriptsrc="https://SEU-DOMINIO/js/platform/handle.js"></script><!-- Thank-you / confirmation page only --><script>window.PLATFORM_PIXEL={token:"SEU_TOKEN",clickId:"{CLICK_ID}",txnId:"{TXN_ID}",value:"VALOR_DA_VENDA",valueParam:"saleAmount",currency:"BRL",offerId:"ID_DA_OFERTA",network:"https://SEU-DOMINIO"};</script><scriptsrc="https://SEU-DOMINIO/js/platform/pixel.js"></script>
Every promotional link goes through https://SEU-DOMINIO/click. The dashboard hands out the ready link on each offer page; the structure is simple enough to assemble by hand.
The affiliate's system URL is registered under Integrations → Postback. When a conversion enters a status subscribed under When to fire your postback, Parceiroos renders the URL with the macros and calls it over HTTP GET or POST. The default fires on APPROVED only.
The same sale amount in cents. Empty if not reported.
19990
{saleamountcents}
{currency}
ISO code of the conversion currency.
BRL
—
{offer_id}
Internal campaign identifier.
cmp_4a8e1d02
{campaign_id}{campaignid}
{offer_public_id}
Public campaign identifier, the same one used on the tracking link.
OF-2Z9K
{offerpublicid}{campaign_public_id}{offer}
{offer_name}
Campaign name, already URL-encoded.
Conta Digital
{campaign_name}{campaignname}
{affiliate_id}
Identifier of the affiliate who owns the conversion.
usr_31c7be40
{affiliateid}{publisher_id}
{timestamp}
Moment of the call in seconds since the Unix epoch.
1772712000
{unix}{ts}
{datetime}
Moment of the call in ISO 8601 (UTC).
2026-03-05T12:00:00.000Z
{date_time}{iso_date}
Pass-through macros: only exist when present on the tracking link
Macro
Origin on the link
{sub1}
?sub1=
{sub2}
?sub2=
{sub3}
?sub3=
{sub4}
?sub4=
{sub5}
?sub5=
{gclid}
?gclid=
{wbraid}
?wbraid=
{gbraid}
?gbraid=
{fbclid}
?fbclid=
{ttclid}
?ttclid=
{msclkid}
?msclkid=
{twclid}
?twclid=
{irclickid}
?irclickid=
{epik}
?epik=
{utm_source}
?utm_source=
{utm_medium}
?utm_medium=
{utm_campaign}
?utm_campaign=
{utm_content}
?utm_content=
{utm_term}
?utm_term=
04
External networks and integrators
The general model for any system that asks for the platform macros.
External network
A tracker, a network or a partner's backend needs two things: its click token on the tracking link and that same token back on the outbound postback. The macro catalogue is also published as JSON at https://SEU-DOMINIO/api/postback-macros, ready to forward.
The example uses a fictional network that documents its postback with the fields [click_token], [action_id], [price] and [total]. Names change from network to network; the mechanism does not.
Network field → macro
Network field
Parceiroos macro
Note
Account id
—
Fixed value provided by the network. Goes literally in the URL.
[click_token]
{sub1}
The network's click token. Goes in on the link, comes back unchanged.
[action_id]
{conversion_id}
Conversion id on the platform.
[price]
{payout}
Conversion commission.
[total]
{sale_amount}
Order amount. Empty when the advertiser does not report it.
01
Tracking link
The network puts its token in sub1; the value is stored with the click.
02
Postback URL
Under Integrations → Postback, the network's URL goes in with its fields swapped for the macros. Under When to fire your postback, the statuses that should notify it.
03
What the network receives
The final, rendered URL is kept in the outbound postback log.
{payout} is the commission and always exists. {sale_amount} is the order amount and only exists when the advertiser sends it on the inbound postback as sale_amount, saleAmount, total_price, totalPrice, order_value or total. Another name can be mapped under Integrations → Advertiser postback. If the network demands a number, {payout} works in both fields.
05
Affiliate networks
A guide per network, in both directions: the network as an affiliate of your program and the network as the advertiser behind your offers.
External network
An affiliate network can occupy two places in your program. As an affiliate, it sends traffic and receives the conversion through the outbound postback. As an advertiser, you run its offers: the offer destination is the network's affiliate link, with your {click_id} in its sub-ID, and its postback delivers the sale to your inbound postback. Each guide below covers the directions the network offers.
Actionpay
CPA network with a strong footprint in Latin America and Eastern Europe.
Tested on the platform
The network is registered as an affiliate of your program. Its click token rides on your tracking link and comes back on the outbound postback URL.
Actionpay sends traffic with [click].[source] on the link and receives the conversion on its endpoint.
Numeric program id, provided by Actionpay. Fixed in the URL.
[click].[source]
{actionpay}
Click token. Goes in on the link, comes back unchanged.
apid
{conversion_id}
Conversion id on the platform.
price
{payout}
Conversion commission.
totalPrice
{sale_amount}
Order amount. Empty when the advertiser does not report it.
The network joins as an affiliate of the program; its code goes in aff.
The postback URL is registered under the affiliate's Integrations → Postback, with the statuses that should notify the network.
The token can also ride on sub1 and return as {sub1}; the result is the same.
06
AI assistants and the MCP server
Claude Code, Cursor or any MCP client generates and applies the integration from the real offers.
Developer
Parceiroos exposes a Model Context Protocol server. With a key, the advertiser's assistant lists the offers, generates the snippet with the real token and id, applies it to the project and confirms whether conversions arrived. The scope is always the key owner's offers.