OuiPay
API ReferenceCustomers

Update a customer

PATCH /v1/customers/{id} : update mutable customer fields.

PATCH /v1/customers/{id}

Headers

HeaderRequiredValue
AuthorizationyesBearer sk_...
Content-Typeyesapplication/json

Path params

ParamTypeNotes
idstringCustomer ULID

Body

FieldTypeNotes
emailstringNew email (unique)
phonestringNew phone (E.164)
namestringDisplay name

kyc_status and country_code are not mutable here: KYC transitions through the verification flow; country is set at onboarding.

Request

curl -X PATCH https://api.ouipay.com/v1/customers/01M2S17... \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{ "email": "new@example.com" }'

Response 200

Returns the updated customer object.

Errors

HTTPerror.codeCause
400VALIDATIONInvalid field
404NOT_FOUNDNo such customer
409DUPLICATEValue in use

On this page