---
updatedAt: 2026-08-02T13:42:46.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Create an MSP Customer

The call is used to create a new customer for an MSP

> ℹ️
>
> The *customerNameId* field is identical to the *customerName* used in the create request.\
> While the *customerName* can be altered in the future, the *customerNameIdremains* fixed.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Resellers",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v1/msp/customers": {
      "post": {
        "description": "The call is used to create a new customer for an MSP",
        "summary": "Create an MSP Customer",
        "tags": [
          "MSP Customers"
        ],
        "operationId": "post_apiv1mspcustomer",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "customerName": {
                      "type": "string",
                      "description": ""
                    },
                    "customerCode": {
                      "type": "string",
                      "description": ""
                    },
                    "customerId": {
                      "type": "string",
                      "description": ""
                    },
                    "linkedAccountIds": {
                      "type": "object",
                      "description": ""
                    },
                    "customerNameId": {
                      "type": "string",
                      "description": ""
                    }
                  }
                },
                "examples": {
                  "newExample": {
                    "summary": "Response Example",
                    "value": {
                      "customerName": "xyz",
                      "customerCode": "",
                      "customerId": 999,
                      "linkedAccountIds": [
                        "111111111111"
                      ],
                      "customerNameId": "xyz"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "code": "curl --location --request POST 'https://api.umbrellacost.io/api/v1/msp/customers' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"name\": \"customerName\",\n    \"linkedAccountsIds\": [“19923818823”, “342134123”],\n    \"code\": \"customerCode\"\n}'",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The customer name\t",
                    "x-readme-id": "0.0"
                  },
                  "linkedAccountsIds": {
                    "type": "array",
                    "description": "List of linked accounts for this customer\t",
                    "items": {
                      "type": "string"
                    },
                    "x-readme-id": "0.1"
                  },
                  "code": {
                    "type": "string",
                    "description": "An additional customer identifier\t",
                    "x-readme-id": "0.2"
                  }
                },
                "type": "object",
                "required": [
                  "name",
                  "linkedAccountsIds"
                ]
              }
            }
          }
        }
      }
    }
  }
}
```