---
title: Edit Customer
slug: edit-customer
createdAt: 2026-02-05T09:33:58.280Z
---

### Purpose

Adds or amends data in an existing customer record on your account.

The customer is identified using the `<customer>` element.
This must exactly match a customer that already exists on your account, either created via the Insight Portal or using the **Add Customer** operation.

If a customer name is supplied that does not exist on your account, the API will return an **Invalid Content** response.

All other elements are **optional**:

- Elements that are **not specified** will remain unchanged
- Elements that are included but **empty** will cause any existing content to be deleted

Field length limits apply:

- `<website>`: maximum **100 characters**
- `<head-office>`: maximum **200 characters**
- `<delivery-address>`: maximum **200 characters**
- `<billing-address>`: maximum **200 characters**
- `<notes>`: maximum **500 characters**

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
<edit-customer version="1" api-id="123456">
  <authentication>
    <username>username</username>
    <password>password</password>
  </authentication>
  <customer>Global Trading</customer>
  <website>www.gbtrading.com</website>
  <head-office>GBT House, Tech Avenue, Webberley, London, UK, TH77 3GG</head-office>
  <delivery-address>GBT Central Stores, Liverpool Road, St Helens, Merseyside, L39 3JP</delivery-address>
  <billing-address>As Head Office</billing-address>
  <notes>New Account, Initial trial, Manager PGT</notes>
</edit-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.
:::

