# SW 5.3.2 - API customer create gibt Validaton Error zurück: country: This value should not be empty

**URL:** <https://forum.shopware.com/t/sw-5-3-2-api-customer-create-gibt-validaton-error-zuruck-country-this-value-should-not-be-empty/48204>\
**Category:** Programmierung\
**Created:** [12. September 2017 um 02:46 UTC](https://forum.shopware.com/t/sw-5-3-2-api-customer-create-gibt-validaton-error-zuruck-country-this-value-should-not-be-empty/48204 "2017-09-12T02:46:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gentlemon](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@gentlemon](https://forum.shopware.com/u/gentlemon)\
**Post date:** [12. September 2017 um 02:46 UTC](https://forum.shopware.com/t/sw-5-3-2-api-customer-create-gibt-validaton-error-zuruck-country-this-value-should-not-be-empty/48204/1 "2017-09-12T02:46:34Z")

</div>

Hallo,

&nbsp;

Sitze nun schon einige Stunden an diesem Problem, aber kann es nicht aus dem Weg räumen.

Egal in welcher Art und Weise ich das country angeben, ich erhalte immer die Ausgabe:

**country: This value should not be blank.**

Übergebenes Array sieht so aus:

```
Array
(
    [customernumber] => 16
    [email] => mail@mail.de
    [password] => hasedpaswordhere
    [encoder] => bcrypt
    [active] => 1
    [paymentID] => 5
    [newsletter] => 1
    [accountmode] => 0
    [customergroup] => EK
    [language] => 1
    [country] => 2
    [subshopID] => 1
    [phone] => 0123456789
    [fax] => 
    [ustid] => 
    [shipping] => Array
        (
            [company] => 
            [department] => 
            [salutation] => ms
            [firstname] => john
            [lastname] => lastname
            [street] => Doe Street
            [zipcode] => 12345
            [city] => City
            [country] => 2
        )

    [firstname] => john
    [lastname] => lastname
    [salutation] => ms
    [billing] => Array
        (
            [company] => 
            [department] => 
            [salutation] => ms
            [firstname] => john
            [lastname] => lastname
            [street] => Doe Street
            [zipcode] => 12345
            [city] => City
            [country] => 2
        )

)

```

Country ist in shipping als auch in billing und noch einmal so angegebn.&nbsp;

&nbsp;

Vielen Dank schonmal soweit.

&nbsp;

&nbsp;

&nbsp;
