Replace Member
Replacing an existing member, identified by their memberId
.
As you’re providing the entire desired member state, members with a status of inactive
will be re-activated on your Onsi programme.
Relevant Error Codes
If there are any issues with the member replace, the API will return a 400
status code with the following error codes:
Authorizations
Headers
Unique key to ensure idempotency of the request
Path Parameters
The unique identifier for a Member, prefixed with mem_
"mem_<id>"
Body
A unique email address for the member
"jane-smith@onsi.com"
"John"
"Smith"
Tier name for the member
"Gold"
An optional phone number for the member
"+447123456789"
Unique ID provided by API consumer, must be unique across all members (active, invited and inactive)
"ID_123"
{
"accountHolder": "John Smith",
"sortCode": "123456",
"accountNumber": "12345678"
}
Response
A member on the platform.
Onsi's ID of the member
"mem_q5sdae3se6eg9m9dcvug"
"John"
"Smith"
"+447123456789"
Tier name for the member
"Gold"
Unique ID provided by API consumer, must be unique across all members (active, invited and inactive)
"ID_123"
The status of the member.
active
, invited
, inactive
{
"accountHolder": "John Smith",
"sortCode": "123456",
"accountNumber": "12345678"
}
true