Embed Events
The onboarding and information request (RFI) iframes post messages to the page
that frames them with window.postMessage. Use them to size the iframe and to
react in your page while the sub-merchant works. For server-side updates, use
onboarding webhooks.
How messages are sent
- Messages are only posted to the
parentOriginthe embed session was minted with, never to'*'. - Nothing is posted until the iframe has confirmed it’s running on an approved site.
- Nothing is posted for link-only sessions, since there’s no parent page.
- Payloads never contain form values or personal data.
Every message has the same envelope:
Listening safely
Check three things before you trust a message: that it comes from the Coinflow origin, from your own iframe, and has the Coinflow envelope.
Ignore types you don’t recognize. New types and new payload fields can be
added within the same version.
Onboarding events
Posted by /embed/onboarding.
statusis the onboarding status, the same value Get Onboarding returns:not_started,in_progress,submitted,action_required,approvedordeclined.stepKeyis a step key from the same endpoint, such asprofile,verificationorwallet.stepStatusis that step’s status:blocked,action_required,in_revieworcomplete.
Information request events
Posted by /embed/rfi/{rfiId}. See Information Requests.
status is the RFI’s status, the same value
List RFIs returns: open,
reopened, submitted, completed or cancelled.
Error codes
Treat any other code like unexpected.

