---
updatedAt: 2025-06-09T22:12:30.000Z
agentTools:
  projectIndex: https://developers.baremetrics.com/llms.txt
---

# Create Customer

This endpoint allows you to create a customer record. After you create the record, you will be able to create a [Subscription](#create-subscription)

> 🚧 It may take a little while for us to fetch all of the profile information for the customer.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "production",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.baremetrics.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "APIKEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/{source_id}/customers": {
      "post": {
        "summary": "Create Customer",
        "description": "This endpoint allows you to create a customer record. After you create the record, you will be able to create a [Subscription](#create-subscription)",
        "operationId": "create-customer",
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "description": "Please see [Sources](ref:sources)",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "oid"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string",
                    "description": "Your own notes for this customer. These will be displayed in the profile"
                  },
                  "email": {
                    "type": "string",
                    "description": "An email address for this customer. This is used to lookup extra profile information"
                  },
                  "oid": {
                    "type": "string",
                    "description": "Your unique ID for the customer"
                  },
                  "created": {
                    "type": "string",
                    "description": "A unix timestamp of when this customer was created. Defaults to now.",
                    "default": "NOW",
                    "format": "date-time"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"customer\": {\n    \"oid\": \"customer_1\",\n    \"source_id\": \"source_1\",\n    \"source\": \"stripe\",\n    \"created\": 1492605754,\n    \"email\": \"customer_1@baremetrics.com\",\n    \"name\": \"Customer 1\",\n    \"display_image\": \"https://logo.clearbit.com/baremetrics.com\",\n    \"display_name\": \"Customer 1\",\n    \"notes\": \"Here are some notes\",\n    \"ltv\": 0,\n    \"is_active\": false,\n    \"is_canceled\": false,\n    \"current_mrr\": 0,\n    \"current_plans\": []\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "customer": {
                      "type": "object",
                      "properties": {
                        "oid": {
                          "type": "string",
                          "example": "customer_1"
                        },
                        "source_id": {
                          "type": "string",
                          "example": "source_1"
                        },
                        "source": {
                          "type": "string",
                          "example": "stripe"
                        },
                        "created": {
                          "type": "integer",
                          "example": 1492605754,
                          "default": 0
                        },
                        "email": {
                          "type": "string",
                          "example": "customer_1@baremetrics.com"
                        },
                        "name": {
                          "type": "string",
                          "example": "Customer 1"
                        },
                        "display_image": {
                          "type": "string",
                          "example": "https://logo.clearbit.com/baremetrics.com"
                        },
                        "display_name": {
                          "type": "string",
                          "example": "Customer 1"
                        },
                        "notes": {
                          "type": "string",
                          "example": "Here are some notes"
                        },
                        "ltv": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "is_active": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "is_canceled": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "current_mrr": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "current_plans": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"error\": \"Error message here\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Error message here"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```