Customer Endpoint

1. Use the Churn Buster API customer endpoint to fetch customer data from Churn Buster, like the customer-specific card update link.

curl -X "GET" "https://api.churnbuster.io/v1/customers" \
    -H "Content-Type: application/json" \
    -u "ACCOUNT_ID:API_KEY" \
    -d $'{
 {
 "capture_url": "https://yoursite.com/billing?c="
}
}

We support finding customers by Churn Buster customer id, or source and source_id.

For example:

curl -X "GET" "https://api.churnbuster.io/v1/customers?id=10b0c034-0605-4ee0-8e08-4016febf63dc" \
   -H "Content-Type: application/json" \
   -u "ACCOUNT_ID:API_KEY"

or

curl -X "GET" "https://api.churnbuster.io/v1/customers?source=stripe&source_id=cus_EXAMPLE" \    
-H "Content-Type: application/json" \    
-u "ACCOUNT_ID:API_KEY"

2. Update customer information with the POST action below.

curl -X "POST" "https://api.churnbuster.io/v1/customers" \
    -H 'Content-Type: application/json' \
    -u 'ACCOUNT_UUID:API_KEY' \
    -d $'{
 "email": "[email protected]",
 "properties": {
   "card_update_url": "https://..."
 },
 "source": "stripe",
 "source_id": "cus_abc1234"
}'