---
schema_version: "1"
id: 90b42a041cb18a40ff5f580b29f7cd3bf6b87d8d1be935b63dd74dc07ef45252
title: Enable Temporary Baskets for Immediate Order Requests in OCAPI
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_rn_enable_temporaty_basket_ocapi.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_rn_enable_temporaty_basket_ocapi.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 751f20bda8482e8003b46f884977ca8ffa793a28e1a303b00a9267afc424a636
description: OCAPI 23.4 includes support for temporary baskets. Temporary baskets allow for immediate order requests in B2C Commerce. For example, a shopper uses a Buy Now option to purchase an item. The temporary basket, which has a limited lifetime of 15 minutes, is populated with all the data required to ready the basket for checkout without affecting the regular shopper basket.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Enable Temporary Baskets for Immediate Order Requests in OCAPI

OCAPI 23.4 includes support for temporary baskets. Temporary baskets allow for immediate order requests in B2C Commerce. For example, a shopper uses a Buy Now option to purchase an item. The temporary basket, which has a limited lifetime of 15 minutes, is populated with all the data required to ready the basket for checkout without affecting the regular shopper basket.

**How:** Pass a query parameter `temporary` into `POST baskets` to create a temporary basket. With OCAPI 24.1 the basket document attribute is `temporary_baskets` indicates a basket is temporary.

The temporary basket differs from a shopper basket in the following ways:

- Basket lifetime is limited compared to shopper baskets
    
    A temporary lifetime of 15 minutes is used for basket retention
- Limit is separate from shopper and agent basket limits. The shopper can have up to 4 temporary baskets
- Available to all shoppers including guests (unlike agent baskets)

#### See Also

- [Enable Temporary Baskets for Immediate Order Requests](https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_rn_enable_temporaty_basket.htm&type=5&language=en_US)