commerce
GET
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores Parameters
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"domain": "string",
"currency": "string",
"connectionId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"listId": "string",
"platform": "string",
"email": "string",
"phone": "string",
"address": {},
"timezone": "string",
"primaryLocale": "string",
"moneyFormat": "string",
"isSyncing": true
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednamestringrequireddomainstringrequiredcurrencystringrequiredconnectionIdstringrequiredcreatedAtstringrequiredlistIdstringrequiredplatformstringrequiredemailstringrequiredphonestringrequiredaddressobjectrequiredtimezonestringrequiredprimaryLocalestringrequiredmoneyFormatstringrequiredisSyncingbooleanrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores Request body
application/json
namestringrequireddomainstringcurrencystringconnectionIdstringlistIdstringplatformstringemailstringphonestringaddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringtimezonestringprimaryLocalestringmoneyFormatstringisSyncingboolean{
"name": "string",
"domain": "string",
"currency": "string",
"connectionId": "string",
"listId": "string",
"platform": "string",
"email": "string",
"phone": "string",
"address": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"timezone": "string",
"primaryLocale": "string",
"moneyFormat": "string",
"isSyncing": true
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","domain":"string","currency":"string","connectionId":"string","listId":"string","platform":"string","email":"string","phone":"string","address":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"timezone":"string","primaryLocale":"string","moneyFormat":"string","isSyncing":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"domain": "string",
"currency": "string",
"connectionId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"listId": "string",
"platform": "string",
"email": "string",
"phone": "string",
"address": {},
"timezone": "string",
"primaryLocale": "string",
"moneyFormat": "string",
"isSyncing": true
}Schema
idstringrequirednamestringrequireddomainstringrequiredcurrencystringrequiredconnectionIdstringrequiredcreatedAtstringrequiredlistIdstringrequiredplatformstringrequiredemailstringrequiredphonestringrequiredaddressobjectrequiredtimezonestringrequiredprimaryLocalestringrequiredmoneyFormatstringrequiredisSyncingbooleanrequiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/commerce/activate Turn ecommerce on: creates the first store if the workspace has none (safe to repeat)
Request body
application/json
namestringcurrencystring{
"name": "string",
"currency": "string"
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/commerce/activate" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","currency":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"store": {
"id": "string",
"name": "string",
"domain": "string",
"currency": "string",
"connectionId": "string",
"createdAt": "2024-01-01T00:00:00Z",
"listId": "string",
"platform": "string",
"email": "string",
"phone": "string",
"address": {},
"timezone": "string",
"primaryLocale": "string",
"moneyFormat": "string",
"isSyncing": true
},
"created": true
}Schema
storeobjectrequiredShow child parameters
idstringrequirednamestringrequireddomainstringrequiredcurrencystringrequiredconnectionIdstringrequiredcreatedAtstringrequiredlistIdstringrequiredplatformstringrequiredemailstringrequiredphonestringrequiredaddressobjectrequiredtimezonestringrequiredprimaryLocalestringrequiredmoneyFormatstringrequiredisSyncingbooleanrequiredcreatedbooleanrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores/{storeId} Parameters
storeIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores/{storeId}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores/{storeId} Parameters
storeIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores/{storeId}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores/{storeId} Parameters
storeIdstringpathrequiredRequest body
application/json
namestringdomainstringcurrencystringconnectionIdstringlistIdstringplatformstringemailstringphonestringaddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringtimezonestringprimaryLocalestringmoneyFormatstringisSyncingboolean{
"name": "string",
"domain": "string",
"currency": "string",
"connectionId": "string",
"listId": "string",
"platform": "string",
"email": "string",
"phone": "string",
"address": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"timezone": "string",
"primaryLocale": "string",
"moneyFormat": "string",
"isSyncing": true
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores/{storeId}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","domain":"string","currency":"string","connectionId":"string","listId":"string","platform":"string","email":"string","phone":"string","address":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"timezone":"string","primaryLocale":"string","moneyFormat":"string","isSyncing":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermetica.15.204.158.166.sslip.io /v1/commerce/stores/{storeId}/stats Parameters
storeIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/commerce/stores/{storeId}/stats" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"orders": 0,
"revenueMinor": 0,
"refundedMinor": 0,
"aovMinor": 0,
"openCarts": 0,
"abandonedCarts": 0
}Schema
ordersintegerrequiredrevenueMinorintegerrequiredrefundedMinorintegerrequiredaovMinorintegerrequiredopenCartsintegerrequiredabandonedCartsintegerrequiredUpdated