---
title: "Create Customer"
method: POST
path: "/partner/customers"
tags: ["Customers"]
---

# Create Customer

`POST /partner/customers`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/partner/customers`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/docs/partner/customers/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new customer under the authenticated partner and email them a set-password welcome link.

## Request body

- CreatePartnerCustomerRequest
  - `Email` string, email, required: Primary account email of the customer to create.
  - `FirstName` string, nullable: Customer's first name.
  - `LastName` string, nullable: Customer's last name.
  - `Country` string, nullable: Customer's country.
  - `BillingEmail` string, nullable: Email for receiving invoices and billing updates.
  - `CompanyName` string, nullable: Customer's company name.
  - `CompanyVatNumber` string, nullable: Customer's company VAT number.
  - `InternalNotes` string, nullable: Internal notes about the customer, visible only to partner admins.

## Response `200`

Customer created and welcome email sent.

- CreatePartnerCustomerResponse
  - `CustomerUserId` string, nullable: Id of the newly created customer user.

## Other responses

- `400`: Missing or invalid email address, or the welcome email could not be sent.
- `403`: Authenticated user is not a reseller or MSP partner.

---

[API](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-partner-portal-api/revisions/daf325756630?raw)
