Add a user to a customer
express.users.add(strexpress_customer_id, UserAddParams**kwargs) -> UserAddResponse
POST/v1/express/{expressCustomerId}/users
Associates an existing user with a customer, granting them access to customer-specific resources and studies.
Parameters
express_customer_id: str
Unique Express customer identifier. Format: cus_{32-hex-chars}
user_id: str
User ID to add to the Express customer. Format: usr_{32-hex-chars}
Returns
Add a user to a customer
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
response = client.express.users.add(
express_customer_id="cus_1234567890abcdef1234567890abcdef",
user_id="usr_1234567890abcdef1234567890abcdef",
)
print(response.success){
"success": true,
"message": "Operation completed successfully"
}Returns Examples
{
"success": true,
"message": "Operation completed successfully"
}