Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

URI Standards

URI Standards

URI Anatomy

The image below shows a breakdown of a standard Cortex URL. The example request retrieves a list of line items in a shopper's cart

URI_breakdown

URI Part Description
Request Method The HTTP method performed on the resource. For more information on supported Cortex HTTP Methods, see Request Methods.
Base URL The API's domain address.
Resource Family

The family that this resource belongs to. A resource family is made up of many individual resources.

Scope

The store's identifier, which is known as the store's scope. Stores can have different scopes for the regions they sell in. For more information, see scope below.

Resource Identifier

The unique identifier of the resource being retrieved, updated or deleted. This example uses default, which is special keyword that redirects to the authenticated shopper's default cart. For more information, see default below.

Subresource A subresource is a resource that cannot exist without the existence of another resource. In this example, the line items of a shopper's cart cannot exist with the cart itself.

scope

scope is an unique identifier for a store. Companies selling goods and services through Cortex may have different scopes for the regions they sell in. For example, mystore_US, mystore_UK. Scoping could also be aligned with other selling methods, such as by product line: product1_store, product2_store.

default

default is a keyword that is used instead of a resource identifier to discover a default resource. For example, the default keyword offers a way to find a shopper's cart without needing to know a specific cart identifier. When the default keyword is used, Cortex returns a 307 Temporary Redirect with a location to the default resource. This capability enables resources to be API Entry Points.