Skip to content

Returns a list of stores where the user is a member of reduced store information.

GET
/api/user/{userId}/stores/details

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

userId*
Typestring
Required

Responses

Success.
JSON
{
"total": 1,
"stores": [
{
"id": 0,
"name": "string",
"region": null,
"location": null,
"street": "string",
"city": "string",
"zipCode": "string",
"cooperationStatus": null,
"createdAt": "string"
}
]
}
Authorization
api_key
Variables
Key
Value
userId*
cURL
curl -X GET \
'http://localhost/api/user/{userId}/stores/details'

Samples

cURL
curl -X GET http://localhost/api/user/{userId}/stores/details
JavaScript
fetch("http://localhost/api/user/{userId}/stores/details")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/{userId}/stores/details");
Python
import requests
response = requests.get("http://localhost/api/user/{userId}/stores/details")
print(response.json())