Error: "Please ensure that the shipping_address has less than 100 characters"
I want to populate the Shipping Address of an invoice with these values:
- address_map = Map();
- address_map.put("attention", trim(address_list_value.get(0)));
- address_map.put("street", trim(address_list_value.get(1)));
- address_map.put("street2", trim(address_list_value.get(2)));
- address_map.put("city", trim(address_list_value.get(3)));
- address_map.put("state", trim(address_list_value.get(4)));
- address_map.put("zip", trim(address_list_value.get(5)));
- invoice.put("shipping_address", address_map);
The error message from Deluge is:
- Please ensure that the shipping_address has less than 100 characters
This is the JSON from an invoice manually created.
"shipping_address": {
"zip": "39211",
"country": "USA",
"address": "600 Main Street",
"city": "Jackson",
"phone": "",
"street": "600 Main Street",
"attention": "Jon Doe",
"street2": "Apt 1B",
"state": "MS",
"fax": ""
}
This is the JSON I am trying to programmatically use.
"shipping_address": {
{
"attention": "Jon Doe",
"street": "123 Main Street",
"street2": "",
"city": "Anytown",
"state": "Illinois",
"zip": "60101"
}
}