> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inflowafrica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a customer



## OpenAPI

````yaml openapi.json post /v1/customers
openapi: 3.0.0
info:
  title: Inflow API
  version: 1.0.0
  description: API service for managing customer cards
  contact:
    name: API Support
servers:
  - url: https://sandbox.inflowafrica.com/api
    description: Sandbox
  - url: https://app.inflowpay.net/api
    description: Production
  - url: http://localhost:3000/api
    description: Local
security:
  - bearerAuth: []
tags: []
paths:
  /v1/customers:
    post:
      tags:
        - External API - Customers
      summary: Create a customer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - firstName
                - lastName
                - email
              properties:
                firstName:
                  type: string
                lastName:
                  type: string
                email:
                  type: string
                phone:
                  type: string
                dateOfBirth:
                  type: string
                  format: date
                gender:
                  type: string
                identityType:
                  type: string
                identityNumber:
                  type: string
                address:
                  type: object
                  properties:
                    street:
                      type: string
                    unit:
                      type: string
                    city:
                      type: string
                    state:
                      type: string
                    postalCode:
                      type: string
                    country:
                      type: string
      responses:
        '201':
          description: Customer created
        '400':
          description: Validation error
        '409':
          description: Duplicate email
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter JWT token
    apiKeyAuth:
      type: http
      scheme: bearer
      description: Enter your API key starting with gtw_sk_

````