【发布时间】:2017-05-06 15:54:18
【问题描述】:
在从购物车到结帐的过程后无法保存运输信息。我们正在使用 magento 2 api。我的post信息是这样的
{
"addressInformation": {
"shipping_address": {
"id": 0,
"region": "IND",
"region_id": 0,
"region_code": "string",
"country_id": "IN",
"street": [
"string"
],
"company": "string",
"telephone": "123456789",
"fax": "string",
"postcode": "700091",
"city": "Kolkata",
"firstname": "Sauptik",
"lastname": "Basak",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 2,
"email": "test1@test1.com",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 1,
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"billing_address": {
"id": 0,
"region": "string",
"region_id": 0,
"region_code": "string",
"country_id": "IN",
"street": [
"string"
],
"company": "string",
"telephone": "123456789",
"fax": "string",
"postcode": "700091",
"city": "Kolkata",
"firstname": "Sauptik",
"lastname": "Basak",
"middlename": "string",
"prefix": "string",
"suffix": "string",
"vat_id": "string",
"customer_id": 2,
"email": "string",
"same_as_billing": 0,
"customer_address_id": 0,
"save_in_address_book": 0,
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
},
"shipping_method_code": "string",
"shipping_carrier_code": "string",
"extension_attributes": {},
"custom_attributes": [
{
"attribute_code": "string",
"value": "string"
}
]
}
}
我的终点是http://192.168.0.61/WallisFudge/index.php/rest/V1/carts/3/shipping-information
我遇到了这个错误
"message": "无法保存发货信息。请检查输入数据。"
无法通过 magento 2 api 处理结帐
【问题讨论】: