⚡️ Quickstart: create your first customer

Create a customer on behalf of a biller.

📘

Prerequisites

  1. You have obtained a user access token by following the steps in the Authorization flow guide.

Create a customer


curl 'https://staging.adfin.com/api/customers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_USER_ACCESS_TOKEN}' \
--data-raw '{
    "name": "Chris Carty",
    "people": [
        {
            "firstName": "Chris",
            "lastName": "Carty",
            "email": "chris@adfin.com",
            "phoneNo": "+447654432234"
        }
    ],
    "addresses": [
        {
        "city": "London",
        "postalCode": "E2 7GR",
        "country": "UK",
        "addressLine1": "4 Street"
        }
    ]
}'

Example response:

{
    "id": "f6495ec3-ff84-4426-b18d-64f5d8e6c420",
    "name": "Chris Carty",
    "creationTime": "2024-11-14T11:12:18.487UTC",
    "people": [
        {
            "firstName": "Chris",
            "lastName": "Carty",
            "email": "chris@adfin.com",
            "phoneNo": "+447654432234"
        }
    ],
    "addresses": [
        {
            "city": "London",
            "postalCode": "E2 7GR",
            "country": "UK",
            "addressLine1": "4 Street"
        }
    ],
    "directDebitMandate": {},
    "timezone": "Europe/London"
}