Skip to content
Last updated

Merchant onboarding guide

Create a merchant on your server, send them to TalusPay's hosted application, then show their current progress in your app. Start with the minimal requests below; add prefilled application data and custom pricing when you need them.

About the Merchant Application

The hosted application collects business and owner details, handles signing, and matches your account's branding. Your app provides the entry point, handles the return, and shows review and payment setup progress.

See merchant experience flows for sequence diagrams, recovery paths and suggested screen messages.


Before You Begin

Before you can start onboarding merchants:

  1. You must be registered as an ISV with Talus.
  2. Your onboarding experience must be configured.
  3. Once setup is complete, you will receive your account ID (account_…) and secret key. Every API call below authenticates with them as HTTP Basic auth: the account ID is the username and the secret key is the password.

The examples use the sandbox. Use https://api.taluspay.com in production.

To follow the merchant through onboarding, create a webhook for the merchant scope before you start. Signing, KYC approval and payment setup are separate milestones. A return to your app does not mean all three finished.


1. Create a Merchant

Use the Create Merchant API to create a new merchant.

  • Send at least one of phone, email or device.imei.
  • When creating a new merchant, email is checked for duplicates within your account, ignoring case. The same email can be used in another account. Phone numbers can be shared by merchants within and across accounts.
  • Optionally, prefill the application in merchant, or set custom pricing in merchant.capabilities.
  • If you don't set pricing, the merchant uses your account's default pricing.
  • If you send a device whose IMEI a merchant of your account already holds, that merchant is returned instead of a new one with HTTP 201. An IMEI held by another account is rejected with HTTP 400 and DEVICE_IMEI_ALREADY_BOUND.
curl https://api.taluspay-sandbox.com/v1/merchants \
  -u "<account_id>:<secret_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "merchant@example.com"
}'

The response is the merchant. Keep its id (merchant_…) for the next steps. Your webhook receives merchant.created, then merchant.processing. These events mean the record was created, not that the application was signed or approved. Use a different email when creating another sandbox merchant.

Validation messages

These are suggested messages for your app; the API's message text may differ. Use the HTTP status and, when available, the error code to decide which message to show.

Validation resultAPI responseSuggested message
No phone, email or device IMEI400Provide a phone number, email address or device IMEI.
IMEI belongs to another account400, DEVICE_IMEI_ALREADY_BOUNDThis device is already assigned to another account. Use a different device or contact support.
Email matches a merchant in your account, ignoring case409A merchant with this email already exists in your account. Use a different email.

An IMEI already held within your account returns the existing merchant with 201; show no duplicate-device error. This lookup happens before the email duplicate check. A shared phone number, or an email used only in another account, does not cause a duplicate validation error. Email checking applies when creating a new merchant; store the returned merchant id as its identifier.


Use the Create Onboarding Link API with the following parameters:

  • merchant_id: The ID of the merchant you created in step 1.
  • return_url (optional): Where the merchant should be sent after completing onboarding.
  • type (optional): "account_onboarding", the only type and the default.
  • attribution (optional): The sales agent (user_id, required in this object), channel, lead source, reseller and referral partner to record on the merchant's application.
  • allow_skip_device_selection (optional): Set to true to let this merchant continue past device selection without choosing a device — they confirm in the flow that they will supply their own compatible device. Omit it to inherit your account default. Only has an effect where device selection is required for your account.

This will generate a URL that launches the merchant into the onboarding flow.

curl https://api.taluspay-sandbox.com/v1/onboarding_links \
  -u "<account_id>:<secret_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "merchant_id": "merchant_2x4y6z8a0b1c2d3e4f5g6h7j8k",
  "return_url": "https://dashboard.example.com/onboarding/done"
}'

The response holds the url to send the merchant to and its expires_at:

  • A link works for 30 days.
  • Creating a new link expires every earlier link for the same merchant, so only the newest one works.
  • The url carries a token that signs the merchant in. Treat it as a secret: don't log it or share it.

Use the returned url as-is. Don't construct a hosted URL from the merchant ID.


Once you receive the onboarding link, redirect your merchant to it.

Authenticate the merchant within your app before redirecting them, and make sure the link belongs to that merchant.

In the flow, the merchant fills in the application and the business owners sign the merchant agreement. While the merchant fills it in, lead_onboarding_status is IN_PROGRESS, and READY_TO_SIGN once every required field is filled in. Once the main owner signs, it becomes COMPLETED and the application is locked.


4. Handle the Post-Onboarding Redirect

After onboarding, Talus will redirect the merchant to the return_url you provided.

Make sure your application:

  • Confirms the merchant's status with GET /v1/merchants/{merchant_id}. Don't rely on the redirect alone: the merchant can open the URL themselves.
  • Shows the current signing, review or payment setup state, with an action only when one is available. Use the status-to-screen guide for suggested messages and labels.

For example, fetch the current state from your server:

curl 'https://api.taluspay-sandbox.com/v1/merchants/<merchant_id>' \
  -u "<account_id>:<secret_key>"

Show a Try again action if this read fails. Don't display an approval or decline based on a failed request.


5. Monitor and Re-engage Incomplete Onboardings

Some merchants may abandon the flow before completion. You can:

  • Read the merchant with GET /v1/merchants/{merchant_id} and check lead_onboarding_status. To find merchants who haven't signed, list merchants with filter.lead.onboardingStatus=IN_PROGRESS and with filter.lead.onboardingStatus=READY_TO_SIGN. The IN_PROGRESS list includes merchants who haven't started yet.
  • If not complete, prompt the merchant with a UI element to resume onboarding.
  • Reuse the existing link while it is the latest link and hasn't expired. Otherwise create a new one for the same merchant: they pick up where they left off. See the resume flow.
  • Once the main owner signs (COMPLETED), show signing or review progress instead of an application editing action.

6. Review and Approval

Once every required owner has signed, the application goes to KYC review automatically. You don't need to call anything.

  • Approved: you receive merchant.kyc_approved. TalusPay then sets the merchant up to take payments, and you receive merchant.payments_onboarded. Use this event to mark payment setup complete; KYC approval alone doesn't mean it is finished. The public API and merchant webhooks do not return payment gateway credentials.
  • Declined: you receive merchant.verification_failed.
  • More information needed: the merchant goes on hold (APPROVED_ON_HOLD) or is pended (PENDED). You receive only merchant.updated for these, so read the merchant with expand=approval_status and send the merchant to status_review_url, where they provide what is missing.

How KYC works explains every status. Check expanded review details before asking for more information: *_UNDER_REVIEW means the merchant already sent it, so show a waiting message.

In sandbox, you can approve or decline a merchant without a real review with POST /v1/events/trigger. See Testing.


What's Next?

Next, test your integration, handle each merchant status, or review the full API reference for application prefilling and custom pricing.