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_typeandgender. Blank values are no longer accepted. The identity type isDriver's Licence(with an apostrophe), as returned by IdentityTypes. - Conditional fields are required:
other_business_naturewhenbusiness_natureisOthers; director details whenis_shareholder_directoristrue; company details whenproprietor_companyorcompany_secretaryisYes. - Dates must be
YYYY-MM-DD, and emails must be valid. no_of_sharesmust 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
FileUploadto 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
passportphotograph. GET /api/account/v1/Meto check your key. See Authentication.GET /api/options/v1/States?country=<country ID>andGET /api/options/v1/NigerianStates. See States.GET /api/options/v1/ShareholderTypesandGET /api/options/v1/YesNo.GET /api/product/v1/ProductSteps?name=<slug>. See Product steps.productSlugin ProductCategories.- Every step can be read back with
GETand?order-ref=. …/CompanyIncorporation/step2/AddCompanystill works and behaves exactly likestep2.
Response changes¶
- Order calls always return
{"orderReference": "...", "data": {...}}. Calls that create something return201 Createdinstead of200. - Country and nationality fields come back as IDs, the same as you send them.
- People steps return the created person with its
id.GETreturns 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.