On this page
Why an old EventBridge consumer may behave differently
Under the old 256 KB ceiling, classic webhooks for large products or orders could contain only an ID, forcing an Admin API fetch. Events used a temporary payload_url for overflow. With the larger inline allowance, the same resource may now arrive as a complete object. Code that assumes “large resource always means stub” can do unnecessary API work or mishandle the new shape.
Handle both inline and overflow deliveries
For classic webhooks, validate the topic and payload shape: an ID-only body still requires a follow-up resource fetch. For Events, branch on the presence of payload_url rather than a guessed size threshold. Honor expires_at when fetching an overflow payload. Never treat a missing inline field as proof the resource is empty.
// Pseudocode: normalize delivery before business logic
if (event.payload_url) {
body = await fetchTemporaryPayload(event.payload_url);
} else if (isClassicWebhook(event) && hasOnlyResourceId(event.detail)) {
body = await fetchResourceFromAdminAPI(event.detail.id);
} else {
body = event.detail;
}
await processIdempotently(body);
This is deliberately adapter-level pseudocode: the exact EventBridge envelope and authorization for overflow retrieval depend on your subscription type. Keep retry and idempotency logic independent of payload format.
Check downstream AWS limits
Shopify leaves room below EventBridge’s 1 MiB entry cap for the event envelope, but downstream rule targets can impose their own limits. Inspect your EventBridge rules, transformers, Lambda/SQS integrations, logging and any intermediate serialization. If a target cannot accept the larger body, use an input transformer or narrower Shopify fields and Events query selections.
payload_url, payload_size_bytes and expires_at.- Replay or generate a small webhook and confirm normal inline processing.
- Test a representative large product or order between the old 256 KB limit and the new 1,000,000-byte limit; verify no unnecessary Admin API refetch occurs.
- Exercise an overflow stub above 1,000,000 bytes using a controlled fixture and verify retrieval before expiry.
- Confirm the AWS target accepts the full envelope, not just Shopify’s detail body.
- Replay the same event to verify idempotency and check retries and dead-letter handling.

