Skip to main content
UTMify is a sales tracking dashboard that reconciles ad spend against the sales a campaign produced. Connecting it lets the platform push every approved purchase into UTMify on its own, carrying the tracking parameters the checkout captured, so your UTMify dashboard fills in without a manual export. Refunds and chargebacks follow the same path, so the dashboard stops counting revenue you gave back. The mechanism: when a purchase is approved, refunded or charged back, the platform sends the order to UTMify’s orders endpoint as a POST, authenticated with the API token you paste into the integration. Nothing is injected into your checkout and no script runs in the buyer’s browser.
You need a UTMify account first. The credential that connects the two is generated in UTMify, not in PagAmerican.

How to configure

1

Generate an API credential in UTMify

In your UTMify account, go to Integrations > Webhooks > API Credentials, add a credential, and create it. Copy the token it gives you: that token is the only value PagAmerican needs from UTMify.
2

Open the Utmify app

In the PagAmerican dashboard, go to Integrations and find the Utmify card. Click Install integration the first time, or Manage if you have connected it before. You land on the UTMify list, which shows every integration you have created, with its Name, Scope, and Status.
3

Create the integration

Click Create Integration. Fill in Name (an internal label, so you can tell your integrations apart) and paste the credential into API Token.
4

Enable the events

Under Events, turn on the events you want to send: Purchase approved, Refund, Chargeback. At least one event has to be enabled or the form cannot be saved.
5

Choose the product scope and save

Under Product Scope, pick All products, Specific products, or Specific offers from a product, then click Create. The integration starts active.
The configuration is per integration, not per product: one integration carries one API token, one set of events, and one product scope. Create as many as you need. A purchase that falls inside two scopes is sent to both. An integration also belongs to the role you were using when you created it. One created as a vendor receives purchases of your own products; one created as an affiliate receives purchases of the offers you promote. If you sell both ways, create one integration under each role.

Events sent

UTMify does not receive an event name. It receives an order, and the order’s status identifies the event.
A partial refund is not sent: the order stays paid in UTMify. Refunds and chargebacks confirmed before this support existed were not sent, and they are not sent retroactively.

What UTMify receives

One approved purchase is one POST. This is the body, and it is also what you see behind View Payload in the delivery logs:
What is worth knowing about those fields: Every amount is an integer in cents: 10000 is $100.00. commission.totalPriceInCents is the gross item total, gatewayFeeInCents is the fee charged on the transaction, and userCommissionInCents is your own net: the vendor’s net on the vendor’s copy, the affiliate’s net on the affiliate’s copy. Only the seven keys shown in trackingParameters are forwarded. A custom parameter of your own is dropped, so if you need an identifier to reach UTMify, send it in src, sck, or one of the utm_* parameters. The same rule is described in Tracking parameters.

Refunds and chargebacks

A refund or a chargeback is sent as the same order, with the same orderId, so UTMify updates the order it already has. The body is the same as the approved one except for status and refundedAt:
That excerpt shows only the fields that differ. The real body carries every field of the approved one. refundedAt is the moment the refund or chargeback was confirmed, in UTC, as YYYY-MM-DD HH:MM:SS. createdAt and approvedDate keep the values sent when the first purchase of the order was approved. On the vendor’s copy, products lists the items of every purchase in the order, upsells included, and the refund is sent only once every purchase in the order is refunded or charged back. On the affiliate’s copy, products lists only the purchases that came through the affiliate, and the refund is sent once all of those are.

Vendor and affiliate copies

When a purchase came through an affiliate, the platform sends it twice: once to the vendor’s integration and once to the affiliate’s. The two bodies are identical except for commission.userCommissionInCents, which carries each side’s own net, and for two differences below. Neither side sees the other’s figure. The affiliate’s copy has no storeUcode. When the affiliate is paid a fixed commission (CPA), customer.phone and customer.document arrive as REDACTED when they have a value. The rest of the customer data, including the name and the email, is unchanged. An affiliate paid a fixed commission (CPA) receives approved purchases but never a refund or a chargeback, because a fixed commission is kept when the order is refunded or charged back. The commission type recorded with the sale decides, so an affiliate on revenue share in one program and CPA in another receives refunds only for the first. If the vendor and the affiliate happen to paste the same UTMify credential into their integrations, the same order reaches that UTMify account twice.

Troubleshooting

Every integration in the UTMify list has a Logs button that opens Delivery Logs, with one row per attempt: Sent At, Event, Status, Code, and Details. A successful row hides the body behind View Payload; a failed one shows the error instead.
A row is written only when a delivery is actually attempted. When the platform decides not to send, nothing is attempted, so there is no row and no error message. An empty log is the diagnostic, not a sign that the platform is broken.The platform skips the delivery silently when:
  • the integration’s Status is inactive
  • the event (Purchase approved, Refund or Chargeback) is not enabled on that integration
  • the refund was partial, which is never sent
  • the refund or chargeback covers only some purchases of the order, such as an upsell refunded on its own
  • the integration is an affiliate’s and the sale paid a fixed commission (CPA), which never receives refunds or chargebacks
  • the purchase falls outside the integration’s Product Scope
  • the purchase belongs to the other role: a vendor’s integration does not receive the purchases you made as an affiliate, and an affiliate’s does not receive the purchases of products you sell
One more case worth checking on a multi-item cart: with Specific products or Specific offers from a product, the purchase is matched by its front item, never by the order bump. A purchase whose front item sits outside the scope is skipped even when another item is inside it. The same rule applies to a refund or a chargeback.The delivery logs show the event on each row, so you can tell an approved purchase from a refund or a chargeback.
Read the Code column:
  • 401 or 403: the API token is wrong, was revoked, or belongs to a different UTMify account. Edit the integration and paste a fresh credential.
  • a 5xx, or no code at all with a timeout in Details: UTMify did not answer in time. Each attempt waits at most 5 seconds and is retried up to three times before the delivery is recorded as failed.
A failed delivery is not sent again later. Once the row says Failed, that purchase will not reach UTMify on its own.
trackingParameters only ever contains what the checkout link carried. If the buyer reached the checkout through a link with no utm_*, src, or sck values, every key arrives as null and UTMify has nothing to attribute the sale to. Fix the links, not the integration.

FAQ

Can I send different products to different UTMify accounts? Yes. Create one integration per credential and give each its own Product Scope. Every integration is checked against every approved purchase, so a purchase inside two scopes is delivered to both. Do I have to change my checkout links? No. The integration reads the parameters the checkout already captures. To attribute a sale in UTMify, the link that brings the buyer to the checkout has to carry the tracking parameters. What happens while the integration is inactive? Deliveries stop immediately and nothing is queued. Turning it back on does not backfill the purchases approved, refunded or charged back while it was off. Can I change the API token later? Yes. Open the integration, click Edit, replace API Token, and save. The change applies to the next approved purchase.

Need help?

Our team can help you set up your integration: support@pagamerican.com