Caleb Evans
02/02/2022, 6:08 PM/api/items?c=6260549_SB1&language=en&country=FR¤cy=USD&fieldset=search&n=2&pricelevel=5&use_pcv=F
Even though I have English (International) enabled in both General Preferences and on the Website Setup Record, the following, the following returns:
{
"errors": {
"language and country": "must identify a language associated with this site"
},
"code": 400
}
If I use language=fr&country=FR
or language=en&country=US
, then I get a proper 200 with results. Just not for combos like en-FR
. What am I missing here?Steve Goldberg
02/02/2022, 6:14 PMSteve Goldberg
02/02/2022, 6:20 PMlanguage
and country
in the requests to the API will be automatically determined from the language/locale code that is set in that field. Eg, I have a test domain set up with the language set to es_AR which means that it will use Latin American Spanish and Argentina as the country automaticallyCaleb Evans
02/02/2022, 6:57 PMEnglish (International)
language encompasses?Steve Goldberg
02/02/2022, 6:58 PMSteve Goldberg
02/02/2022, 6:59 PMSteve Goldberg
02/02/2022, 7:00 PMCaleb Evans
02/02/2022, 8:47 PMKeith Fetterman
02/03/2022, 12:20 AM/api/items?c=6260549_SB1&language=en&country=DE
Shouldn’t the International English language work for any country except for the country specific languages, like AU, CA, UK, etc?
We have “English (International)” configured in the General Preferences and selected in the website setup record.Keith Fetterman
02/03/2022, 12:23 AMKeith Fetterman
02/03/2022, 12:39 AMNotice (SuiteScript)
en_DE is not a valid value for field site language.
@Steve Goldberg, are we missing something?
Thanks for the help.Steve Goldberg
02/03/2022, 11:08 AMSteve Goldberg
02/03/2022, 11:09 AMSteve Goldberg
02/03/2022, 11:11 AMSteve Goldberg
02/03/2022, 11:15 AMKeith Fetterman
02/10/2022, 6:54 PMSteve Goldberg
02/10/2022, 6:59 PMSteve Goldberg
02/10/2022, 7:00 PMKeith Fetterman
02/10/2022, 7:02 PMKeith Fetterman
02/10/2022, 7:03 PMSteve Goldberg
02/10/2022, 7:04 PMSteve Goldberg
02/10/2022, 7:05 PMKeith Fetterman
02/10/2022, 7:07 PMSteve Goldberg
02/10/2022, 7:08 PMSteve Goldberg
02/10/2022, 7:09 PMKeith Fetterman
02/10/2022, 7:09 PMSteve Goldberg
02/10/2022, 7:10 PMSteve Goldberg
02/10/2022, 7:10 PMSteve Goldberg
02/10/2022, 7:11 PMKeith Fetterman
02/10/2022, 7:11 PMKeith Fetterman
02/10/2022, 7:21 PM