Update a customer
express.update(strexpress_customer_id, ExpressUpdateParams**kwargs) -> ExpressUpdateResponse
PATCH/v1/express/{expressCustomerId}
Updates a customer's properties such as name or other metadata. All fields are optional - only provided fields will be updated.
Parameters
express_customer_id: str
Unique Express customer identifier. Format: cus_{32-hex-chars}
express_customer_name: Optional[str]
Updated name for the Express customer
minLength1
metadata: Optional[Dict[str, str]]
Updated metadata. Pass null to clear all metadata
Returns
Update 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
)
express = client.express.update(
express_customer_id="cus_1234567890abcdef1234567890abcdef",
)
print(express.created_at){
"createdAt": "2024-01-15T09:00:00Z",
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center - Radiology Department",
"isActive": true,
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}Returns Examples
{
"createdAt": "2024-01-15T09:00:00Z",
"expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
"expressCustomerName": "City Medical Center - Radiology Department",
"isActive": true,
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}