# Synchronising Shopware customers with ERP using the API.. ID-issue

**URL:** <https://forum.shopware.com/t/synchronising-shopware-customers-with-erp-using-the-api-id-issue/45295>\
**Category:** Programmierung\
**Created:** [18. April 2017 um 15:19 UTC](https://forum.shopware.com/t/synchronising-shopware-customers-with-erp-using-the-api-id-issue/45295 "2017-04-18T15:19:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sition](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Sition](https://forum.shopware.com/u/Sition)\
**Post date:** [18. April 2017 um 15:19 UTC](https://forum.shopware.com/t/synchronising-shopware-customers-with-erp-using-the-api-id-issue/45295/1 "2017-04-18T15:19:57Z")

</div>

Hi there,

I’m trying to sync the customers in my ERP with customers in Shopware.  
Obviously i’m using the examples like&nbsp;[REST API - Examples using the customer resource](https://developers.shopware.com/developers-guide/rest-api/examples/customer/#example-2-get-a-specific-customer)

The problem is that i want to add a customer with a specific ID into Shopware like i’m able to with the articles.  
This doesn’ seem to be possible as i’m also not able to use&nbsp;?useNumberAsId=true.

My second idea was to add the ERP-ID to the comment field of the customer in Shopware.  
But am I able to fetch the specific customer by it’s Comment-field value?  
e.g.&nbsp;$client-\>get(‘customers/COMMENTFIELDVALUE=ERP\_ID’);

I suppose i’d have to use the additional filters for the api but i’m having a hard time figuring out how it works.

Any help is much appreciated.
