APIs & Integrations

EDevTeam
Member | Elite Partner
Member | Elite Partner

Can not Create or update store

SOLVE

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

Parameters:
$params = [
"id" => 10,
"label" => 'Store name',
"adminUri" => 'https://test.local.com'
];

 

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

 

Many thanks!

0 Upvotes
1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

Can not Create or update store

SOLVE

Hey, @EDevTeam 👋 Thanks for reaching out. Those generic 500 errors 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 

{
    "id": "10",
    "label": "Store Name",
    "adminUri": "https://test.local.com/"
}

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

0 Upvotes
1 Reply 1
Jaycee_Lewis
Solution
Community Manager
Community Manager

Can not Create or update store

SOLVE

Hey, @EDevTeam 👋 Thanks for reaching out. Those generic 500 errors 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 

{
    "id": "10",
    "label": "Store Name",
    "adminUri": "https://test.local.com/"
}

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes