Tools CAPI payload check

Free tool · no signup

CAPI payload check

Paste a Conversions API event and see every field Meta will reject — before your server sends it, and before a week of purchases lands in Events Manager as nothing.

  • Runs in your browser
  • Rules from Meta's docs
  • Nothing uploaded

A Conversions API integration fails quietly. Your server gets a 200 with an events_received: 0 array, the logs look clean, and the only symptom is that Meta reports fewer purchases than Shopify does. By the time anyone notices, the bidding algorithm has spent two weeks learning from a fraction of the real orders.

Almost every one of those failures is one of twelve field-level mistakes: a timestamp in milliseconds, an action_source of web, an email hashed before it was lowercased, a missing event_id. All of them are visible in the JSON before it is sent. This page checks that JSON in the browser, with the rules Meta publishes, and tells you which field to fix and why.

Paste your payload

payload.json
Runs entirely in this tab. Nothing is uploaded.

The twelve checks, and what each one costs you

Every row below is a rule from Meta's own parameter documentation, not a preference. The right-hand column is the failure mode I see most often on client accounts, which is usually the reason someone opens this page in the first place.

CheckWhat passesWhat happens when it fails
Payload shapeA `data` array, or a bare event objectMeta expects `{data: [...]}`; a single object sent as the body is a 400
`event_name`Non-empty, a standard event or a clean custom nameEmpty, spaces or a capitalised custom name break dedup and reporting
`event_time`Unix seconds, no older than 7 daysMilliseconds, or anything past 7 days, fails the entire request and processes no events
`action_source`One of the nine accepted values`web`, `site` or `pixel` are rejected — the value is `website`
`event_source_url`Full URL, required when the source is websiteMissing on a web event means no attribution to a page
`client_user_agent`Required for website events, never hashedMissing on a web event loses browser matching
`user_data`At least one identifier presentAn empty object returns 400 and no event is recorded
Hashed fields`em`, `ph`, `fn`, `ln`, `ct`, `st`, `zp`, `country`, `db`, `ge` must be SHA-256Plaintext is rejected; Meta does not hash contact info for you through this API
NormalisationLowercase, no punctuation, country code in `ph`Hashing a badly formatted value produces a hash that never matches
`fbc` / `fbp``fb.1.<timestamp>.<value>`A hand-written `fbclid` in `fbc` is ignored for click attribution
`event_id`Unique string, identical to the pixel's `eventID`Missing means the pixel and the server both count the same purchase
`custom_data``value` as a number, `currency` as ISO-4217`value` as a string is coerced to zero in some reports, and ROAS goes with it

Hashing: four mistakes that quietly cost match rate

A hash of the wrong string is still a valid 64-character SHA-256. Nothing errors. The event is accepted, counted, and matched against nobody. This is the most expensive class of bug in a CAPI setup because no dashboard reports it — the only signal is a lower Event Match Quality score weeks later.

MistakeSentShould be
Hashing an uppercase email
Meta hashes the lowercase form. A hash taken before lowercasing is a different 64 characters that match nobody.
[email protected][email protected]
Hashing a phone number with the plus sign
Symbols, letters and leading zeros come off before hashing, and the country code stays on.
+1 (650) 555-121216505551212
Hashing a country name instead of a code
Two-letter ISO 3166-1 alpha-2, lowercase. The full name produces a hash that is never looked up.
United Statesus
Hashing a full UK postcode with a space
Lowercase, no spaces, no dash. US zips keep only the first five digits.
M1 1AEm11ae

The six fields that must never be hashed are just as important: client_ip_address, client_user_agent, fbc, fbp, lead_id and subscription_id. Hashing an fbp breaks the browser match entirely, and it is a common copy-paste error when someone has just written a helper that hashes everything it touches.

Check the hashing yourself

Meta publishes test vectors for exactly this reason. Type one of these into the tool above — normalise it, hash it — and you should get the published value, character for character. If you do not, your hashing helper is wrong before any of your events are.

FieldNormalised inputExpected SHA-256
em[email protected]62a14e44f765419d10fea99367361a727c12365e2520f32218d505ed9aa0f62f
ph16505551212e323ec626319ca94ee8bff2e4c87cf613be6ea19919ed1364124e16807ab3176
countryus79adb2a2fce5c6ba215fe5f27f532d4e7edbac4b6a5e09e1ef3a08084a904621

A worked example

This is a real shape I have found in a Shopify app's server function: five problems, all accepted with a 200.

{
  "data": [{
    "event_name": "purchase",
    "event_time": 1763700000123,
    "action_source": "web",
    "user_data": { "em": "[email protected]" },
    "custom_data": { "value": "79.00", "currency": "usd" }
  }]
}
  • Milliseconds. 1763700000123 reads as the year 57842. Meta rejects the whole request if the parsed time is more than seven days old.
  • Lowercase event name. purchase does not match the pixel's Purchase, so dedup never fires even once the rest is fixed.
  • action_source: "web". Not an accepted value. It is website.
  • Uppercase email, unhashed. Two errors in one field: it needs lowercasing and it needs SHA-256.
  • value as a string, lowercase currency. The value is written to revenue only when it is a number, and the currency must be ISO-4217 uppercase.

The corrected version, which the button above produces, is 11 fields and about 20 lines. It takes a minute to generate and removes a fortnight of bad learning from the ad account.

What this tool cannot tell you

It does not check your access token, your dataset ID, the API version in the request URL, or whether the app has the right permissions. It does not know your pixel's event names, so it cannot confirm that the pixel sends the same event_id as the server — for that you paste both logs into the Double-count finder. It also cannot predict Event Match Quality: a payload can be perfectly valid and still match at 4/10 because it carries one identifier.

How to confirm the fix in Events Manager

  1. Send the corrected payload with your test_event_code so it lands in Test Events and not in the live dataset.
  2. Open Events Manager → your dataset → Test Events. Confirm the event appears with the right name and a value.
  3. Open the event, then the Deduplication tab. A purchase should show a server event and a browser event on the same key, with one of them marked as deduplicated.
  4. Wait 24 hours, then compare the count in Events Manager against your store's order count for the same window and time zone. Within 5 to 10 percent is normal. Above 20 percent is a configuration problem, not a tracking gap.
  5. Check Event Match Quality after three or four days of data — the score needs volume before it means anything.

Where this fits in a real rebuild

Validation is step four of a server-side rebuild, after the container, the consent gate and the event map. Doing it first is fine and cheap; doing it never is why a rebuild gets handed over at 70 percent accuracy. The fourteen checks I run on an account, in order, are on the ecommerce tracking checklist, and the reasoning behind the whole sequence is in conversion tracking for ecommerce.

Valid but still not matching?

A payload can pass every check on this page and still report at half the real order count. That gap is where a read-only audit earns its keep: three days, one question — is the revenue you are optimising real?

See the audit → Book a call →

Want the payload rules as a checklist?

The twelve checks above on one page, with the exact values Meta accepts. Hand it to whoever writes the server code.

One email with the file, then nothing unless you reply. Your address is not added to a list.

Questions this raises

Does my payload leave my browser?

No. The JSON you paste is parsed and checked by JavaScript on this page. Nothing is uploaded, logged or stored, and the page works with the network tab open — you can watch it send nothing. That is deliberate: a payload contains customer email and phone hashes, and those should not travel to a stranger's server to be validated.

Why does Meta fail the whole request for one old event?

Because `event_time` more than seven days in the past returns an error for the entire request — not just the offending event. A batch job that replays yesterday's orders with a millisecond timestamp silently processes nothing, which looks exactly like a broken integration to the person watching Events Manager.

I pasted a single event object, not an array. Is that valid?

Only for the browser-side test tools. The server endpoint takes `{"data": [ ... ]}`, so a bare object fails. This validator accepts all three shapes (bare object, array, wrapped in `data`) so you can paste whatever your code prints, but it marks the bare shapes as a shape error and shows the wrapped version.

The payload passes here but Meta still rejects it. Why?

This page checks the event fields. It does not check the access token, the dataset ID, the API version in the URL, or the app's permissions — those live outside the event object. A 400 with `code 100` is usually the token, not the payload.

Should I send the same event from the pixel and the server?

Yes, that is the recommended redundant setup, but only with an `event_id` on both sides that matches, and only if the names match too. Without both, Meta records two purchases for one order and your ROAS looks better than your bank account.

Does the fix button send anything to Meta?

No. It normalises the values, hashes the plaintext identifiers with the Web Crypto API inside your browser, and prints a corrected payload you can copy. You still have to send it yourself, with your own token.

Related tools

Sources

The rules implemented above come from these pages. No threshold on this page is invented.

🔒 Secure checkout
Loading secure checkout…
Payments by Stripe · Cards, Apple Pay, Google Pay