Onboarding API - V2

(0 reviews)
V2 of existing Onboarding API to onboard and consult on merchant data, including stores, payment solutions and methods, terminals, and more.

Onboarding/Management API Integration Guide

This API facilitates the seamless onboarding of new companies, stores, solutions, and other entities into our system. It is designed to streamline your integration process, enabling your organization to quickly and securely configure your payment ecosystem without manual intervention.


1. Environments & Base URLs

Onboarding
EnvironmentBase URLToken Generation URL
Productionhttps://api.market-pay.com/v2/onboarding/apihttps://api.market-pay.com/v2/auth/api/token
Staginghttps://api-rec.market-pay.com/v2/onboarding/apihttps://api-rec.market-pay.com/v2/auth/api/token
Management
EnvironmentBase URLToken Generation URL
Productionhttps://api.market-pay.com/management/apihttps://api.market-pay.com/v2/auth/api/token
Staginghttps://api-rec.market-pay.com/management/apihttps://api-rec.market-pay.com/v2/auth/api/token

2. Authentication & Security

APIs are secured using JWT (JSON Web Token) authentication.

Every request sent must include a valid JWT token in the Authorization header:

Authorization: Bearer <your_jwt_token>

⚠️ Important Token Note
The Onboarding API and Management API require a V2 Token. Do not use V1 tokens generated from legacy auth endpoints.
Token validity is 1 hour in Production and 8 hours in Staging.

How to Obtain a V2 Token

Send a POST request to the token URL corresponding to your environment with the following headers provided by your Market Pay Account Representative:

Header NameRequiredDescriptionExample
client_idTRUEFound under 'My Applications' section after loginh515c5a6d534406cbad56c96cb747242
client_secretTRUEFound under 'My Applications' section after login451ba70DCDA49676Ac9A9E12a9af94e7

3. Data Model Hierarchy

All entity management in Market Pay follows a strict parent-child hierarchy. Understanding this hierarchy is key to executing your API calls in the correct sequence.

MarketPay Heirarchy

  • Account: Top-level container. This is created internally by Market Pay when your contract is finalized.
  • Company: The legal merchant entity. Holds regulatory information and KYC details.
  • Store: A physical retail outlet, e-commerce domain, or logical business unit operating under a Company.
  • Solution (Checkout Type): The payment delivery mechanism operating inside a Store (e.g., SoftPOS mobile app, physical HardPOS terminals, or Web Gateways).

4. End-to-End Onboarding Decision Workflow

Refer to the flowchart below to determine the precise sequence of API requests required for your business model:

Onboarding Sequence

⚠️ Important Token Note
Pricing Bundle is a way to re-use same pricing across merchants and solutions. Completely optional.


5. Onboarding API V2 vs. Management API

To keep your integration clean, understand the boundary between initial onboarding and day-2 operations:

Onboarding API

Used exclusively during initial setup to build the:

Account → Company → Store → Solution

hierarchy and run activation workflows.

Management API

Used for Day-2 operations after onboarding is complete.

Use this API for operations like:

  • add additional HardPOS terminal serial numbers
  • new users to SoftPOS
  • update store details
  • edit bank accounts

Reviews