Customers

Patch Customer

Change the phone number, the country or your own identifier of a customer.
PATCH/v1/customers/{customer_uuid}/

Send only the fields you change. The country is an ISO 3166-1 alpha-3 code; a two-letter code is accepted and stored as its three-letter form. A customer of another partner answers 404.

Authorization

X-Api-Key
string required
API key generated in the Developers section of the Stablegate app. Send it in the X-Api-Key header on every request; the partner API does not require request signing.

Path parameters

customer_uuid
string<uuid> required
Customer UUID

Headers

Idempotency-Key
string
Makes the request safe to retry. The same key with the same body replays the cached response with Idempotency-Replay: true; a different body under the same key answers 422. Keys are kept for 24 hours.

Request body

phone
string | null
Phone number in international format
country_code
string | null
ISO 3166-1 alpha-3 country code
external_reference
string | null
The partner's own identifier of this customer

Responses

Successful Response
curl https://api.stablegate.com/v1/customers/CUSTOMER_UUID/ \
  --request PATCH \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "string",
  "country_code": "string",
  "external_reference": "string"
}'
No content
Copyright © 2026