List all households
client.Households.List(ctx, query) (*CursorPagination[Household], error)
/households
Retrieve a paginated list of households using cursor-based pagination
Parameters
Returns
List all households
package main
import (
"context"
"fmt"
"github.com/withluminary/go-sdk"
"github.com/withluminary/go-sdk/option"
)
func main() {
client := withluminary.NewClient(
option.WithClientID("My Client ID"),
option.WithClientSecret("My Client Secret"),
)
page, err := client.Households.List(context.TODO(), withluminary.HouseholdListParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"data": [
{
"id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"primary_relationship_owner_id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"updated_at": "2024-01-20T14:45:00Z",
"name": "Smith Family",
"notes": "notes",
"primary_individuals": [
{
"id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"first_name": "John",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"is_beneficiary": true,
"is_deceased": true,
"is_grantor": true,
"is_primary": true,
"is_trustee": true,
"last_name": "Smith",
"updated_at": "2024-01-20T14:45:00Z",
"address_line1": "123 Main St",
"address_line2": "Apt 4B",
"city": "San Francisco",
"country": "USA",
"date_of_birth": "1980-05-15",
"date_of_death": "2019-12-27",
"deleted_at": "2019-12-27T18:11:19.117Z",
"email": "john.smith@example.com",
"middle_name": "Michael",
"notes": "notes",
"postal_code": "94102",
"state": "CA",
"suffix": "Jr."
}
]
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": false,
"end_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9",
"start_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9"
},
"total_count": 100
}
Returns Examples
{
"data": [
{
"id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"primary_relationship_owner_id": "user_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"updated_at": "2024-01-20T14:45:00Z",
"name": "Smith Family",
"notes": "notes",
"primary_individuals": [
{
"id": "client_profile_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"created_at": "2024-01-15T09:30:00Z",
"first_name": "John",
"household_id": "household_01ARZ3NDEKTSV4RRFFQ69G5FAV",
"is_beneficiary": true,
"is_deceased": true,
"is_grantor": true,
"is_primary": true,
"is_trustee": true,
"last_name": "Smith",
"updated_at": "2024-01-20T14:45:00Z",
"address_line1": "123 Main St",
"address_line2": "Apt 4B",
"city": "San Francisco",
"country": "USA",
"date_of_birth": "1980-05-15",
"date_of_death": "2019-12-27",
"deleted_at": "2019-12-27T18:11:19.117Z",
"email": "john.smith@example.com",
"middle_name": "Michael",
"notes": "notes",
"postal_code": "94102",
"state": "CA",
"suffix": "Jr."
}
]
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": false,
"end_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9",
"start_cursor": "eyJpZCI6ImhvdXNlaG9sZF8wMUFSWjNOREVLVFNWNFJSRkZRNjlHNUZBViJ9"
},
"total_count": 100
}