Skip to content

Business Name

Registers a business name with the CAC for a sole proprietor or partners. Three steps. Paths are under /api/order/v1/BusinessName.

Step Endpoint Call it
1. Business details POST …/step1 Once. Creates the order.
2. Proprietors POST …/step2?order-ref=… Once per individual proprietor or partner.
3. Company proprietor POST …/step3?order-ref=… Once. Says whether a company is also a proprietor.

Before you start: get country and nationality IDs from Options, pick a business_nature from BusinessNatures, and upload each proprietor's ID with FileUpload.

Step 1: business details

Creates the order. Give at least two proposed names in case the first is unavailable.

POSThttps://partners.diylaw.ng/api/order/v1/BusinessName/step1
{
  "business_name1": "Ngozi Lens Studio",
  "business_name2": "Ngozi Visuals",
  "business_nature": "Others",
  "other_business_nature": "Drone and event photography",
  "address": "5 Herbert Macaulay Way",
  "country": 165,
  "state": "Lagos",
  "city": "Yaba"
}
curl -X POST "https://partners.diylaw.ng/api/order/v1/BusinessName/step1" \
  -H "Authorization: Bearer $DIYLAW_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "business_name1": "Ngozi Lens Studio",
  "business_name2": "Ngozi Visuals",
  "business_nature": "Others",
  "other_business_nature": "Drone and event photography",
  "address": "5 Herbert Macaulay Way",
  "country": 165,
  "state": "Lagos",
  "city": "Yaba"
}
JSON
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "business_name1": "Ngozi Lens Studio",
    "business_name2": "Ngozi Visuals",
    "business_name3": null,
    "business_name4": null,
    "business_nature": "Others",
    "other_business_nature": "Drone and event photography",
    "address": "5 Herbert Macaulay Way",
    "country": 165,
    "state": "Lagos",
    "city": "Yaba"
  }
}

Save orderReference for the next steps.

Fields

Field Type Required Notes
business_name1 string, max 200 Yes Proposed name, first choice.
business_name2 string, max 200 Yes Proposed name, second choice.
business_name3 string, max 200 No Optional extra choice.
business_name4 string, max 200 No Optional extra choice.
business_nature a value from BusinessNatures Yes
other_business_nature string, max 200 Sometimes Required when business_nature is Others.
address string Yes Business address.
country ID from Countries No
state string, max 200 No State name: the display from States.
city string, max 200 Yes

Read step 1

GEThttps://partners.diylaw.ng/api/order/v1/BusinessName/step1?order-ref={orderReference}
curl -X GET "https://partners.diylaw.ng/api/order/v1/BusinessName/step1?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "business_name1": "Ngozi Lens Studio",
    "business_name2": "Ngozi Visuals",
    "business_name3": null,
    "business_name4": null,
    "business_nature": "Others",
    "other_business_nature": "Drone and event photography",
    "address": "5 Herbert Macaulay Way",
    "country": 165,
    "state": "Lagos",
    "city": "Yaba"
  }
}

Step 2: proprietors

Adds one individual proprietor per call. For a partnership, call it once per partner.

POSThttps://partners.diylaw.ng/api/order/v1/BusinessName/step2?order-ref={orderReference}
{
  "firstname": "Ngozi",
  "lastname": "Okafor",
  "gender": "Female",
  "dob": "1992-07-04",
  "nationality": 124,
  "occupation": "Photographer",
  "identity_type": "National ID Card",
  "identity_number": "23456789012",
  "identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
  "proprietor_address": "6 Ojuelegba Road",
  "proprietor_country": 165,
  "proprietor_state": "Lagos",
  "proprietor_city": "Surulere",
  "proprietor_email": "[email protected]",
  "proprietor_phone": "08033334444"
}
curl -X POST "https://partners.diylaw.ng/api/order/v1/BusinessName/step2?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "firstname": "Ngozi",
  "lastname": "Okafor",
  "gender": "Female",
  "dob": "1992-07-04",
  "nationality": 124,
  "occupation": "Photographer",
  "identity_type": "National ID Card",
  "identity_number": "23456789012",
  "identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
  "proprietor_address": "6 Ojuelegba Road",
  "proprietor_country": 165,
  "proprietor_state": "Lagos",
  "proprietor_city": "Surulere",
  "proprietor_email": "[email protected]",
  "proprietor_phone": "08033334444"
}
JSON
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "id": 1,
    "firstname": "Ngozi",
    "middlename": null,
    "lastname": "Okafor",
    "former_name": null,
    "gender": "Female",
    "dob": "1992-07-04",
    "nationality": 124,
    "former_nationality": null,
    "occupation": "Photographer",
    "identity_type": "National ID Card",
    "identity_number": "23456789012",
    "identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
    "signature": null,
    "passport": null,
    "proprietor_address": "6 Ojuelegba Road",
    "proprietor_country": 165,
    "proprietor_state": "Lagos",
    "proprietor_city": "Surulere",
    "proprietor_email": "[email protected]",
    "proprietor_phone": "08033334444"
  }
}

Fields

Field Type Required Notes
firstname string, max 200 Yes
middlename string, max 200 No
lastname string, max 200 Yes
former_name string, max 200 No Previous name, if any.
gender one of Male, Female (Genders) Yes
dob date, YYYY-MM-DD Yes
nationality ID from Nationalities Yes
former_nationality ID from Nationalities No Previous nationality, if any.
occupation string, max 200 Yes
identity_type one of Driver's Licence, National ID Card, International Passport, Voters Card (IdentityTypes) Yes
identity_number string, max 200 Yes
identity file reference from FileUpload Yes Scan of the identity document.
signature file reference from FileUpload No Image of the proprietor's signature.
passport file reference from FileUpload No Passport photograph of the proprietor.
proprietor_address string, max 200 Yes
proprietor_country ID from Countries No
proprietor_state string, max 200 No State name: the display from States.
proprietor_city string, max 200 Yes
proprietor_email string, email Yes
proprietor_phone string, max 20 Yes

List proprietors

GEThttps://partners.diylaw.ng/api/order/v1/BusinessName/step2?order-ref={orderReference}
curl -X GET "https://partners.diylaw.ng/api/order/v1/BusinessName/step2?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
{
  "orderReference": "b8n4t6w2pe",
  "data": [
    {
      "id": 1,
      "firstname": "Ngozi",
      "middlename": null,
      "lastname": "Okafor",
      "former_name": null,
      "gender": "Female",
      "dob": "1992-07-04",
      "nationality": 124,
      "former_nationality": null,
      "occupation": "Photographer",
      "identity_type": "National ID Card",
      "identity_number": "23456789012",
      "identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
      "signature": null,
      "passport": null,
      "proprietor_address": "6 Ojuelegba Road",
      "proprietor_country": 165,
      "proprietor_state": "Lagos",
      "proprietor_city": "Surulere",
      "proprietor_email": "[email protected]",
      "proprietor_phone": "08033334444"
    }
  ]
}

Step 3: company proprietor

Says whether a company is one of the proprietors and, if so, gives its details and its representative's.

POSThttps://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref={orderReference}

{
  "proprietor_company": "No"
}
curl -X POST "https://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "proprietor_company": "No"
}
JSON
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "proprietor_company": "No",
    "company_name": null,
    "company_address": null,
    "company_country": null,
    "company_state": null,
    "company_city": null,
    "rc_number": null,
    "cac_certificate": null,
    "representative_name": null,
    "representative_designation": null,
    "representative_address": null,
    "representative_country": null,
    "representative_state": null,
    "representative_city": null,
    "representative_phone": null,
    "representative_email": null,
    "representative_type": null,
    "representative_number": null,
    "representative_identity": null
  }
}

POSThttps://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref={orderReference}

{
  "proprietor_company": "Yes",
  "company_name": "Okafor Media Limited",
  "company_address": "10 Commercial Avenue",
  "company_country": 165,
  "company_state": "Lagos",
  "company_city": "Yaba",
  "rc_number": "RC7654321",
  "cac_certificate": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
  "representative_name": "Ngozi Okafor",
  "representative_designation": "Director",
  "representative_email": "[email protected]",
  "representative_phone": "08033334444",
  "representative_type": "National ID Card",
  "representative_number": "23456789012",
  "representative_identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf"
}
curl -X POST "https://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "proprietor_company": "Yes",
  "company_name": "Okafor Media Limited",
  "company_address": "10 Commercial Avenue",
  "company_country": 165,
  "company_state": "Lagos",
  "company_city": "Yaba",
  "rc_number": "RC7654321",
  "cac_certificate": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
  "representative_name": "Ngozi Okafor",
  "representative_designation": "Director",
  "representative_email": "[email protected]",
  "representative_phone": "08033334444",
  "representative_type": "National ID Card",
  "representative_number": "23456789012",
  "representative_identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf"
}
JSON
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "proprietor_company": "Yes",
    "company_name": "Okafor Media Limited",
    "company_address": "10 Commercial Avenue",
    "company_country": 165,
    "company_state": "Lagos",
    "company_city": "Yaba",
    "rc_number": "RC7654321",
    "cac_certificate": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
    "representative_name": "Ngozi Okafor",
    "representative_designation": "Director",
    "representative_address": null,
    "representative_country": null,
    "representative_state": null,
    "representative_city": null,
    "representative_phone": "08033334444",
    "representative_email": "[email protected]",
    "representative_type": "National ID Card",
    "representative_number": "23456789012",
    "representative_identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf"
  }
}

Fields

Field Type Required Notes
proprietor_company one of Yes, No (YesNo) Yes Is a company one of the proprietors? With No, every other field is ignored and cleared.
company_name string, max 200 Sometimes Required when proprietor_company is Yes.
company_address string, max 200 Sometimes Required when proprietor_company is Yes.
company_country ID from Countries Sometimes Required when proprietor_company is Yes.
company_state string, max 200 No State name: the display from States.
company_city string, max 200 Sometimes Required when proprietor_company is Yes.
rc_number string, max 200 Sometimes Required when proprietor_company is Yes.
cac_certificate file reference from FileUpload No The company's CAC certificate.
representative_name string, max 200 Sometimes Required when proprietor_company is Yes.
representative_designation string, max 200 Sometimes Required when proprietor_company is Yes. Usually a value from DesignationTypes.
representative_address string, max 200 No
representative_country ID from Countries No
representative_state string, max 200 No State name: the display from States.
representative_city string, max 200 No
representative_phone string, max 200 No
representative_email string, email No
representative_type one of Driver's Licence, National ID Card, International Passport, Voters Card (IdentityTypes) No
representative_number string, max 200 No
representative_identity file reference from FileUpload No Scan of the representative's identity document.

Read step 3

GEThttps://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref={orderReference}
curl -X GET "https://partners.diylaw.ng/api/order/v1/BusinessName/step3?order-ref=b8n4t6w2pe" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
{
  "orderReference": "b8n4t6w2pe",
  "data": {
    "proprietor_company": "Yes",
    "company_name": "Okafor Media Limited",
    "company_address": "10 Commercial Avenue",
    "company_country": 165,
    "company_state": "Lagos",
    "company_city": "Yaba",
    "rc_number": "RC7654321",
    "cac_certificate": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf",
    "representative_name": "Ngozi Okafor",
    "representative_designation": "Director",
    "representative_address": null,
    "representative_country": null,
    "representative_state": null,
    "representative_city": null,
    "representative_phone": "08033334444",
    "representative_email": "[email protected]",
    "representative_type": "National ID Card",
    "representative_number": "23456789012",
    "representative_identity": "api_uploads/1/Xb7Qm2Kp9Lr4Tz8Vn1Wc3.pdf"
  }
}

After step 3 the order is complete on your side. Follow its progress on the dashboard.