Get rate plans associated for cart item by ID

get

/ccstore/v1/orders/current/items/{id}/ratePlans

This API is used by the CX Commerce OSF Storefront. This API is currently not used by CX Commerce Classic Storefront but may be used in the future. It may be used in applications outside of CX Commerce Storefront.

Get the rate plans for the given cart item ID.

This endpoint is part of a group of APIs used in conjunction with each other to perform granular actions on the cart (current incomplete order).

Request

Supported Media Types
Path Parameters
Query Parameters
  • This controls which fields are returned in the response body. For example, to include the field1 and field2 in the response, you can send fields=field1,field2.
  • Specifies the number of rate plans to be obtained
  • Starting index
  • Specifies a comma-separated list of pairs to order the response by.
  • Search criteria to filter the search results based on various fields
  • Indicates if the total results should be included in the response.
Header Parameters
  • Current organization context of the logged in user
  • ID provided by the Oracle Commerce Visit Service to uniquely identify the current visitor. It is required for every request to enable full endpoint capabilities for all shopper types.
Back to Top

Response

Supported Media Types

200 Response

The success response
Body ()
Root Schema : getRatePlans_response
Type: object
Show Source
  • The commerce item id for which the rate plans are fetched
    Example: ci28000413
  • items
  • Specifies the number of rate plans to be retrieved starting from offset. In case this is not present, the complete list of rate plans for the commerceItem will be returned.
    Example: 25
  • Starting index when paging through rate plans
    Example: 0
Example:
{
    "offset":0,
    "limit":25,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstore/v1/orders/current/items/ci28000413/ratePlans"
        }
    ],
    "id":"ci28000413",
    "items":[
        {
            "name":"Standard Plan",
            "id":"standardPlanRA01"
        },
        {
            "name":"Flat Rate Plan",
            "id":"flatRatePlanRA01"
        }
    ]
}
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

400 Response

The error response (which alternates to the default response depending on error reason).
Body ()
Root Schema : errorModelSingleError
Type: object
Show Source

Default Response

The error response.
Body ()
Root Schema : errorModelMultiErrors
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top