Retrieve and filter a paginated list of customers
GET /customers
curl -X GET "https://api.spendjuice.com/customers?limit=2" \ -H "Authorization: YOUR_API_KEY"
{ "data": [ { "id": "6f7e1e7f-93d1-4fcc-b7a4-738f869615c8", "first_name": "Test", "last_name": "Customer", "email": "test@custom.er", "phone_number": "+2348012345678", "billing_address": { "line1": "123 Test lane", "line2": "356 Mike Drive", "city": "Anon", "state": "Acme", "zip_code": "12345", "country": "US" }, "created_at": "2024-03-01T12:00:00Z", "updated_at": "2024-03-01T12:00:00Z" }, { "id": "7a8b9c0d-1e2f-3g4h-5i6j-7k8l9m0n1o2p", "first_name": "Jane", "last_name": "Doe", "email": "jane@example.com", "phone_number": "+2348012345679", "billing_address": { "line1": "456 Sample St", "line2": null, "city": "Lagos", "state": "LA", "zip_code": "23401", "country": "NG" }, "created_at": "2024-03-02T12:00:00Z", "updated_at": "2024-03-02T12:00:00Z" } ], "pagination": { "before": null, "after": "7a8b9c0d-1e2f-3g4h-5i6j-7k8l9m0n1o2p", "limit": 2 } }
curl -X GET "https://api.spendjuice.com/customers?email=test@custom.er&created_after=2024-01-01T00:00:00Z" \ -H "Authorization: YOUR_API_KEY"
after
429 Too Many Requests