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
Validation Error
trace_id
string required
error_code
string required
One of:
devapi_internal_error, devapi_request_validation_error, devapi_iban_parse_error, devapi_customer_close_error, devapi_bank_code_required_error, devapi_download_aol_error, devapi_not_found_error, devapi_bad_request_error, devapi_email_occupied_error, devapi_idempotency_invalid_key, devapi_idempotency_key_misuse, devapi_idempotency_request_in_progress, devapi_kyc_application_link_error, devapi_instant_verification_error, devapi_unauthorized_error, devapi_forbidden_error, devapi_method_not_allowed_error, devapi_service_unavailable_errormessage
string required
details
object[] required
loc
string | string[] required
msg
string required
type
string required
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
{
"trace_id": "string",
"error_code": "devapi_internal_error",
"message": "string",
"details": [
{
"loc": "string",
"msg": "string",
"type": "string"
}
]
}