---
title: "Create a new customer or retrieve a customer by its external id"
method: POST
path: "/accounts/customers"
tags: ["Customers"]
---

# Create a new customer or retrieve a customer by its external id

`POST /accounts/customers`

## Request body

- CreateCustomerRequest20230401
  - `dateOfBirth` string — Customer's date of birth in ISO format (yyyy-MM-dd)
  - `email` string, email — Customer's email
  - `externalId` string — Customer's external id
  - `name` CustomerName
    - `firstName` string — Your customer's first name
    - `lastName` string — Your customer's last name
  - `phone` string — Customer's phone number
  - `type` 'INDIVIDUAL' | 'BUSINESS' — Customer type

## Response `200`

Customer is returned

## Other responses

- `400` — Bad Request : check request values and format
- `401` — Invalid credentials
- `403` — Unauthenticated or authenticated with insufficient access
- `500` — Server Error. This applies to all 5xx errors, including but not limited to 500, 501, 502, 503, and 504 errors. You should treat all of these errors the same.

---

[API](https://skmtc.net/meld/apis/bank-linking.md) · [All operations](https://skmtc.net/meld/apis/bank-linking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meld/bank-linking/revisions/818d6079a611/schema)
