Merchant Onboarding

Creating a merchant account establishes your business on LedgerBlock and gives you the credentials and wallet required to use LedgerBlock's financial services.

Why create a merchant account?What businesses need it for
Identify your businessEstablishes your business as a recognized merchant on LedgerBlock.
Access LedgerBlock APIsAllows your business to integrate with LedgerBlock's payment and financial services.
Receive API credentialsProvides the api_key and x_merchant_ref required to make authenticated API requests.
Create and manage usersAllows the merchant to create users associated with the merchant account.
Get a default walletProvides a wallet for managing supported funds and transactions.
Process transactionsLinks API activity and transactions to the correct merchant account.
Enable secure accessAllows LedgerBlock to verify and authorize requests made on behalf of the business.

Once the merchant account is created and approved, LedgerBlock provides the merchant's API Key, X-Merchant-Ref, Default Wallet, and User Ref, which are required for subsequent integration steps.
Merchant onboarding is the first step in setting up your LedgerBlock integration. It creates your merchant account and generates the credentials and default wallet required to interact with the LedgerBlock API.

Sample Request ; Create Merchant

This endpoint creates a new merchant account and generates the credentials required for API integration.

POST {{base_url}}/api/v1/merchant/account

Request Body

NameTypeDescription
merchant_nameStringThe name of the merchant.
merchant_emailStringThe merchant's email address.
notification_urlStringThe webhook URL where LedgerBlock will send transaction notifications.

Sample Request

{
  "merchant_name": "Teslim Test",
  "merchant_email": "[email protected]",
  "notification_url": "https://webhook.site/77bd3efa-24e0-49db-a39c-a9e8a6e9f528"
}

Response

200 OK

{
  "status": "success",
  "message": "Successfully created API Key. Please save in a secure place. You may need to contact support to reset API Key",
  "data": {
    "x_merchant_ref": "MREFCA1B89FC66464E6BA82756AE96DF484C000N7",
    "api_key": "APILBX336B754C0C26474DBD56CB042E1D852C007V2",
    "default_wallet": {
      "wallet_id": "LBWNGN81C4801EE29D43F8A0B2231E367B74550063J",
      "user_ref": "UREF52EAF03D45714E47A65BF451969A22FB00CHN",
      "currency": "NGN"
    }
  }
}

Response Fields

KeyTypeDescription
statusStringIndicates the outcome of the request, such as success.
messageStringProvides a description of the result.
x_merchant_refStringUnique reference assigned to the merchant. Store it securely.
api_keyStringMerchant API key used for authentication. Store it securely.

default_wallet

KeyTypeDescription
wallet_idStringUnique identifier of the merchant's default wallet.
user_refStringUnique user reference associated with the wallet.
currencyStringCurrency of the default wallet, such as NGN.

Did this page help you?