eCommerce
Orders
Authorizations
Query parameters
propertiesstring · arrayOptionalExample:
A comma seperated list of properties that you would like to retrieve, leave empty to get all properties
name,slug,enabled
per_pageintegerOptionalExample:
Number of items to retireve, maximum of 500
20
sort_typestringOptionalExample:
Property by which to sort the results
created_at
sort_orderstringOptionalExample:
Order of results (asc or desc)
desc
pageintOptionalExample:
Page to retrieve number, to be used with per_page
1
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - The CRM does not contain any orders
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/ecommerce/orders HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
idstring · idRequiredExample:
The ID of the eCommerce order
1234
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - eCommerce order does not exist
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/ecommerce/orders/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
userIDstring · idRequiredExample:
The ID of the user
1234
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - eCommerce order does not exist
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/ecommerce/orders/user/{userID} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Products
Authorizations
Query parameters
propertiesstring · arrayOptionalExample:
A comma seperated list of properties that you would like to retrieve, leave empty to get all properties
name,slug,enabled
per_pageintegerOptionalExample:
Number of items to retireve, maximum of 500
20
sort_typestringOptionalExample:
Property by which to sort the results
created_at
sort_orderstringOptionalExample:
Order of results (asc or desc)
desc
pageintOptionalExample:
Page to retrieve number, to be used with per_page
1
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Product does not exist or this site has no products
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/ecommerce/products HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
idstring · idRequiredExample:
The ID of the Product
1234
Responses
200
OK
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
404
Not Found - Product does not exist
422
Unprocessable Entity - Required data missing or data invalid
get
GET /api/site/v2/ecommerce/products/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Accept: */*
No content
Authorizations
Path parameters
idstringRequiredExample:
The Product Item ID
1
Body
namestringRequired
slugstringOptional
enabledstringRequired
weightingstringOptional
expiry_datestringOptional
release_datestringOptional
category_arrayobject[]Optional
secure_zone_arrayobject[]Optional
module_field_14/product_1stringOptional
module_field_14/product_2stringOptional
module_field_14/product_3stringOptional
module_field_14/product_4stringOptional
module_field_14/product_5stringOptional
module_field_14/product/inventory/1stringOptional
module_field_14/product/inventory/2stringOptional
module_field_14/product/inventory/3stringOptional
module_field_14/product/price/aud/1stringOptional
module_field_14/product/price/aud/2stringOptional
module_field_14/product/price/cad/1stringOptional
module_field_14/product/price/cad/2stringOptional
module_field_14/product/price/eur/1stringOptional
module_field_14/product/price/eur/2stringOptional
module_field_14/product/price/gbp/1stringOptional
module_field_14/product/price/gbp/2stringOptional
module_field_14/product/price/nzd/1stringOptional
module_field_14/product/price/nzd/2stringOptional
module_field_14/product/price/usd/1stringOptional
module_field_14/product/price/usd/2stringOptional
Responses
200
OK
400
Bad Request - The API could not understand the request due to invalid syntax.
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
422
Unprocessable Entity - Required data missing or data invalid
put
PUT /api/site/v2/ecommerce/products/{id} HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2117
{
"name": "text",
"slug": "text",
"enabled": "text",
"weighting": "text",
"expiry_date": "text",
"release_date": "text",
"category_array": [
{}
],
"secure_zone_array": [
{}
],
"module_field_14/product_1": "text",
"module_field_14/product_2": "text",
"module_field_14/product_3": "text",
"module_field_14/product_4": "text",
"module_field_14/product_5": "text",
"module_field_14/product/inventory/1": "text",
"module_field_14/product/inventory/2": "text",
"module_field_14/product/inventory/3": "text",
"module_field_14/product/price/aud/1": "text",
"module_field_14/product/price/aud/2": "text",
"module_field_14/product/price/cad/1": "text",
"module_field_14/product/price/cad/2": "text",
"module_field_14/product/price/eur/1": "text",
"module_field_14/product/price/eur/2": "text",
"module_field_14/product/price/gbp/1": "text",
"module_field_14/product/price/gbp/2": "text",
"module_field_14/product/price/nzd/1": "text",
"module_field_14/product/price/nzd/2": "text",
"module_field_14/product/price/usd/1": "text",
"module_field_14/product/price/usd/2": "text",
"attributes": [
{
"id": "text",
"name": "text",
"items": [
{
"id": "text",
"name": "text",
"enabled": "text",
"module_field_14/product_attribute_option_2": "text",
"module_field_14/product_attribute_option_3": "text",
"module_field_14/product_attribute_option_4": "text",
"module_field_14/product_attribute_option_6": "text",
"module_field_14/product_attribute_option/price/aud/1": "text",
"module_field_14/product_attribute_option/price/aud/2": "text",
"module_field_14/product_attribute_option/price/cad/1": "text",
"module_field_14/product_attribute_option/price/cad/2": "text",
"module_field_14/product_attribute_option/price/eur/1": "text",
"module_field_14/product_attribute_option/price/eur/2": "text",
"module_field_14/product_attribute_option/price/gbp/1": "text",
"module_field_14/product_attribute_option/price/gbp/2": "text",
"module_field_14/product_attribute_option/price/nzd/1": "text",
"module_field_14/product_attribute_option/price/nzd/2": "text",
"module_field_14/product_attribute_option/price/usd/1": "text",
"module_field_14/product_attribute_option/price/usd/2": "text",
"module_field_14/product_attribute_option/inventory/1": "text"
}
]
}
]
}
No content
Authorizations
Body
namestringRequired
slugstringOptional
enabledstringRequired
weightingstringOptional
expiry_datestringOptional
release_datestringOptional
category_arrayobject[]Optional
secure_zone_arrayobject[]Optional
module_field_14/product_1stringOptional
module_field_14/product_2stringOptional
module_field_14/product_3stringOptional
module_field_14/product_4stringOptional
module_field_14/product_5stringOptional
module_field_14/product/inventory/1stringOptional
module_field_14/product/inventory/2stringOptional
module_field_14/product/inventory/3stringOptional
module_field_14/product/price/aud/1stringOptional
module_field_14/product/price/aud/2stringOptional
module_field_14/product/price/aud/3stringOptional
module_field_14/product/price/aud/4stringOptional
module_field_14/product/price/cad/1stringOptional
module_field_14/product/price/cad/2stringOptional
module_field_14/product/price/cad/3stringOptional
module_field_14/product/price/cad/4stringOptional
module_field_14/product/price/eur/1stringOptional
module_field_14/product/price/eur/2stringOptional
module_field_14/product/price/eur/3stringOptional
module_field_14/product/price/eur/4stringOptional
module_field_14/product/price/gbp/1stringOptional
module_field_14/product/price/gbp/2stringOptional
module_field_14/product/price/gbp/3stringOptional
module_field_14/product/price/gbp/4stringOptional
module_field_14/product/price/nzd/1stringOptional
module_field_14/product/price/nzd/2stringOptional
module_field_14/product/price/nzd/3stringOptional
module_field_14/product/price/nzd/4stringOptional
module_field_14/product/price/usd/1stringOptional
module_field_14/product/price/usd/2stringOptional
module_field_14/product/price/usd/3stringOptional
module_field_14/product/price/usd/4stringOptional
Responses
200
OK
400
Bad Request - The API could not understand the request due to invalid syntax.
401
Unauthorized - Credentials Incorrect
403
Forbidden - You cannot access this site
422
Unprocessable Entity - Required data missing or data invalid
post
POST /api/site/v2/ecommerce/products/create HTTP/1.1
Host: {{your site}}
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2650
{
"name": "text",
"slug": "text",
"enabled": "text",
"weighting": "text",
"expiry_date": "text",
"release_date": "text",
"category_array": [
{}
],
"secure_zone_array": [
{}
],
"module_field_14/product_1": "text",
"module_field_14/product_2": "text",
"module_field_14/product_3": "text",
"module_field_14/product_4": "text",
"module_field_14/product_5": "text",
"module_field_14/product/inventory/1": "text",
"module_field_14/product/inventory/2": "text",
"module_field_14/product/inventory/3": "text",
"module_field_14/product/price/aud/1": "text",
"module_field_14/product/price/aud/2": "text",
"module_field_14/product/price/aud/3": "text",
"module_field_14/product/price/aud/4": "text",
"module_field_14/product/price/cad/1": "text",
"module_field_14/product/price/cad/2": "text",
"module_field_14/product/price/cad/3": "text",
"module_field_14/product/price/cad/4": "text",
"module_field_14/product/price/eur/1": "text",
"module_field_14/product/price/eur/2": "text",
"module_field_14/product/price/eur/3": "text",
"module_field_14/product/price/eur/4": "text",
"module_field_14/product/price/gbp/1": "text",
"module_field_14/product/price/gbp/2": "text",
"module_field_14/product/price/gbp/3": "text",
"module_field_14/product/price/gbp/4": "text",
"module_field_14/product/price/nzd/1": "text",
"module_field_14/product/price/nzd/2": "text",
"module_field_14/product/price/nzd/3": "text",
"module_field_14/product/price/nzd/4": "text",
"module_field_14/product/price/usd/1": "text",
"module_field_14/product/price/usd/2": "text",
"module_field_14/product/price/usd/3": "text",
"module_field_14/product/price/usd/4": "text",
"attributes": [
{
"name": "text",
"enabled": "text",
"items": [
{
"name": "text",
"enabled": "text",
"module_field_14/product_attribute_option_2": "text",
"module_field_14/product_attribute_option_3": "text",
"module_field_14/product_attribute_option_4": "text",
"module_field_14/product_attribute_option_6": "text",
"module_field_14/product_attribute_option/price/aud/1": "text",
"module_field_14/product_attribute_option/price/aud/2": "text",
"module_field_14/product_attribute_option/price/cad/1": "text",
"module_field_14/product_attribute_option/price/cad/2": "text",
"module_field_14/product_attribute_option/price/eur/1": "text",
"module_field_14/product_attribute_option/price/eur/2": "text",
"module_field_14/product_attribute_option/price/gbp/1": "text",
"module_field_14/product_attribute_option/price/gbp/2": "text",
"module_field_14/product_attribute_option/price/nzd/1": "text",
"module_field_14/product_attribute_option/price/nzd/2": "text",
"module_field_14/product_attribute_option/price/usd/1": "text",
"module_field_14/product_attribute_option/price/usd/2": "text",
"module_field_14/product_attribute_option/inventory/1": "text"
}
]
}
]
}
No content
Last updated
Was this helpful?