Onboarding a Customer

Address lookup, POST /customers, and provisioning

This walkthrough covers creating a new customer from address lookup through job completion.

Prerequisites

  • Valid API key and secret — Authentication
  • UK customer address (postcode lookup supported)

Step 1 — Look up address (recommended)

GET /v2/addresses/lookup?postcode=SW1A%202AA
Authorization: Bearer <token>

Use returned fields in the create payload address object (posttown, postcode, street, buildingname, etc.).

Note: If summaryline is omitted, the API builds one from the address parts. If uniquedeliverypointreferencenumber is omitted, a UUID is generated automatically.

Step 2 — Create the customer

POST /v2/customers
Content-Type: application/json
Authorization: Bearer <token>
Idempotency-Key: 8cd1c587-dd9f-4eb9-88bc-7e2cd2292554

Idempotency-Key is optional. When you send it, a retry of the same body returns the original jobID for 72 hours and does not start a second signup. The key is 1–255 characters with no whitespace, and it is scoped to your partner account.

ResultStatus
Same key and body, after the first request succeeded202 with the original jobID
Same key while the first request is still in progress409
Same key with a different body422
Key sent, but the idempotency store is unavailable503 — the signup was not submitted

A request without the header is unchanged: each call is a new signup.

A 5xx clears the key so you can retry it. If that 5xx arrives after a long wait, provisioning may already have accepted the signup and only the response was lost. Look for a customer or job before retrying. A fast 5xx, with no customer afterwards, is safe to retry with the same key.

Request structure

SectionPurpose
companyCustomer name, contact email, contact phone
adminUserFirst admin user — name, optional email, optional numberE164 (no leading +)
contractterm (1 rolling monthly, or 12 / 24 / 36 fixed), optional type, plan
addressUK address (from lookup or manual)

Example

{
    "company": {
        "name": "Acme Ltd",
        "contactEmail": "[email protected]",
        "contactNumber": "+441234567800"
    },
    "adminUser": {
        "name": "Jane Admin",
        "email": "[email protected]",
        "numberE164": "441234567801"
    },
    "contract": {
        "term": 36,
        "plan": "standard"
    },
    "address": {
        "summaryline": "10 Downing Street, London, SW1A 2AA",
        "posttown": "London",
        "postcode": "SW1A 2AA",
        "street": "Downing Street",
        "number": "10"
    }
}

Rolling monthly contract

Send term: 1 to create a rolling monthly contract. Omit type. After the customer is created, contractLength on GET /customers/{customerID} is 0.

"contract": {
    "term": 1,
    "plan": "standard"
}

type: "Fixed" with term 12, 24, or 36 is a fixed term. Details: Plans and contracts.

Admin user email rule

For plans hardware_only and hardware_only_cp, adminUser.email may be omitted.

For all other plans, adminUser.email is required — otherwise the API returns 400.

To move a Hardware Only customer onto standard, office, or anywhere later, send a login email for every existing user on PATCH /customers/{customerID}/contract. The first email in that list is the customer admin email for all three plans. See Plans and contracts.

Admin user number

adminUser.numberE164 is optional. If omitted, no phone number is provisioned during signup and none is sent to the provisioning backend.

To add a number later, use POST /customers/{customerID}/numbers — see Numbers and users.

When provided, numberE164 must be in E.164 format without a leading + (for example 441234567801).

Step 3 — Track the job

Response (202):

{
    "jobID": "ORD-12345-abcde"
}

Poll GET /jobs/{jobID} — see Async jobs.

When details is present on the job, it may include:

  • adminUserID
  • numberE164 — only when a number was supplied at signup
  • destination — SIP registration details for the admin user (registrationServer, sipID, sipPassword, stunPort, stunServer, and when applicable sbcAddress and transport)

See Async jobs for the full destination field reference.

Step 4 — Verify the customer

GET /v2/customers/{customerID}

Use customerID from the job response once the job references a customer, or from a customer_created webhook payload.

Step 5 — Continue setup

Plans and contract reference

Plan enum and contract patch rules: Plans and contracts.


Did this page help you?