Skip to content

Options

Values for the dropdowns in your forms. Every list returns entries shaped like:

{ "display": "Text to show your user", "value": "what to send" }

Send the value. For most lists it's the same text as display. For countries, nationalities and share capitals it's a numeric ID. State fields are the exception: they take the state's name (display).

Every order field that uses one of these lists links back here from its field table. These lists change rarely, so cache them.

Locations

Countries

Use value (the ID) in every country field: country, shareholder_country, director_country, registered_country, and so on.

GEThttps://partners.diylaw.ng/api/options/v1/Countries
curl -X GET "https://partners.diylaw.ng/api/options/v1/Countries" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Ghana",
    "value": 82
  },
  {
    "display": "Nigeria",
    "value": 165
  },
  {
    "display": "United Kingdom",
    "value": 233
  }
]

States

States in a country. Pass the country ID as country. State fields in orders take the state's name, e.g. "state": "Lagos".

GEThttps://partners.diylaw.ng/api/options/v1/States?country={country ID}
curl -X GET "https://partners.diylaw.ng/api/options/v1/States?country=165" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Abuja Federal Capital Territory",
    "value": 2671
  },
  {
    "display": "Lagos",
    "value": 2676
  },
  {
    "display": "Ogun",
    "value": 2679
  }
]

Nigerian states

The same as States with Nigeria's ID.

GEThttps://partners.diylaw.ng/api/options/v1/NigerianStates
curl -X GET "https://partners.diylaw.ng/api/options/v1/NigerianStates" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Abuja Federal Capital Territory",
    "value": 2671
  },
  {
    "display": "Lagos",
    "value": 2676
  },
  {
    "display": "Ogun",
    "value": 2679
  }
]

Nationalities

Use value (the ID) in nationality, former_nationality and director_nationality.

GEThttps://partners.diylaw.ng/api/options/v1/Nationalities
curl -X GET "https://partners.diylaw.ng/api/options/v1/Nationalities" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "British",
    "value": 184
  },
  {
    "display": "Ghanaian",
    "value": 56
  },
  {
    "display": "Nigerian",
    "value": 124
  }
]

People

Genders

GEThttps://partners.diylaw.ng/api/options/v1/Genders
curl -X GET "https://partners.diylaw.ng/api/options/v1/Genders" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Male",
    "value": "Male"
  },
  {
    "display": "Female",
    "value": "Female"
  }
]

Identity types

The accepted identity documents for proprietors, shareholders, directors, secretaries and representatives. Send the value exactly, including the apostrophe in Driver's Licence.

GEThttps://partners.diylaw.ng/api/options/v1/IdentityTypes
curl -X GET "https://partners.diylaw.ng/api/options/v1/IdentityTypes" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Driver's Licence",
    "value": "Driver's Licence"
  },
  {
    "display": "National ID Card",
    "value": "National ID Card"
  },
  {
    "display": "International Passport",
    "value": "International Passport"
  },
  {
    "display": "Voters Card",
    "value": "Voters Card"
  }
]

Shareholder types

GEThttps://partners.diylaw.ng/api/options/v1/ShareholderTypes
curl -X GET "https://partners.diylaw.ng/api/options/v1/ShareholderTypes" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Individual",
    "value": "Individual"
  },
  {
    "display": "Company",
    "value": "Company"
  }
]

Secretary types

GEThttps://partners.diylaw.ng/api/options/v1/SecretaryTypes
curl -X GET "https://partners.diylaw.ng/api/options/v1/SecretaryTypes" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Individual",
    "value": "Individual"
  },
  {
    "display": "Corporate Organization",
    "value": "Corporate Organization"
  }
]

Designation types

Suggested values for representative_designation in Business Name step 3.

GEThttps://partners.diylaw.ng/api/options/v1/DesignationTypes
curl -X GET "https://partners.diylaw.ng/api/options/v1/DesignationTypes" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Director",
    "value": "Director"
  },
  {
    "display": "Secretary",
    "value": "Secretary"
  }
]

Business

Business natures

The accepted values for business_nature in Business Name and TIN & VAT orders. If none fits, send Others and describe the business in other_business_nature. Company Incorporation takes a free-text description instead.

GEThttps://partners.diylaw.ng/api/options/v1/BusinessNatures
curl -X GET "https://partners.diylaw.ng/api/options/v1/BusinessNatures" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Advertising/Public Relations",
    "value": "Advertising/Public Relations"
  },
  {
    "display": "Agricultural Produce",
    "value": "Agricultural Produce"
  },
  {
    "display": "Agricultural Tools, Machines And Allied Products",
    "value": "Agricultural Tools, Machines And Allied Products"
  }
]

Share capitals

The share capitals enabled for your account. value is the category for Company Incorporation step 1.

GEThttps://partners.diylaw.ng/api/options/v1/ShareCapitals
curl -X GET "https://partners.diylaw.ng/api/options/v1/ShareCapitals" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "N1,000,000 Share Capital",
    "value": 7
  },
  {
    "display": "N5,000,000 Share Capital",
    "value": 8
  }
]

Company suffixes

GEThttps://partners.diylaw.ng/api/options/v1/Suffix
curl -X GET "https://partners.diylaw.ng/api/options/v1/Suffix" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Ltd",
    "value": "Ltd"
  },
  {
    "display": "Limited",
    "value": "Limited"
  }
]

Yes / No

For proprietor_company and company_secretary.

GEThttps://partners.diylaw.ng/api/options/v1/YesNo
curl -X GET "https://partners.diylaw.ng/api/options/v1/YesNo" \
  -H "Authorization: Bearer $DIYLAW_API_KEY"
[
  {
    "display": "Yes",
    "value": "Yes"
  },
  {
    "display": "No",
    "value": "No"
  }
]