# Store api login gives CHECKOUT\_\_CUSTOMER\_AUTH\_BAD\_CREDENTIALS

**URL:** <https://forum.shopware.com/t/store-api-login-gives-checkout-customer-auth-bad-credentials/71034>\
**Category:** Shopware Playground - API first Sandbox (EN)\
**Created:** [19. November 2020 um 15:34 UTC](https://forum.shopware.com/t/store-api-login-gives-checkout-customer-auth-bad-credentials/71034 "2020-11-19T15:34:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![udeeps](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@udeeps](https://forum.shopware.com/u/udeeps)\
**Post date:** [19. November 2020 um 15:34 UTC](https://forum.shopware.com/t/store-api-login-gives-checkout-customer-auth-bad-credentials/71034/1 "2020-11-19T15:34:13Z")

</div>

I am trying to login in in a shop using “store-api/v3/account/login” API. My header contains&nbsp;sw-access-key. I am sending username and password as JSON Data. The username and password works to login in the shop frontend but the api gives back&nbsp;  
“{“errors”:[{“status”:“401”,“code”:“CHECKOUT\_\_CUSTOMER\_AUTH\_BAD\_CREDENTIALS”,“title”:“Unauthorized”,“detail”:“Invalid username and/or password.”,“meta”:{“parameters”:}}]}”

What am I doing wrong here? I tried sending username and password in the Header as well but it didn’t work. ​

Thanks in advance.&nbsp;

- Udeep
