客戶API / 查詢客戶

發布日期:2018-10-27
瀏覽次數:1046
  

 

1.1 說明

 
路徑 //www.your_website💛_domain.com/FeiEওditor/api_v1/shop/customers
方法 GET/POST
說明 根據查詢條件,獲得商品列表。
 
 

1.2 參數

 
名稱 必須 類型 描述
filter[] No array 過濾器。使用方法請點這里
filter[limit] No int 一次查詢返回的商品數量,默認是10。有效范圍是1到1000。
page No int 當前查詢的頁數,和filter[limit]配合使用。用來實現分頁查詢。
 
 

1.3 返回結果

 
正確結果
返回格式:JSON
{
  "customers": [
    {
      "id": 1,
      "created_at": "2018-10-10T18:00:00Z",
      "email": "[email protected]",
      "first_name": "Demo",
      "last_name": "User",
      "username": "demouser01",
      "last_order_id": 123,
      "last_order_date": "2018-10-10T18:00:00Z",
      "orders_count": 10,
      "total_spent": "1034.58",
      "avatar_url": "",
      "billing_address": {
        "first_name": "",
        "last_name": "",
        "company": "",
        "address_1": "",
        "address_2": "",
        "city": "",
        "state": "",
        "postcode": "",
        "country": "",
        "email": "",
        "phone": ""
      },
      "shipping_address": {
        "first_name": "",
        "last_name": "",
        "company": "",
        "address_1": "",
        "address_2": "",
        "city": "",
        "state": "",
        "postcode": "",
        "country": ""
      }
    }
  ]
}
 

1.4 相關API

登錄后即可發表評論,立即登錄.

  API相關文檔