Jun 28, 2022 11:53 AM
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!
Solved! Go to Solution.
Jun 29, 2022 4:02 PM
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
Jun 29, 2022 4:02 PM
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