About Shop ​
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Store management is a foundational component of Genstore merchant operations. It enables merchants to maintain store information across multiple locations. This module handles essential store data including names, domains, contact information, addresses, and time zones.
Core Features
- Get Store Info: Access basic store information including name, domain, and contact details.
- Get Location Details: Retrieve information for a specific store location.
- Create Location: Add a new store location to the system.
- Update Location: Modify existing store location information.
- Delete Location: Remove a store location from the system.
- List Locations: Fetch store locations with scroll pagination.
- Count Locations: Get total number of store locations.
Use Cases
- Smart Notifications: Time zone-based notification system helps merchants:
- Send notifications at appropriate hours.
- Deliver rewards when customers are active.
- Improve engagement through better timing.
- Store Info Management: Operations teams maintain accurate store details for customer access.
- Multi-location Operations: Merchants efficiently manage multiple store locations from a single interface.
Endpoints
POST
/api/202412/shops/location: Create warehouse location
PUT
/api/202412/shops/locations/{locationId}: Update warehouse location
DELETE
/api/202412/shops/locations/{locationId}: Delete warehouse location
GET
/api/202412/shops/info: Get shop details
GET
/api/202412/shops/locations/count: Get warehouse locations count
GET
/api/202412/shops/locations/{locationId}: Get warehouse location details
GET
/api/202412/shops/languages: Get language list
GET
/api/202412/shops/locations: Get location list
Shop Object ​
A shop object
Properties ​
{
"shop": {
"country": "US",
"mail": "[email protected]",
"timezone": "-4",
"domain": "online-shop.genstore.com",
"shopName": "Sun's Shop",
"description": "This is a test shop descirption",
"logo": "https://statics.genstore.com/folder/qefadfasdfafwerw.png",
"currency": "USD",
"shopId": "1234567890",
"ianaTimezone": "America/New_York",
"weightUnit": "kg"
}
}
POST
Create warehouse location ​
Create a warehouse location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
POST
/api/202412/shops/location
Request Params
Response Data
curl -X POST \
https://{shop}.genmystore.com/api/202412/shops/location" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"location":{
"zipcode":"k1n5t5",
"country":"US",
"locationName":"Shanghai warehousing",
"province":"PN",
"city":"上海市",
"address2":"Unit 42",
"phone":"86-13112341234",
"address1":"126 York Street",
"latitude":"36.30556423523153",
"longitude":"104.48060937499996"
}
}'
HTTP/1.1 200 OK
{
"location": {
"country": "US",
"locationName": "Shanghai warehousing",
"city": "上海市",
"address2": "Unit 42",
"address1": "126 York Street",
"latitude": "36.30556423523153",
"zipcode": "k1n5t5",
"isDefault": "true",
"province": "PN",
"phone": "86-13112341234",
"locationId": "1234657809123",
"stopStatus": "true",
"longitude": "104.48060937499996"
}
}
PUT
Update warehouse location ​
Update the warehouse location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
PUT
/api/202412/shops/locations/{locationId}
Request Params
Response Data
curl -X PUT \
https://{shop}.genmystore.com/api/202412/shops/locations/{locationId}" \
-H "X-Genstore-Access-Token: {access_token}" \
-H "Content-Type: application/json" \
-d '{
"location":{
"zipcode":"k1n5t5",
"country":"US",
"locationName":"Shanghai warehousing",
"province":"PN",
"city":"上海市",
"address2":"Unit 42",
"phone":"86-13112341234",
"address1":"126 York Street",
"locationId":"12345",
"latitude":"36.30556423523153",
"longitude":"104.48060937499996"
}
}'
HTTP/1.1 200 OK
{}
DELETE
Delete warehouse location ​
Delete the warehousing location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
DELETE
/api/202412/shops/locations/{locationId}
Request Params
Response Data
curl -X DELETE \
https://{shop}.genmystore.com/api/202412/shops/locations/{locationId}" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{}
GET
Get shop details ​
Get store basic information.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/info
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/shops/info" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"shop": {
"country": "US",
"mail": "[email protected]",
"timezone": "-4",
"shopName": "Sun's Shop",
"description": "This is a test shop descirption",
"originDomain": "aaa.genstore.com",
"shopStatus": "1",
"domain": "online-shop.genstore.com",
"logo": "https: //statics.genstore.com/folder/qefadfasdfafwerw.png",
"currency": "USD",
"shopId": "1234567890",
"ianaTimezone": "America/New_York",
"weightUnit": "kg"
}
}
GET
Get warehouse locations count ​
Get the count of warehouse locations.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations/count
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/shops/locations/count" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"count": "123"
}
GET
Get warehouse location details ​
Get the details of the warehouse locations.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations/{locationId}
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/shops/locations/{locationId}" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"location": {
"country": "US",
"locationName": "Shanghai warehousing",
"city": "上海市",
"address2": "Unit 42",
"address1": "126 York Street",
"latitude": "36.30556423523153",
"zipcode": "k1n5t5",
"isDefault": "true",
"province": "PN",
"phone": "86-13112341234",
"locationId": "1234657809123",
"stopStatus": "true",
"longitude": "104.48060937499996"
}
}
GET
Get language list ​
Get a list of languages supported by the store.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/languages
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/shops/languages" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"languages": {
"publishedList": [
{
"translateStatus": "true",
"isDefault": "true",
"language": "en-US"
}
],
"unPublishedList": [
{
"translateStatus": "false",
"isDefault": "false",
"language": "zh-CN"
}
]
}
}
GET
Get location list ​
Retrieve a list of store locations using infinite scrolling pagination.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations
Request Params
Response Data
curl -X GET \
https://{shop}.genmystore.com/api/202412/shops/locations" \
-H "X-Genstore-Access-Token: {access_token}" \
HTTP/1.1 200 OK
{
"locations": {
"country": "US",
"locationName": "Shanghai warehousing",
"city": "上海市",
"address2": "Unit 42",
"address1": "126 York Street",
"latitude": "36.30556423523153",
"zipcode": "200000",
"isDefault": "true",
"province": "PN",
"phone": "86-13112341234",
"locationId": "1234657809123",
"stopStatus": "true",
"longitude": "104.48060937499996"
}
}
About Shop
Access scope
Multiple access scopes needed — refer to each endpoint for access scope requirements.
Store management is a foundational component of Genstore merchant operations. It enables merchants to maintain store information across multiple locations. This module handles essential store data including names, domains, contact information, addresses, and time zones.
Core Features
- Get Store Info: Access basic store information including name, domain, and contact details.
- Get Location Details: Retrieve information for a specific store location.
- Create Location: Add a new store location to the system.
- Update Location: Modify existing store location information.
- Delete Location: Remove a store location from the system.
- List Locations: Fetch store locations with scroll pagination.
- Count Locations: Get total number of store locations.
Use Cases
- Smart Notifications: Time zone-based notification system helps merchants:
- Send notifications at appropriate hours.
- Deliver rewards when customers are active.
- Improve engagement through better timing.
- Store Info Management: Operations teams maintain accurate store details for customer access.
- Multi-location Operations: Merchants efficiently manage multiple store locations from a single interface.
Shop Object
A shop object
Properties
POST
Create warehouse location
Create a warehouse location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
POST
/api/202412/shops/location
PUT
Update warehouse location
Update the warehouse location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
PUT
/api/202412/shops/locations/{locationId}
DELETE
Delete warehouse location
Delete the warehousing location.
Access scope
Requires ANY of the following access scopes: write_shops
Endpoint
DELETE
/api/202412/shops/locations/{locationId}
GET
Get shop details
Get store basic information.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/info
GET
Get warehouse locations count
Get the count of warehouse locations.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations/count
GET
Get warehouse location details
Get the details of the warehouse locations.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations/{locationId}
GET
Get language list
Get a list of languages supported by the store.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/languages
GET
Get location list
Retrieve a list of store locations using infinite scrolling pagination.
Access scope
Requires ANY of the following access scopes: read_shops
write_shops
Endpoint
GET
/api/202412/shops/locations