gutterboy Posted August 30, 2014 Report Posted August 30, 2014 I'm just wondering when you're using the API and you're creating a client for example....... according to the docs, if you pass in a state you must also pass in a country. So if I passed in for example a blank state, would it still require the country or is it treated the same as not passing in anything for the state? Thanks!
gutterboy Posted August 31, 2014 Author Report Posted August 31, 2014 Though testing I answered my own question........ seems Blesta treats blank values are still being passed in.
Blesta Addons Posted August 31, 2014 Report Posted August 31, 2014 I'm just wondering when you're using the API and you're creating a client for example....... according to the docs, if you pass in a state you must also pass in a country. So if I passed in for example a blank state, would it still require the country or is it treated the same as not passing in anything for the state? Thanks! country is a required field, so passing state empty or not , will return a error as country is not set .
gutterboy Posted August 31, 2014 Author Report Posted August 31, 2014 country is a required field, so passing state empty or not , will return a error as country is not set . Well yeah........ country is only required if state is sent.
Tyson Posted August 31, 2014 Report Posted August 31, 2014 - state The 3-character ISO 3166-2 subdivision code, requires country (optional) - country The 3-character ISO 3166-1 country code, required if state is given (optional) Looks like you already figured it out, but it should be noted that fields that mention dependency on another if 'given' refer to even passing in the field, regardless of its value. gutterboy 1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now