cURL
curl --request PATCH \ --url https://api.onsi.com/v1/members/{id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "email": "jsmith@example.com", "firstName": "<string>", "lastName": "<string>", "phone": "<string>", "workerId": "ID_123", "tier": "<string>", "accountDetails": { "accountHolder": "John Smith", "sortCode": "123456", "accountNumber": "12345678" }, "enablePayroll": true, "dob": "1990-01-01", "gender": "Female" }'
{ "email": "jsmith@example.com", "memberId": "mem_q5sdae3se6eg9m9dcvug", "firstName": "John", "lastName": "Smith", "phone": "+447123456789", "tier": "Gold", "workerId": "ID_123", "status": "active", "accountDetails": { "accountHolder": "John Smith", "sortCode": "123456", "accountNumber": "12345678" }, "enablePayroll": true, "gender": "Female", "dob": "1990-01-01" }
memberId
400
Unique key to ensure idempotency of the request
The unique identifier for a Member, prefixed with mem_
"mem_<id>"
Body
The body is of type object.
object
A member on the platform.