# Create Customer

**URL:** <https://forum.shopware.com/t/create-customer/94439>\
**Category:** Programming (EN)\
**Created:** [17. Mai 2022 um 16:18 UTC](https://forum.shopware.com/t/create-customer/94439 "2022-05-17T16:18:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alaan](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alaan](https://forum.shopware.com/u/alaan)\
**Post date:** [17. Mai 2022 um 16:18 UTC](https://forum.shopware.com/t/create-customer/94439/1 "2022-05-17T16:18:27Z")

</div>

I would like to create a customer per repository. You also have to give the array a defaultBillingAddressId and a defaultShippingAddressId. On the other hand, when I first create an address, it asks for a CustomerId. Does anyone have a solution for this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ThomasChr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomaschr/32/10466_2.png) [@ThomasChr](https://forum.shopware.com/u/ThomasChr)\
**Post date:** [17. Mai 2022 um 17:05 UTC](https://forum.shopware.com/t/create-customer/94439/2 "2022-05-17T17:05:51Z")

</div>

Just generate a random one. UUID are unique and you can generate them beforehand.

---

<div class="post-metadata">

**Author:** ![alaan](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alaan](https://forum.shopware.com/u/alaan)\
**Post date:** [17. Mai 2022 um 17:48 UTC](https://forum.shopware.com/t/create-customer/94439/3 "2022-05-17T17:48:34Z")

</div>

Hello Thomas Cr  
Thank you for your reply. I found a solution. It looks like this:

![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/9/1/918fd8afb4cac1b34ee214d22da82ca0db71a052.png)
