Redirect
Add a link anywhere in your app to open Melio in it's own broser tab.
How to create a redirect link
To create a redirect link you'll need to retrieve the EmbedUrl from partner portal and add specific query parameters
to it.
https://<embedUrl>?code=<code>&target=<target>&returnUrl=<callback url>&entrypoint=<entrypoint>
| Parameter | Required | Description | Samples |
|---|---|---|---|
| embedUrl | Yes | The embed url provided to you. This can be partner branded. | https://partnerships.melioservices.com/auth/my-partnerName |
| token | Yes | An authentication_code, session or jwe token used to authenticate with the partner backend services. This token should allow identifying the user and retrieving any data required for initial setup | |
| target | no | The screen to send the user to in the Melio web application after successful authentication. If not provided will default to pay dashboard | |
| entrypoint | yes | A freeform string representing what page/screen and action the user came from in the host application | billpay-click-pay |
| returnUrl | yes | Callback url to return when users presses back or wants to exit the Melio web application.Urls can include query parameters, but not hashes | https://bank.com/business |