【发布时间】:2023-03-06 05:42:02
【问题描述】:
Magento 2 REST API 文档解释了一种在更新或创建客户时设置 custom_attributes 的方法。 http://devdocs.magento.com/swagger/index_20.html#/
不幸的是,我无法让它工作......
我的 POST 和 PUT JSON 请求数据是:
{
"customer": {
"custom_attributes": [
{
"attribute_code": "firstname",
"value": "TEST"
}
],
"email": "someone@exaxmple.com",
"extension_attributes": [],
"firstname": "Someone",
"gender": null,
"lastname": "Else",
"middlename": null,
"taxvat": null,
"website_id": "1"
}
}
客户已创建,但名字不是“TEST”。 有没有人遇到同样的问题并解决了?请告诉我怎么做。
【问题讨论】: