2
無法在購物車結帳後保存裝運信息。我們正在使用magento 2 api。我的職位信息就是這樣當嘗試使用magento 2 api的用戶嘗試保存裝運信息時出現錯誤
{
"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": "[email protected]",
"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
我得到這個錯誤
「消息」:「無法保存發貨信息請檢查輸入的數據。」
能無法通過Magento的2 API