Skip to main content

Subscription Management

info

This API is under active development and subject to change.

Update Customer

Path: /v1/customer/update

interface UpdateCustomerRequest {  
"secret_api_key": process.env.TRUE_MEDICINE_SECRET_API_KEY,
"id": "cust_8239sf", // The TrueMed customer id
"data": {
"name": "John Doe",
"email": "[email protected]",
"metadata": {
"id": "your_id_here", // Optional ID. These will be included in the webhook events we forward.
}
}
}

Subscription Update

Path: /v1/subscription/update

interface UpdateSubscriptionRequest {  
"secret_api_key": process.env.TRUE_MEDICINE_SECRET_API_KEY,
"id": "sub_8239sf", // The TrueMed customer id
"data": {
"name": "John Doe",
"email": "[email protected]",
"metadata": {
"id": "your_id_here", // Optional ID. These will be included in the webhook events we forward.
}
}
}