1.1 Description
path | http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers/{id} |
method | GET/POST |
illustrate | According to the customer's ID, get the customer's detailed information. Contains user system custom fields and order information. |
1.2 parameters
none. Just use the product ID at the end of the URL directly. For example: You need to get the detailed data of a product whose product ID is 12345. You just need to send a request to http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers/12345. Special reminder: http://www.your_website_domain.com/FeiEditor/api_v1/shop/customers?id=12345 is illegal .1.3 return result
correct result |
Return format: JSON |
{ "customer": { "id": 1, "created_at": "2017-10-10T18:00:00Z", "email": "demo@api.com", "first_name": "Demo", "last_name ": "User", "username": "demouser01", "last_order_id": 123, "last_order_date": "2017-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": "" } } } |