如何使用rest Magento2获取客户的所有地址?是否有任何开箱即用的 API?
问问题
2249 次
1 回答
2
是的,假设您有客户 ID:
GET /V1/customers/{customerId}
这将返回所有客户地址
"customer":
{
"id": 0,
"default_billing": "string",
"default_shipping": "string",
"addresses": [
{
"id": 0,
"customer_id": 0,
"region": {
"region_code": "string",
"region": "string",
"region_id": 0,
"extension_attributes": {}
},
"region_id": 0,
"country_id": "string",
"street": [
"string"
]
}
]
}
于 2018-02-16T09:44:18.313 回答