POST api/ProductWebsite/CheckItemAlreadyPurchased

Request Information

URI Parameters

None.

Body Parameters

UserCart
NameDescriptionTypeAdditional information
user_id

integer

None.

cart_items

Collection of CartItem

None.

IsRegistered

boolean

None.

IsPreviewAdded

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "cart_items": [
    {
      "product_id": 1,
      "type": "sample string 2",
      "parent_product_id": 3,
      "quantity": 4,
      "add_to_cart": true,
      "product_sku_id": 6,
      "delivery_mode": "sample string 7"
    },
    {
      "product_id": 1,
      "type": "sample string 2",
      "parent_product_id": 3,
      "quantity": 4,
      "add_to_cart": true,
      "product_sku_id": 6,
      "delivery_mode": "sample string 7"
    }
  ],
  "IsRegistered": true,
  "IsPreviewAdded": true
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserCart'.

Response Information

Resource Description

JsonResultOfResponse
NameDescriptionTypeAdditional information
Content

Response

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.