create_session

Description

To manage a cart via a web browser, send an empty POST request to this href to retrieve a new session_id and cart_link. The session_id is used as the fcsid value needed to retrieve the cart via a browser.

Actions

POST
Create a cart session id
OPTIONS
Get a response explaining which HTTP methods are supported

Properties

Example Representation

{
    "session_id": "kv9nRk6ha8DLesuMgg8y8rmxbS",
    "cart_link": "https://foxycart-demo.foxycart.com/cart?fcsid=kv9nRk6ha8DLesuMgg8y8rmxbS"
}
<?xml version="1.0" encoding="UTF-8"?>
<resource>
  <session_id>VApY8XvEb3LsyeKfEMKVnYdbMs</session_id>
  <cart_link>https://foxycart-demo.foxycart.com/cart?fcsid=VApY8XvEb3LsyeKfEMKVnYdbMs</cart_link>
</resource>
{
    "properties": {
        "session_id": "847uYlT2zAgzLgyjWCFkfMshfu",
        "cart_link": "https://foxycart-demo.foxycart.com/cart?fcsid=847uYlT2zAgzLgyjWCFkfMshfu"
    }
}

Zoomable Resources

This resource has no linked resources which can be "zoomed" in on, filtered and embedded within this resource.