# Kunde per API anlegen - Problem mit Sprache

**URL:** https://forum.shopware.com/t/kunde-per-api-anlegen-problem-mit-sprache/62310
**Category:** Programmierung
**Created:** [11. Oktober 2019 um 14:24 UTC](https://forum.shopware.com/t/kunde-per-api-anlegen-problem-mit-sprache/62310 "2019-10-11T14:24:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AndreErb](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AndreErb](https://forum.shopware.com/u/AndreErb)
#### Post date: [11. Oktober 2019 um 14:24 UTC](https://forum.shopware.com/t/kunde-per-api-anlegen-problem-mit-sprache/62310/1 "2019-10-11T14:24:44Z")

</div>

Hallo zusammen,

wenn ich einen Kunden per API anlege, dann bekommt dieser immer die Standardsprache (deutsch, mit ID=1), obwohl ich als languageId=“2” übergebe. Generell ändert es überhaupt nichts was ich als ID übergebe. Es wird auch kein Fehler ausgegeben.

Im Gegensatz zur API funktioniert es mit dem CSV-Import (und der gleichen languageId).

Hier das JSON dazu:

{  
&nbsp; &nbsp; “number”: “”,  
&nbsp; &nbsp; “id”: 0,  
&nbsp; &nbsp; “changed”: “2019-08-06T16:59:17+0200”,  
&nbsp; &nbsp; “paymentId”: 5,  
&nbsp; &nbsp; “groupKey”: “EK”,  
&nbsp; &nbsp; “shopId”: 1,  
&nbsp; &nbsp; “priceGroupId”: null,  
&nbsp; &nbsp; “encoderName”: “md5”,  
&nbsp; &nbsp; “hashPassword”: “xxx”,  
&nbsp; &nbsp; “active”: true,  
&nbsp; &nbsp; “email”: “[test@test.com](mailto:test@test.com)”,  
&nbsp; &nbsp; “firstLogin”: “2018-01-30T00:00:00+0100”,  
&nbsp; &nbsp; “lastLogin”: “2019-08-01T12:10:42+0200”,  
&nbsp; &nbsp; “accountMode”: 0,  
&nbsp; &nbsp; “confirmationKey”: “”,  
&nbsp; &nbsp; “sessionId”: “”,  
&nbsp; &nbsp; “newsletter”: 0,  
&nbsp; &nbsp; “validation”: “0”,  
&nbsp; &nbsp; “affiliate”: 0,  
&nbsp; &nbsp; “paymentPreset”: 8,  
&nbsp; &nbsp; **“languageId”: “2”,**  
&nbsp; &nbsp; “referer”: “”,  
&nbsp; &nbsp; “internalComment”: “”,  
&nbsp; &nbsp; “failedLogins”: 0,  
&nbsp; &nbsp; “lockedUntil”: “2019-08-06T16:56:37+0200”,  
&nbsp; &nbsp; “salutation”: “mr”,  
&nbsp; &nbsp; “title”: “”,  
&nbsp; &nbsp; “firstname”: “Tester”,  
&nbsp; &nbsp; “lastname”: “Tester”,  
&nbsp; &nbsp; “birthday”: null,  
&nbsp; &nbsp; “doubleOptinRegister”: false,  
&nbsp; &nbsp; “doubleOptinEmailSentDate”: null,  
&nbsp; &nbsp; “doubleOptinConfirmDate”: null,  
&nbsp; &nbsp; “defaultBillingAddress”: {  
&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;…  
&nbsp; &nbsp; },  
&nbsp; &nbsp; “paymentData”: ,  
&nbsp; &nbsp; “defaultShippingAddress”: {  
&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;…  
&nbsp; &nbsp; }  
}

&nbsp;

Schaut man sich den Code des Backends an, dann wird dort die “languageId” behandelt:&nbsp;[shopware/Customer.php at ad5ea26116917637ffac6d71a99a74180b69887f · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/ad5ea26116917637ffac6d71a99a74180b69887f/engine/Shopware/Controllers/Backend/Customer.php#L791)

Beim Code der API jedoch nicht:&nbsp;[shopware/Customer.php at ad5ea26116917637ffac6d71a99a74180b69887f · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/ad5ea26116917637ffac6d71a99a74180b69887f/engine/Shopware/Components/Api/Resource/Customer.php#L435)

&nbsp;

Hoffe ihr könnt mir helfen.

Besten Dank vorab!

&nbsp;
