Customers

Update a customer

PATCH/api/v1/customers/{id}

Changes the fields you send and leaves the others as they are. A field sent as null is cleared, except locale. A field that is not in the request body schema is refused.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

The customer's ID.

Formatuuid

Header Parameters

FlexMalipo-Version?"2026-11-06"

The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.

Value in

  • "2026-11-06"
Idempotency-Key?string

A unique key you choose for this request: 1 to 255 visible ASCII characters, no spaces. A UUID works well. Never put personal data in it. If a request times out, send it again with the same key and the same body to get the first response back, with the header Idempotent-Replayed: true. A key is kept for 24 hours. Sending the same key with another body answers 400 idempotency_key_reused.

Match^[\x21-\x7E]+$
Length1 <= length <= 255

Request Body

application/json

The customer fields to change. Send only the ones you want to change. A field sent as null is cleared, except locale and zeroUsageInvoice. Any other field is refused with 400.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api-malipo.flex.co.tz/api/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06" \  -H "Idempotency-Key: 5f1c1e0a-3b7e-4c8e-9d1a-2f6b8a4c7e11" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "livemode": true,  "name": "Amina Juma",  "email": "amina@example.com",  "phone": 255744553111,  "externalId": "user_8841",  "locale": "en",  "metadata": {    "property1": "string",    "property2": "string"  },  "zeroUsageInvoice": "follow",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}