Creating a Sub-merchant


 

To create a new merchant, Make a call to the endpoint below with the a payload in the stated format.


   curl -X GET \
     ' {{base-url}}/{country_code}/merchant'

Payload :
{
    "name": "Olubusayo store",
    "phone": "2348068869429",
    "email": "a@b.com",
    "address": "17 lekki road, langbasa rd, Ikeja",
    "contact_person": "Olubodun",
    "charge_commission_to_merchant": "0",
    "manage_stock": "0",
    "use_custom_payment": "1",
    "payment_gateway_group_id": "1",
    "“Show_name_on_payment_gateway”": 1,
    "“custom_flow_settings”": {
      "skip": [
        "customer_name",
        "shipping_address"
      ]
    },
    "payment_gateway_settings": {
      "MerchantId": "4057",
      "Username": "ogavalue","Password": "dfdfd"
    },
    "account_details": {
      "bank_code": "058",
      "account_number": "1213323232",
      "account_name": "Okenwa Akinyele"
    }
  }

Note that any diversion from the normal expected format for the payload may result to an "Invalid Parameter" error.

Expected Response :
{
        "status": "success",
        "data": {
            "message": "Merchant successfully created."
        }
    }

 

Note: Merchants should have unique phone numbers as a duplicate number will return the following error: