# Can not Create or update store

**URL:** <https://community.hubspot.com/t/can-not-create-or-update-store/59958>\
**Category:** APIs & Integrations\
**Created:** [June 28, 2022, 3:53pm UTC](https://community.hubspot.com/t/can-not-create-or-update-store/59958 "2022-06-28T15:53:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EDevTeam](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edevteam/32/18373_2.png) [@EDevTeam](https://community.hubspot.com/u/EDevTeam)\
**Post date:** [June 28, 2022, 3:53pm UTC](https://community.hubspot.com/t/can-not-create-or-update-store/59958/1 "2022-06-28T15:53:11Z")

</div>

Hi guys,  
I can not create or update store via api

This is a issue:

Create or update store for portal\_id=‘22115039’ failed with error: 500  
stdClass Object  
(  
[status] =\> error  
[message] =\> internal error  
[correlationId] =\> aaf8bd25-9962-4d14-96bf-80cc3cd8581f  
)

Endpoint: **[https://api.hubapi.com/extensions/ecomm/v2/stores](https://api.hubapi.com/extensions/ecomm/v2/stores)**

Parameters:  
**$params = [  
“id” =\> 10,  
“label” =\> ‘Store name’,  
“adminUri” =\> ‘[https://test.local.com](https://test.local.com)’  
];**

Can someone please tell me how can i resolve this problem?

Many thanks!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 29, 2022, 8:02pm UTC](https://community.hubspot.com/t/can-not-create-or-update-store/59958/2 "2022-06-29T20:02:15Z")

</div>

Hey, @EDevTeam 👋 Thanks for reaching out. Those [generic 500 errors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) are tough to troubleshoot, for sure.

I ran a quick test using Postman and your provided params and I got a 200 response as expected. Although I cannot say why your attempts were failing, I can confirm the endpoint and the specific request you are sending will return a successful response code.

My test JSON

```lia-code-sample
{
 "id": "10",
 "label": "Store Name",
 "adminUri": "https://test.local.com/"
}

```

Best,

Jaycee
