Skip to main content

Get customer current usage

Route

GET
/api/v1/customers/:external_customer_id/current_usage?external_subscription_id=id

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
EXTERNAL_CUSTOMER_ID="__EXTERNAL_CUSTOMER_ID__"
EXTERNAL_SUBSCRIPTION_ID="__EXTERNAL_SUBSCRIPTION_ID__"

curl --location --request GET "$LAGO_URL/api/v1/customers/$EXTERNAL_CUSTOMER_ID/current_usage?external_subscription_id=$EXTERNAL_SUBSCRIPTION_ID" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json'

Arguments

AttributesTypeDescription
external_customer_idString      
Required
Customer unique identifier in your application

Responses

Returns a customer usage object.