after instead of page to read every customer. Each cursor call costs the same no matter how deep you are in the list, while high page numbers get slower and can time out on large stores.GET /v1/managers/store/customers?after=0&per_page=1000?after=<next_cursor>&per_page=1000, where <next_cursor> is the value from the previous response.per_page, or next_cursor is null.afterpage, order_by or sort_by together with after. The request is refused.per_page accepts 1 to 1000 (default 15).next_cursor is a list position, not a customer id: always send back the value you received.customers and next_cursor only. grand_total and the customer counts are not returned.date_from and date_to (YYYY-MM-DD). date_from on its own has no effect.after work exactly as before.curl --location 'https://api.zid.sa/v1/managers/store/customers?after=0&per_page=15' \
--header 'Authorization: {{Autherization}}' \
--header 'X-Manager-Token: {{Access-Token}}' \
--header 'Accept-Language: en'{
"status": "string",
"customers": [
{
"id": 0,
"name": "string",
"email": "string",
"mobile": "string",
"gender": "string",
"birth_date": "string",
"verified": true,
"is_active": true,
"is_cod_enabled": true,
"type": "string",
"business_name": "string",
"tax_number": "string",
"commercial_registration": "string",
"source": "string",
"points": 0,
"order_total_payments": "string",
"last_order_date": "string",
"created_at": "string",
"updated_at": "string",
"city": {
"name": "Other",
"id": 1,
"national_id": 3,
"priority": 10,
"country_id": 184,
"country_name": "السعودية",
"country_code": "SA",
"ar_name": "الرياض",
"en_name": "Riyadh"
},
"nickname": "string",
"pivotEmail": "string",
"pivotMobile": "string",
"order_counts": 0
}
],
"grand_total": 0,
"total_customers_count": 0,
"active_customers_count": 0,
"inactive_customers_count": 0,
"next_cursor": 0,
"message": {
"type": "success",
"code": "MSG_POPUP_OK",
"name": "Coupons",
"description": "Coupons created successfully"
}
}