Hi team, while calling the cart.addAddress api, I am having the invalid mapping type issue. The issue goes as soon as I comment my _custom_json attribute. There is not much info about _custom_json attribute . The requirement is to add some custom attributes to address. I suppose I should be able to add to any valid json string. attaching code and error for reference. Also I have doubt whether the same issue exists for other apis too.
this.$apiSDK.cart.addAddress({
body : {
_custom_json : JSON.stringify({i : {am : { a : 'custom json'}}}),
address : 'Splendor Tower, Gurgaon',
area_code : '385001',
city : 'Gurgaon',
country : 'India',
is_active : true,
is_default_address : true,
phone : '8708186152',
state : 'Haryana',
}
}).then((resp) => {
console.log('addAddress', resp);
})
app.0b56d67aaf4b35d6247f.js:48 Uncaught (in promise) FDKServerResponseError: Not a valid mapping type.
at app.0b56d67aaf4b35d6247f.js:48:304436
at async e.exports.addAddress (app.0b56d67aaf4b35d6247f.js:83:23424)