---
schema_version: "1"
id: 05c427444e66810b8f7b7cdc999d977374508dbb7c2b760353e1842718e3101a
title: Sample Basket Usage Scenario in Digital Commerce
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-sample-usage-scenario.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-sample-usage-scenario.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1126ad9dc6f45b0d2ac360c091abf3fbac79cb87e1f143015a1411a27db512ce
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Sample Basket Usage Scenario in Digital Commerce

You can add an offer without any configured attribute values to a basket.

1.  Follow the [prerequisites](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-create-basket-with-basketaction.md).

2.  Ensure you have run the appropriate batch jobs and configured the appropriate custom settings. See [Preparing Digital Commerce API Caching](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-preparing-digital-commerce-api-caching.md).

3.  Execute a call to the [Get Offer Details API](https://developer.salesforce.com/docs/industries/cme/guide/comms-t-get-offer-details-api.md).

4.  After successfully running GetOfferDetails, copy and save the entire contents of the `OfferDetails` node. For example:

    `{"result:{"offerDetails":{"offer"...}}}`

    **note:** To configure the offer before adding it to the basket, modify the `offerDetails` JSON result.

5.  Paste the result node from the previous step into the body of the Basket API request.

6.  Execute the Create Basket API call:

    ```nolang
    Method: POST

    API:
    /services/apexrest/vlocity_cmt/v3/catalogs/{catalog_code}/basket

    Request Body
    {"basketAction":"AddAfterConfig",
    "productConfig":{"offerDetails":{"offer": {}}}}
    ```
