Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

eCommerce

Orders

Retrieve an overview list of all eCommerce orders from your website

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Query parameters
per_pageintegerOptional

Number of items to retrieve, maximum of 500

Example: 20
sort_typestringOptional

Field by which to sort the results

Example: created_at
sort_orderstring · enumOptional

Order of results

Default: descPossible values:
pageintegerOptional

Page to retrieve number, to be used with per_page

Example: 1
excludestringOptional

Comma-separated parts to leave out of each order, for smaller responses: ordered_products (the Ordered Products field), properties (the raw properties object; its fields are still at the top level of each order). Ignored by System Files versions before it was added.

Example: ordered_products,properties
Responses
200

OK

No content

get/ecommerce/orders
GET /api/site/v2/ecommerce/orders HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Retrieve all data about an individual eCommerce order

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
idstringRequired

The ID of the eCommerce order

Example: 1234
Responses
200

OK

No content

get/ecommerce/orders/{id}
GET /api/site/v2/ecommerce/orders/{id} HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Retrieve all eCommerce order data about an individual CRM user

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
userIDstringRequired

The ID of the user

Example: 1234
Query parameters
excludestringOptional

Comma-separated parts to leave out of each order, for smaller responses: ordered_products (the Ordered Products field), properties (the raw properties object; its fields are still at the top level of each order). Ignored by System Files versions before it was added.

Example: ordered_products,properties
Responses
200

OK

No content

get/ecommerce/orders/user/{userID}
GET /api/site/v2/ecommerce/orders/user/{userID} HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Products

Retrieve all products

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Query parameters
per_pageintegerOptional

Number of items to retrieve, maximum of 500

Example: 20
sort_typestringOptional

Field by which to sort the results

Example: created_at
sort_orderstring · enumOptional

Order of results

Default: descPossible values:
pageintegerOptional

Page to retrieve number, to be used with per_page

Example: 1
excludestringOptional

Comma-separated parts to leave out of each product, for smaller and faster responses: attributes (the product's attributes and their options - not looked up at all), properties (the raw properties object; its fields are still at the top level of each product). Ignored by System Files versions before it was added.

Example: attributes,properties
Responses
200

OK

No content

get/ecommerce/products
GET /api/site/v2/ecommerce/products HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Retrieve all data about an individual product

get
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
idstringRequired

The ID of the Product

Example: 1234
Responses
200

OK

No content

get/ecommerce/products/{id}
GET /api/site/v2/ecommerce/products/{id} HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: YOUR_API_KEY
Accept: */*

No content

Update a Product

put
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

Path parameters
idstringRequired

The Product Item ID

Example: 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

No content

put/ecommerce/products/{id}
PUT /api/site/v2/ecommerce/products/{id} HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: 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

Create a Product

post
Authorizations
x-api-keystringRequired

Your Siteglide API key

x-site-idstringRequired

The ID of the Siteglide site you are working with (not an API key — just the numeric site ID)

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

No content

post/ecommerce/products/create
POST /api/site/v2/ecommerce/products/create HTTP/1.1
Host: www.my-site.com
x-api-key: YOUR_API_KEY
x-site-id: 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