Skip to content

Changes from v1.1

If you integrated using the v1.1 PDF guide, these are the changes to make. The endpoint paths (/api/…/v1/…) are unchanged.

Must change

Area v1.1 Now
Base URL http://104.236.117.52 https://partners.diylaw.ng (HTTPS only)
Getting a credential POST /api/account/v1/Login with email and password Generate an API key on the dashboard. See Authentication. The Login endpoint has been removed.
Auth header Authorization: Token <token> Authorization: Bearer <api key>
File upload response {"resp": "<url>"} {"file": "<reference>"}. Send the file value in order fields. See File uploads.
File references The document name returned as resp The file value. TIN & VAT accepts file1–file4 (file5 was removed).
File types Not specified PDF, PNG or JPEG only, up to 5 MB, and the content must match the extension.
Company Incorporation step 1 URL Documented as /api/order/v1/BusinessName/step1 /api/order/v1/CompanyIncorporation/step1

v1.1 tokens stop working when this version goes live. Generate your API key as soon as your dashboard account is ready, and switch your integration over.

Now enforced

Requests that used to be accepted may now return 400:

  • Choice fields must use the listed values, e.g. business_nature, identity_type and gender. Blank values are no longer accepted. The identity type is Driver's Licence (with an apostrophe), as returned by IdentityTypes.
  • Conditional fields are required: other_business_nature when business_nature is Others; director details when is_shareholder_director is true; company details when proprietor_company or company_secretary is Yes.
  • Dates must be YYYY-MM-DD, and emails must be valid.
  • no_of_shares must be a whole number of at least 1.
  • Share capital (category) must be one enabled for your account.
  • File fields must hold a reference returned by FileUpload to your own account.
  • Directors (step 3) need an uploaded director_identity.

New

  • TIN Update product: POST /api/order/v1/TinUpdate. See TIN Update.
  • Business Name proprietors take an optional passport photograph.
  • GET /api/account/v1/Me to check your key. See Authentication.
  • GET /api/options/v1/States?country=<country ID> and GET /api/options/v1/NigerianStates. See States.
  • GET /api/options/v1/ShareholderTypes and GET /api/options/v1/YesNo.
  • GET /api/product/v1/ProductSteps?name=<slug>. See Product steps.
  • productSlug in ProductCategories.
  • Every step can be read back with GET and ?order-ref=.
  • …/CompanyIncorporation/step2/AddCompany still works and behaves exactly like step2.

Response changes

  • Order calls always return {"orderReference": "...", "data": {...}}. Calls that create something return 201 Created instead of 200.
  • Country and nationality fields come back as IDs, the same as you send them.
  • People steps return the created person with its id. GET returns the full list.
  • Errors use the formats on the Errors page. A reference for an order that isn't yours returns 404.
  • Requests are rate limited. See Rate limits.