Get Customer by ID
GET
v1/managers/store/customers/{customer_id}This endpoint retrieves the details of a certain customer using the Customer's ID.
Request
ID of the customer to retrieve
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en
if not specified.
Request samples
Responses
true
if Customer had completed identity verification.
false
if the Merchant had deactivated/banned the Customer from the given store.
Is the cash on delivery option allowed by the Merchant for the Customer.
{
"status": "object",
"customer": {
"id": 107,
"name": "Mohammed Badawi",
"email": "mohammed.badawi@gmail.com",
"mobile": "966501234567",
"gender": "male",
"birth_date": "1989-12-31",
"verified": true,
"is_active": false,
"is_cod_enabled": true,
"type": "individual",
"business_name": null,
"tax_number": null,
"commercial_registration": null,
"city": {
"id": 1,
"national_id": 3,
"name": "Riyadh",
"priority": 10,
"country_id": 184,
"country_name": "Saudi Arabia",
"country_code": "SA",
"ar_name": "الرياض",
"en_name": "Riyadh"
},
"nickname": "Momo Bibi",
"pivotEmail": "mohammed.badawi@gmail.com",
"pivotMobile": "966501234567",
"order_counts": 23,
"total_payments": 15076.72655859143,
"orders_cost_average": 655.5098503735404,
"orders": [
{
"id": 5826659,
"code": "6IJWXOYLuR",
"store_id": 3,
"order_url": "https://zid.store/osama/o/6IJWXOYLuR/inv",
"store_name": "Osama Store 1",
"shipping_method_code": "custom",
"store_url": "https://zid.store/osama/",
"order_status": {
"name": "Delivered",
"code": "delivered"
},
"currency_code": "KWD",
"customer": {
"id": 107,
"name": "Mohammed Badawi",
"verified": 1,
"email": "mohammed.badawi@gmail.com",
"mobile": "966501234567",
"note": "",
"type": null
},
"has_different_consignee": 0,
"is_guest_customer": 0,
"order_total": "12.22750000000000",
"order_total_string": "12.228 KWD",
"has_different_transaction_currency": false,
"transaction_reference": null,
"transaction_amount": 151.58173089636205,
"transaction_amount_string": "151.58 SAR",
"issue_date": "01-03-2021 | 10:34 ص",
"payment_status": "paid",
"source": "Store",
"source_code": null,
"created_at": "2021-03-01 07:34:11",
"updated_at": "2021-03-04 11:36:37",
"tags": [],
"requires_shipping": true,
"shipping": {
"method": {
"id": null,
"name": "مندوب",
"code": "custom",
"estimated_delivery_time": null,
"icon": "https://media.zid.store/static/delivery.png",
"is_system_option": false,
"waybill": null,
"waybill_tracking_id": null,
"tracking": {
"number": null,
"status": null,
"url": null
},
"courier": null,
"return_shipment": null
}
},
"payment": {
"method": {
"name": "Bank Transfer",
"code": "zid_bank_transfer",
"type": "zid_bank_transfer",
"transaction_status": "new",
"transaction_status_name": "New"
}
},
"cod_confirmed": false,
"reverse_order_label_request": null
}
]
},
"message": {
"type": "object",
"code": null,
"name": null,
"description": null
}
}