commerce
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId} Change only the fields sent
Parameters
storeIdstringpathrequiredproductIdstringpathrequiredvariantIdstringpathrequiredRequest body
application/json
skustringtitlestringpriceMinorintegercurrencystringinventoryintegerurlstringimageUrlstringpublishedbooleaninventoryPolicystringbackordersstringvisibilitystringimageThumbnailUrlstringcustomMetadataobject{
"sku": "string",
"title": "string",
"priceMinor": 0,
"currency": "string",
"inventory": 0,
"url": "string",
"imageUrl": "string",
"published": true,
"inventoryPolicy": "deny",
"backorders": "string",
"visibility": "string",
"imageThumbnailUrl": "string",
"customMetadata": {}
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sku":"string","title":"string","priceMinor":0,"currency":"string","inventory":0,"url":"string","imageUrl":"string","published":true,"inventoryPolicy":"deny","backorders":"string","visibility":"string","imageThumbnailUrl":"string","customMetadata":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"id": "string",
"itemId": "string",
"externalId": "string",
"sku": "string",
"title": "string",
"priceMinor": 0,
"currency": "string",
"inventory": 0,
"url": "string",
"imageUrl": "string",
"published": true,
"inventoryPolicy": "deny",
"backorders": "string",
"visibility": "string",
"imageThumbnailUrl": "string",
"customMetadata": {}
}Schema
idstringrequireditemIdstringrequiredexternalIdstringrequiredskustringrequiredtitlestringrequiredpriceMinorintegerrequiredcurrencystringrequiredinventoryintegerrequiredurlstringrequiredimageUrlstringrequiredpublishedbooleanrequiredinventoryPolicystringrequiredbackordersstringrequiredvisibilitystringrequiredimageThumbnailUrlstringrequiredcustomMetadataobjectrequiredExample
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectSame as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images Parameters
limitintegerquerycursorstringquerynextCursor of the previous pagestoreIdstringpathrequiredproductIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"items": [
{
"id": "string",
"url": "string",
"variantIds": [
"string"
]
}
],
"nextCursor": "string"
}Schema
itemsItemsItem142[]requiredShow child parameters
idstringrequiredurlstringrequiredvariantIdsstring[]requirednextCursorstringrequiredSame as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images Parameters
storeIdstringpathrequiredproductIdstringpathrequiredRequest body
application/json
idstringrequiredurlstringrequiredvariantIdsstring[]{
"id": "string",
"url": "string",
"variantIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"string","url":"string","variantIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"id": "string",
"url": "string",
"variantIds": [
"string"
]
}Schema
idstringrequiredurlstringrequiredvariantIdsstring[]requiredSame as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images/{imageId} Parameters
storeIdstringpathrequiredproductIdstringpathrequiredimageIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images/{imageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images/{imageId} Parameters
storeIdstringpathrequiredproductIdstringpathrequiredimageIdstringpathrequiredRequest body
application/json
urlstringrequiredvariantIdsstring[]{
"url": "string",
"variantIds": [
"string"
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images/{imageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string","variantIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images/{imageId} Parameters
storeIdstringpathrequiredproductIdstringpathrequiredimageIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images/{imageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"ok": true
}Schema
okbooleanrequiredSame as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/stores/{storeId}/products/{productId}/images/{imageId} Parameters
storeIdstringpathrequiredproductIdstringpathrequiredimageIdstringpathrequiredRequest body
application/json
urlstringvariantIdsstring[]{
"url": "string",
"variantIds": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/commerce/stores/{storeId}/products/{productId}/images/{imageId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string","variantIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
https://hermeticor.com /v1/commerce/attribution/metrics Parameters
storeIdstringquerysincestringqueryuntilstringquerylimitintegerquerycursorstringquerynextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/attribution/metrics" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{
"items": [
{
"orders": 0,
"revenueMinor": 0,
"refundedMinor": 0,
"aovMinor": 0,
"conversionSource": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
ordersintegerrequiredrevenueMinorintegerrequiredrefundedMinorintegerrequiredaovMinorintegerrequiredconversionSourcestringrequirednextCursorstringrequiredSame as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}
Same as 4XX · PATCH /v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}