cURL
curl --request GET \ --url https://api.example.com/v1/customers \ --header 'Authorization: <authorization>'
{ "success": true, "data": [ {} ], "pagination": {}, "id": "<string>", "firstName": "<string>", "lastName": "<string>", "email": "<string>", "phone": "<string>", "loyaltyPoints": 123, "tags": [ {} ], "createdAt": "<string>", "updatedAt": "<string>" }
Retrieve a list of customers
GET /v1/customers
customers:read
curl -X GET "https://api.tiquo.co/v1/customers?limit=10" \ -H "Authorization: Bearer sk_live_xxxxx"
{ "success": true, "data": [ { "id": "cust_abc123", "firstName": "John", "lastName": "Doe", "email": "[email protected]", "phone": "+1234567890", "loyaltyPoints": 150, "tags": ["VIP", "frequent"], "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-20T14:00:00Z" }, { "id": "cust_def456", "firstName": "Jane", "lastName": "Smith", "email": "[email protected]", "phone": "+0987654321", "loyaltyPoints": 75, "tags": [], "createdAt": "2024-01-16T09:00:00Z", "updatedAt": "2024-01-16T09:00:00Z" } ], "pagination": { "hasMore": true, "nextCursor": "cust_def456" } }
# First page GET /v1/customers?limit=25 # Next page GET /v1/customers?limit=25&cursor=cust_def456
401
403
429
const response = await fetch('https://api.tiquo.co/v1/customers?limit=10', { headers: { 'Authorization': `Bearer ${apiKey}` } }); const { data, pagination } = await response.json();