> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-add-new-partner-apis.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Customer

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



## OpenAPI

````yaml https://core-api-public-docs.b-cdn.net/docs/v3/PartnerPortal.json post /partner/customers
openapi: 3.0.0
info:
  title: bunny.net Partner Portal API
  version: 1.0.0
servers:
  - url: https://api.bunny.net
    description: bunny.net API Server
security:
  - AccessKey: []
tags:
  - name: Customers
  - name: Audit Log
  - name: Contract
  - name: Billing
  - name: Pricing
  - name: Products
paths:
  /partner/customers:
    post:
      tags:
        - Customers
      summary: Create Customer
      description: >-
        Create a new customer under the authenticated partner and email them a
        set-password welcome link.
      operationId: CreatePartnerCustomerEndpoint_CreateCustomer
      requestBody:
        x-name: request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePartnerCustomerRequest'
        required: true
        x-position: 1
      responses:
        '200':
          description: Customer created and welcome email sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePartnerCustomerResponse'
        '400':
          description: >-
            Missing or invalid email address, or the welcome email could not be
            sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorData'
        '403':
          description: Authenticated user is not a reseller or MSP partner.
      security:
        - AccessKey:
            - ResellerPartner
            - MSPPartner
        - bearer:
            - ResellerPartner
            - MSPPartner
components:
  schemas:
    CreatePartnerCustomerRequest:
      type: object
      additionalProperties: false
      required:
        - Email
      properties:
        Email:
          type: string
          description: Primary account email of the customer to create.
          format: email
          minLength: 1
        FirstName:
          type: string
          description: Customer's first name.
          nullable: true
        LastName:
          type: string
          description: Customer's last name.
          nullable: true
        Country:
          type: string
          description: Customer's country.
          nullable: true
        BillingEmail:
          type: string
          description: Email for receiving invoices and billing updates.
          nullable: true
        CompanyName:
          type: string
          description: Customer's company name.
          nullable: true
        CompanyVatNumber:
          type: string
          description: Customer's company VAT number.
          nullable: true
        InternalNotes:
          type: string
          description: Internal notes about the customer, visible only to partner admins.
          nullable: true
    CreatePartnerCustomerResponse:
      type: object
      additionalProperties: false
      properties:
        CustomerUserId:
          type: string
          description: Id of the newly created customer user.
          nullable: true
    ApiErrorData:
      type: object
      additionalProperties: false
      properties:
        ErrorKey:
          type: string
          nullable: true
        Field:
          type: string
          nullable: true
        Message:
          type: string
          nullable: true
  securitySchemes:
    AccessKey:
      type: apiKey
      description: API Access Key authorization header
      name: AccessKey
      in: header
    bearer:
      type: apiKey
      description: Bearer token authorization header
      name: Authorization
      in: header

````