Base URL https://api.tolt.com
Query Parameters
The program ID from where you want to list the customers.
Only return customers referred by this partner.
The order of the customers to return by created_at. Default is desc.
Filter customers by status. Valid values are: ‘lead’, ‘trialing’, ‘active’,
‘canceled’
Specify which related objects to include in the response. Valid values are
‘partner’ and ‘program’ . Use expand[]=partner or
expand[]=program to include the related objects.
Only return customers created after this date.
Only return customers created before this date.
A limit on the number of customers to return. Default is 10, max is 100.
A cursor for use in pagination. starting_after is an object ID that defines
your place in the list. The value of the starting_after parameter is the
customer ID. To receive the next page use the last customer ID from the
previous page.
A cursor for use in pagination. ending_before is an object ID that defines
your place in the list. The value of the ending_before parameter is the
customer ID. To receive the previous page use the first customer ID from the
previous page.
Response
Whether the request was successful
Whether there are more pages of results available
Total number of customers matching the query
Unique identifier for the customer, uuid
or prefixed with cust_
Your unique identifier for the customer
ID of the referring partner
Your internal customer identifier
ISO 8601 timestamp of when the customer was created
ISO 8601 timestamp of when the customer became active
Current status of the customer. Valid values are: ‘lead’, ‘trialing’, ‘active’,
‘canceled’
Program ID the customer belongs to
Partner details when expanded: Unique identifier for the partner
Partner’s status. Valid values are: ‘active’, ‘pending’, ‘suspended’, ‘rejected’.
ISO 8601 timestamp of when the partner was created
Program details when expanded: Unique identifier for the program
Three-letter ISO currency code
ISO 8601 timestamp of when the program was created
curl -X GET 'https://api.tolt.com/v1/customers?program_id=prg_YRsbPDAKhWfdqJbFACheh' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d ''
{
"success" : true ,
"has_more" : true ,
"total_count" : 85 ,
"data" : {
"data" : [
{
"id" : "cust_dK9bzRGn46BhVgNFHD6fDgXW" ,
"email" : "customer@example.com" ,
"partner_id" : "part_s7mbzRGn46BhVgNFHD6fDgXW" ,
"name" : "Jim Halpert" ,
"customer_id" : "jim_halpert_789" ,
"created_at" : "2025-01-15T14:30:00.000Z" ,
"updated_at" : "2025-01-15T14:30:00.000Z" ,
"status" : "active" ,
"program_id" : "prg_YRsbPDAKhWfdqJbFACheh" ,
"organization_id" : "org_JE3mfYNL9ci7sFaJazAv2"
}
]
}
}