---
title: Add Customer
slug: add-customer
createdAt: 2026-02-05T09:33:58.280Z
---

### Purpose

Customers can be assigned to SIMs to support reporting and to provide user access limited to SIMs belonging to a specific customer.

The new customer name is specified using the `<customer>` element.

- `<customer>` must be a **unique string** within your account
- Maximum length: **50 characters**
- Empty values or names that already exist on your account will return an **Invalid Content** response

Data must be entered as **plain text**. Reserved XML characters must be escaped as described in the XML format section.

:::hint{type="warning"}
**Operational Impact**

API commands perform live configuration changes.

- Changes take effect immediately.&#x20;
- Commands may affect SIM status, service availability, charging, or usage limits.&#x20;
- Requests cannot be undone automatically.&#x20;

Ensure all parameters are validated before submitting requests to the production environment.
:::

### Endpoint

```http
POST https://api.m2miportal.com
Content-Type: application/xml
Accept: application/xml
```

### Request (XML)

```xml
<add-customer version="1" api-id="123456">
  <authentication>
    <username>username</username>
    <password>password</password>
  </authentication>
  <customer>Global Trading</customer>
</add-customer>
```

### Response (Success)

```xml
<add-customer-response api-id="123456">
  <api-outcome>Success</api-outcome>
</add-customer-response>
```

:::hint{type="info"}
## Response (Failure)

If a request cannot be processed, the response will include:

- api-outcome indicating failure&#x20;
- An error description explaining the reason&#x20;

Failure responses may occur due to:

- Invalid authentication credentials&#x20;
- Invalid or unknown identifiers (for example ICCID or MSISDN)&#x20;
- Invalid or missing parameters&#x20;
- Values not permitted for the specified SIM type or account configuration&#x20;
- Insufficient permissions&#x20;

Integrating systems should validate input data before submission and implement appropriate error handling and logging.
:::

