- create_client
- client
- create_user
- user
- user_invitations
- items
- store
- subscriptions
- subscription_settings
- customer_portal_settings
- item_categories
- taxes
- webhooks
- send_webhooks
- payment_method_sets
- coupons
- template_sets
- template_configs
- cart_templates
- cart_include_templates
- checkout_templates
- receipt_templates
- email_templates
- error_entries
- downloadables
- payment_gateways
- hosted_payment_gateways
- fraud_protections
- transaction_journal_entries
- gift_cards
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.