Skerry/ Guides

Add a business

A person adds a business from their personal account in steps: the official register, about, people and verification with the banking partner.

A person signs up as a person (a personal Skerry account on their Praecise account) and adds a business later, from inside it. No business-first sign-up exists. Steps, with save and return:

  1. Type and country of registration: sole trader, limited company, partnership, charity or other.
  2. Find the company in the official register and fill in its name, number, registered address, incorporation date and the type it suggests. The United Kingdom is read from Companies House (GET /business-registers/GB?q=, then /business-registers/GB/{number}), which also answers the current officers and the people with significant control (their share is the lower bound of the band the register states). Other countries answer 409 no_register: the person enters the details (register.source: "manual"); a sole trader enters their own.
  3. About: trading name and address, industry, website, what it sells, expected monthly volume, currencies, and the countries it pays and is paid from.
  4. People: directors and owners (from the register where it lists them), the person as is_applicant, every other person with an email so they can be invited to verify themselves.
  5. Verification (KYB) with the banking partner, on its hosted pages: terms, documents only where the register could not answer, each person's identity. Skerry sends the name, the email and the country and never a person's identity details; the partner decides who passes and verification.status shows its answer plainly.
  6. Done: the business becomes a business customer with the person as its applicant. Members come from Praecise; the business face opens and the account menu switches between personal and business. Becoming a Praecise organisation (or linking one the person owns) is the Praecise side's step and is recorded as organisation_ref.

Migration: db/054_business_applications.sql. Code: lib/business-applications.ts, lib/business-register.ts; the steps and the register mapping are pure code in lib/pure/business-application.ts.

The application

POST /business-applications ({ customer_id }, the person's own customer) starts one, or returns the person's open draft: there is one at a time, so they can save and return. PATCH /business-applications/{id} saves any of { type, country }, { register }, { about }, { people }; each is checked when saved, so a person is told at the step. Changing the type or country clears the register record. step is the first step whose data is missing, steps says which are complete, current and upcoming. POST /business-applications/{id}/submit ({ return_url, refresh_url? }) makes the business customer on the hosted route and answers verification_url; the people to invite are in the business_application.submitted event for the mail step. DELETE drops a draft.

A person's token may call these (Personal door), and submitting is confirmed with a passkey. Keys: SKERRY_COMPANIES_HOUSE_KEY (the platform's Companies House key, 503 register_unavailable until set), SKERRY_COMPANIES_HOUSE_URL for tests. Scopes: customers:read, customers:write. Event: business_application.submitted.

Written and kept by Skerry. Read from https://api.skerry.xyz/guides/add-a-business.md.

This page as Markdown