List accounts
embed.accounts.list(AccountListParams**kwargs) -> SyncPageNumberSchema[Data]
/v1/accounts
Returns a list of accounts associated with your Straddle platform integration. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. This endpoint supports advanced sorting and filtering options.
Parameters
search_text: Optional[str]
correlation_id: Optional[str]
request_id: Optional[str]
Returns
List accounts
from straddle import Straddle
client = Straddle(
api_key="My API Key",
)
page = client.embed.accounts.list()
page = page.data[0]
print(page.id)
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_level": "standard",
"organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"type": "business",
"business_profile": {
"name": "name",
"website": "https://example.com",
"address": {
"address1": "address1",
"city": "city",
"state": "SE",
"zip": "zip",
"address2": "address2",
"country": "country",
"line1": "line1",
"line2": "line2",
"postal_code": "21029-1360"
},
"description": "description",
"industry": {
"category": "category",
"mcc": "mcc",
"sector": "sector"
},
"legal_name": "legal_name",
"phone": "+46991022",
"support_channels": {
"email": "dev@stainless.com",
"phone": "+46991022",
"url": "https://example.com"
},
"tax_id": "210297980",
"use_case": "use_case"
},
"capabilities": {
"consent_types": {
"internet": {
"capability_status": "active"
},
"signed_agreement": {
"capability_status": "active"
}
},
"customer_types": {
"businesses": {
"capability_status": "active"
},
"individuals": {
"capability_status": "active"
}
},
"payment_types": {
"charges": {
"capability_status": "active"
},
"payouts": {
"capability_status": "active"
}
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"metadata": {
"foo": "string"
},
"settings": {
"charges": {
"daily_amount": 0,
"funding_time": "immediate",
"linked_bank_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"max_amount": 0,
"monthly_amount": 0,
"monthly_count": 0
},
"payouts": {
"daily_amount": 0,
"funding_time": "immediate",
"linked_bank_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"max_amount": 0,
"monthly_amount": 0,
"monthly_count": 0
}
},
"terms_of_service": {
"accepted_date": "2019-12-27T18:11:19.117Z",
"agreement_type": "embedded",
"agreement_url": "agreement_url",
"accepted_ip": "accepted_ip",
"accepted_user_agent": "accepted_user_agent"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z",
"max_page_size": 0,
"page_number": 0,
"page_size": 0,
"sort_by": "sort_by",
"sort_order": "asc",
"total_items": 0,
"total_pages": 0
},
"response_type": "object"
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"access_level": "standard",
"organization_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"type": "business",
"business_profile": {
"name": "name",
"website": "https://example.com",
"address": {
"address1": "address1",
"city": "city",
"state": "SE",
"zip": "zip",
"address2": "address2",
"country": "country",
"line1": "line1",
"line2": "line2",
"postal_code": "21029-1360"
},
"description": "description",
"industry": {
"category": "category",
"mcc": "mcc",
"sector": "sector"
},
"legal_name": "legal_name",
"phone": "+46991022",
"support_channels": {
"email": "dev@stainless.com",
"phone": "+46991022",
"url": "https://example.com"
},
"tax_id": "210297980",
"use_case": "use_case"
},
"capabilities": {
"consent_types": {
"internet": {
"capability_status": "active"
},
"signed_agreement": {
"capability_status": "active"
}
},
"customer_types": {
"businesses": {
"capability_status": "active"
},
"individuals": {
"capability_status": "active"
}
},
"payment_types": {
"charges": {
"capability_status": "active"
},
"payouts": {
"capability_status": "active"
}
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"metadata": {
"foo": "string"
},
"settings": {
"charges": {
"daily_amount": 0,
"funding_time": "immediate",
"linked_bank_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"max_amount": 0,
"monthly_amount": 0,
"monthly_count": 0
},
"payouts": {
"daily_amount": 0,
"funding_time": "immediate",
"linked_bank_account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"max_amount": 0,
"monthly_amount": 0,
"monthly_count": 0
}
},
"terms_of_service": {
"accepted_date": "2019-12-27T18:11:19.117Z",
"agreement_type": "embedded",
"agreement_url": "agreement_url",
"accepted_ip": "accepted_ip",
"accepted_user_agent": "accepted_user_agent"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z",
"max_page_size": 0,
"page_number": 0,
"page_size": 0,
"sort_by": "sort_by",
"sort_order": "asc",
"total_items": 0,
"total_pages": 0
},
"response_type": "object"
}