I have managed to come up to the following:
I think you will struggle to get more from it. Basically, the item keys do come from Magento core parsing method so that your result comes to you as an xml.
I can detail my steps but it does amount to 2 more interfaces and a bit of parsing.. Do let me know if this output is something you could compromise with.
To get the desired result, you need to create more classes.
In this case, getLocalization should return an instance of a class, like:
* @return \MyCompany\MyModule\Model\Localization
public function getLocalization(): array
// Unserialize array
$data = $this->_getData('localization') ? unserialize($this->_getData('localization')) :...
Ok, first of all, error occurs every time you have done something wrong, it doesn't matter it's invalid postcode, invalid region_id or something else. It's generic error, for example if you provide incorrect region_id for region this error will occur instead of for example "Your region_id is incorrect" or something like that.
In my case, the same ...
Here is my code which I am using to connect with Netsuite.
If anyone has question, feel free to ask me because I did a lot struggle to understand NetSuite API and its structure.
// PRODUCTION CREDENTIALS
const NETSUITE_CONSUMER_KEY = 'xxxxxxxxxxxxxxxxxxxxxx';
const NETSUITE_ACCOUNT = '...