---
updatedAt: 2025-06-21T11:50:20.000Z
agentTools:
  projectIndex: https://developers.tap.company/llms.txt
---

# Create a Customer

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Customers.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.tap.company/v2/customers"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "sk_test_XKokBfNWv6FIYuTMg5sLPjhJ"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/": {
      "post": {
        "description": "",
        "operationId": "post_",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "first_name": {
                    "type": "string",
                    "default": "First",
                    "description": "The first name of the customer"
                  },
                  "middle_name": {
                    "type": "string",
                    "default": "Middle",
                    "description": "The middle name of the customer"
                  },
                  "last_name": {
                    "type": "string",
                    "default": "Last"
                  },
                  "email": {
                    "type": "string",
                    "default": "customer@test.com",
                    "description": "The email of the customer.(Required if the phone is not provided)"
                  },
                  "phone": {
                    "type": "object",
                    "description": "The phone number of the customer.(Required if the email is not provided)",
                    "properties": {
                      "country_code": {
                        "type": "string",
                        "default": "965",
                        "description": "The country code of the mobile number."
                      },
                      "number": {
                        "type": "string",
                        "default": "512345678",
                        "description": "The number of the customer without the country code."
                      }
                    },
                    "required": [
                      "country_code",
                      "number"
                    ]
                  }
                },
                "type": "object",
                "required": [
                  "first_name"
                ]
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```