Postman collection¶
The collection has a working request for every endpoint, in the order you'd call them. It's built from the same examples as these docs.
Set up¶
- In Postman, click Import and choose the downloaded file.
- Open the DIYLaw Partners API v1 collection, go to the Variables tab, and paste your API key into the Current value of
api_key. - Save. Every request already uses
Authorization: Bearer {{api_key}}.
Keep the key in Current value
Postman syncs Initial values to anyone the collection is shared with. Put the key only in Current value, and don't share a workspace that holds it.
Run through an order¶
Send the requests from top to bottom. Some requests save values for the ones after them:
| Request | Saves |
|---|---|
| Options → Countries | country_id (Nigeria) |
| Options → Nationalities | nationality_id (Nigerian) |
| Options → Share capitals | share_capital_id (the first one on your account) |
| Files → Upload a file | file_ref. Choose a PDF, PNG or JPEG in the Body tab first. |
| Company Incorporation → Step 1 | ci_order_ref |
| Business Name → Step 1 | bn_order_ref |
| TIN & VAT → Register | tv_order_ref |
| TIN Update → Update TIN details | tu_order_ref |
These are real orders
The collection points at the live API. Every step 1 creates a real order on your account. Use test data you're happy to see on your dashboard, and tell your DIYLaw account manager which orders were tests.
Variables¶
| Variable | Purpose |
|---|---|
base_url |
https://partners.diylaw.ng |
api_key |
Your API key. |
country_id, nationality_id, share_capital_id |
IDs used in request bodies. |
file_ref |
The last uploaded file's reference. |
ci_order_ref, bn_order_ref, tv_order_ref, tu_order_ref |
The order references the steps use. |