commerce
PUT
https://hermeticor.com /v1/commerce/stores/{storeId}/orders/{id} Create or replace the order under the store's own order id
Parameters
storeIdstringpathrequiredidstringpathrequiredRequest body
application/json
emailstringprofileIdstringstatusstringcurrencystringrequiredtotalMinorintegerdiscountMinorintegertaxMinorintegershippingMinorintegerpromoCodestringpromoPoolIdstringcampaignIdstringconversionSourcestringtrackingUrlstringplacedAtstringlandingPageIdstringadRefstringclickIdstringutmobjectshippingAddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringbillingAddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringorderUrlstringfinancialStatusstringfulfillmentStatusstringlinesLinesItem[]Show child parameters
idstringrequiredproductIdstringvariantIdstringtitlestringquantityintegerpriceMinorintegerdiscountMinorinteger{
"email": "string",
"profileId": "string",
"status": "paid",
"currency": "string",
"totalMinor": 0,
"discountMinor": 0,
"taxMinor": 0,
"shippingMinor": 0,
"promoCode": "string",
"promoPoolId": "string",
"campaignId": "string",
"conversionSource": "string",
"trackingUrl": "string",
"placedAt": "2024-01-01T00:00:00Z",
"landingPageId": "string",
"adRef": "string",
"clickId": "string",
"utm": {},
"shippingAddress": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"billingAddress": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"orderUrl": "string",
"financialStatus": "string",
"fulfillmentStatus": "string",
"lines": []
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/commerce/stores/{storeId}/orders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","profileId":"string","status":"paid","currency":"string","totalMinor":0,"discountMinor":0,"taxMinor":0,"shippingMinor":0,"promoCode":"string","promoPoolId":"string","campaignId":"string","conversionSource":"string","trackingUrl":"string","placedAt":"2024-01-01T00:00:00Z","landingPageId":"string","adRef":"string","clickId":"string","utm":{},"shippingAddress":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"billingAddress":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"orderUrl":"string","financialStatus":"string","fulfillmentStatus":"string","lines":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"storeId": "string",
"externalId": "string",
"profileId": "string",
"email": "string",
"status": "pending",
"currency": "string",
"totalMinor": 0,
"discountMinor": 0,
"taxMinor": 0,
"shippingMinor": 0,
"refundedMinor": 0,
"promoCode": "string",
"promoPoolId": "string",
"campaignId": "string",
"conversionSource": "string",
"trackingUrl": "string",
"placedAt": "2024-01-01T00:00:00Z",
"landingPageId": "string",
"adRef": "string",
"clickId": "string",
"utm": {},
"shippingAddress": {},
"billingAddress": {},
"orderUrl": "string",
"financialStatus": "string",
"fulfillmentStatus": "string",
"shippedAt": "2024-01-01T00:00:00Z",
"lines": [
{
"id": "string",
"externalId": "string",
"productId": "string",
"variantId": "string",
"title": "string",
"quantity": 0,
"priceMinor": 0,
"discountMinor": 0
}
]
}Schema
idstringrequiredstoreIdstringrequiredexternalIdstringrequiredprofileIdstringrequiredemailstringrequiredstatusstringrequiredcurrencystringrequiredtotalMinorintegerrequireddiscountMinorintegerrequiredtaxMinorintegerrequiredshippingMinorintegerrequiredrefundedMinorintegerrequiredpromoCodestringrequiredpromoPoolIdstringrequiredcampaignIdstringrequiredconversionSourcestringrequiredtrackingUrlstringrequiredplacedAtstringrequiredlandingPageIdstringrequiredadRefstringrequiredclickIdstringrequiredutmobjectrequiredshippingAddressobjectrequiredbillingAddressobjectrequiredorderUrlstringrequiredfinancialStatusstringrequiredfulfillmentStatusstringrequiredshippedAtstringrequiredlinesLinesItem2[]requiredShow child parameters
idstringrequiredexternalIdstringrequiredproductIdstringrequiredvariantIdstringrequiredtitlestringrequiredquantityintegerrequiredpriceMinorintegerrequireddiscountMinorintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectDELETE
https://hermeticor.com /v1/commerce/stores/{storeId}/orders/{id} Parameters
storeIdstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/commerce/stores/{storeId}/orders/{id}" \
-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}/orders/{id} Parameters
storeIdstringpathrequiredidstringpathrequiredRequest body
application/json
statusstringrefundedMinorintegertrackingUrlstringpromoCodestringpromoPoolIdstringcampaignIdstringconversionSourcestringlandingPageIdstringadRefstringclickIdstringutmobjectshippingAddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringbillingAddressobjectShow child parameters
namestringaddress1stringaddress2stringcitystringprovincestringprovinceCodestringpostalCodestringcountrystringcountryCodestringphonestringcompanystringorderUrlstringfinancialStatusstringfulfillmentStatusstring{
"status": "pending",
"refundedMinor": 0,
"trackingUrl": "string",
"promoCode": "string",
"promoPoolId": "string",
"campaignId": "string",
"conversionSource": "string",
"landingPageId": "string",
"adRef": "string",
"clickId": "string",
"utm": {},
"shippingAddress": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"billingAddress": {
"name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"postalCode": "string",
"country": "string",
"countryCode": "string",
"phone": "string",
"company": "string"
},
"orderUrl": "string",
"financialStatus": "string",
"fulfillmentStatus": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/commerce/stores/{storeId}/orders/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"pending","refundedMinor":0,"trackingUrl":"string","promoCode":"string","promoPoolId":"string","campaignId":"string","conversionSource":"string","landingPageId":"string","adRef":"string","clickId":"string","utm":{},"shippingAddress":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"billingAddress":{"name":"string","address1":"string","address2":"string","city":"string","province":"string","provinceCode":"string","postalCode":"string","country":"string","countryCode":"string","phone":"string","company":"string"},"orderUrl":"string","financialStatus":"string","fulfillmentStatus":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/commerce/stores/{storeId}/orders/{id}/lines Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagestoreIdstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/commerce/stores/{storeId}/orders/{id}/lines" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"externalId": "string",
"productId": "string",
"variantId": "string",
"title": "string",
"quantity": 0,
"priceMinor": 0,
"discountMinor": 0
}
],
"nextCursor": "string"
}Schema
itemsLinesItem2[]requiredShow child parameters
idstringrequiredexternalIdstringrequiredproductIdstringrequiredvariantIdstringrequiredtitlestringrequiredquantityintegerrequiredpriceMinorintegerrequireddiscountMinorintegerrequirednextCursorstringrequiredUpdated