commerce
GET
https://hermeticor.com /v1/commerce/stores/{storeId}/customers Parameters
limitintegerquerycursorstringqueryemailstringquerystoreIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/stores/{storeId}/customers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"email": "string",
"profileId": "string",
"firstName": "string",
"lastName": "string",
"company": "string",
"optInStatus": true,
"address": {},
"ordersCount": 0,
"totalSpentMinor": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem141[]requiredShow child parameters
idstringrequiredemailstringrequiredprofileIdstringrequiredfirstNamestringrequiredlastNamestringrequiredcompanystringrequiredoptInStatusbooleanrequiredaddressobjectrequiredordersCountintegerrequiredtotalSpentMinorintegerrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/commerce/stores/{storeId}/customers Parameters
storeIdstringpathrequiredRequest body
application/json
idstringrequiredemailstringrequiredfirstNamestringlastNamestringcompanystringoptInStatusbooleanaddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystring{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"company": "string",
"optInStatus": true,
"address": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/commerce/stores/{storeId}/customers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"string","email":"string","firstName":"string","lastName":"string","company":"string","optInStatus":true,"address":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"email": "string",
"profileId": "string",
"firstName": "string",
"lastName": "string",
"company": "string",
"optInStatus": true,
"address": {},
"ordersCount": 0,
"totalSpentMinor": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredemailstringrequiredprofileIdstringrequiredfirstNamestringrequiredlastNamestringrequiredcompanystringrequiredoptInStatusbooleanrequiredaddressobjectrequiredordersCountintegerrequiredtotalSpentMinorintegerrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/commerce/stores/{storeId}/customers/{customerId} Parameters
storeIdstringpathrequiredcustomerIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/stores/{storeId}/customers/{customerId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PUT
https://hermeticor.com /v1/commerce/stores/{storeId}/customers/{customerId} Parameters
storeIdstringpathrequiredcustomerIdstringpathrequiredRequest body
application/json
emailstringrequiredfirstNamestringlastNamestringcompanystringoptInStatusbooleanaddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystring{
"email": "string",
"firstName": "string",
"lastName": "string",
"company": "string",
"optInStatus": true,
"address": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
}
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/commerce/stores/{storeId}/customers/{customerId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","firstName":"string","lastName":"string","company":"string","optInStatus":true,"address":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/commerce/stores/{storeId}/customers/{customerId} Parameters
storeIdstringpathrequiredcustomerIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/commerce/stores/{storeId}/customers/{customerId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/commerce/stores/{storeId}/customers/{customerId} Parameters
storeIdstringpathrequiredcustomerIdstringpathrequiredRequest body
application/json
emailstringfirstNamestringlastNamestringcompanystringoptInStatusbooleanaddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystring{
"email": "string",
"firstName": "string",
"lastName": "string",
"company": "string",
"optInStatus": true,
"address": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
}
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/commerce/stores/{storeId}/customers/{customerId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","firstName":"string","lastName":"string","company":"string","optInStatus":true,"address":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated