Onboarding API
Introduction#
The Onboard API enables seamless merchant onboarding, allowing clients to integrate and onboard single or multiple merchants efficiently into our system. Designed for flexibility and scalability, this API supports both individual and bulk onboarding processes with structured data formats. Whether you are setting up a new merchant or managing large-scale imports, the Onboard API provides a secure, consistent, and streamlined approach to onboarding with minimal effort.
Authentication#
To ensure secure access, our Onboard API requires a Bearer Token for every request. Follow the steps below to obtain and use the token:
Step 1: Provide Your Email Before making any API calls, you must share the email address of the person or system that will initiate the API requests. This allows us to create a unique Bearer Token for your account.
-
Email should be sent to: support@latpay.com
-
Subject: Onboard API
-
Access Request Include:
- Full name
- Organization name
- Email address to be associated with API access
Step 2: Receive Bearer Token Once we receive your request, our team will generate a Bearer Token and securely share it with you. This token must be included in the header of all your API requests.
Step 3: Add Authorization Header Include the Bearer Token in the Authorization header as shown below:
Authorization: Bearer YOUR_TOKEN_HERE
Note: Keep your token confidential. If you believe your token has been compromised, contact us immediately to regenerate it.
Example Header Format:
POST /latpay/service/api.production/v1/client/initiateonboarding HTTP/1.1
Host: lpshub.com
Content-Type: application/json
Authorization: Bearer YOUR_TOKEN_HERE
POSTRequest#
Below are the initial required fields in the request body when calling the Onboard API.
| Property | Type | Format | Required |
|---|---|---|---|
user# | string | Required | |
onboardReference# | string | AlphaNumberic | Required |
merchantcount# | Integer | Number | Required |
merchantDetails# | Onboarding | Array | Required |
Request Body Parameters
user (string, required):
The email address associated with the Bearer Token. This field is used for validation and must match the email for which the token was generated.
"user": "john.doe@merchant.com"
onboardReference (string, required):
A unique reference string generated by the client for each onboarding request. It must be exactly 15 characters, containing only alphanumeric characters (case-sensitive).
"onboardReference": "ABc123xyz789LMN"
merchantcount (integer, required):
Represents the number of merchants being onboarded in a single request. This must match the number of merchant objects in the merchantDetailsmerchantDetailsThe merchantDetails array holds all the onboarding information for each merchant. It includes business details, locations, legal structure, entitlements, and contact information.Go to definition → array. The accepted range is minimum 1 and maximum 10.
"merchantcount": 2
merchantDetailsmerchantDetailsThe merchantDetails array holds all the onboarding information for each merchant. It includes business details, locations, legal structure, entitlements, and contact information.Go to definition → (array, required):
An array containing the onboarding details for each merchant. The number of items in this array must match the value provided in merchantcount. If the count mismatches, the request will be rejected.
"merchantDetails": [
{ /* Merchant 1 */ },
{ /* Merchant 2 */ }
]Try it
· RequestRequests are relayed through this site to https://lateralpayments.com/checkout-staging. Use sandbox credentials only; nothing is stored.
Response#
Success
{
"statuscode": "0",
"statusdesc": "Request accepted. Please use this Latpay Reference '${docRefs.id}' to check the status of the onboarded merchants in the future.",
"errorcode": "0",
"errordesc": ""
}