POST api/ShoppingCart/MyCartObject/{id}?CustomerId={CustomerId}&ShoppingCartID={ShoppingCartID}&RegionId={RegionId}&IsDelivery={IsDelivery}

Documentation for 'MyCartObject'.

Request Information

Parameters

NameDescriptionAdditional information
id
Documentation for 'id'.

Define this parameter in the request URI.

CustomerId
Documentation for 'CustomerId'.

Define this parameter in the request URI.

ShoppingCartID
Documentation for 'ShoppingCartID'.

Define this parameter in the request URI.

RegionId
Documentation for 'RegionId'.

Define this parameter in the request URI.

IsDelivery
Documentation for 'IsDelivery'.

Define this parameter in the request URI.

dataShoppingCartLatest
Documentation for 'dataShoppingCartLatest'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": "76bf8b38-fbf0-454e-95c1-85ce40aeb38d",
  "CustomerID": "28d2cecb-77dc-4fda-9a77-427265fb9044",
  "Created": "2026-06-06T04:30:48.1226925+07:00",
  "Updated": "2026-06-06T04:30:48.1226925+07:00",
  "Total": 1.0,
  "PromoSelect": "sample string 4",
  "VBKCode": "sample string 5",
  "VBKNominal": 1.0,
  "VBKExpiredDate": "2026-06-06T04:30:48.1226925+07:00",
  "VoucherPlaza": 1.0,
  "VoucherStore": 1.0,
  "VBKID": "sample string 6",
  "VoucherDetail": "sample string 7",
  "CustomerAddressID": "35703da7-a582-49f3-85bd-db25239da156",
  "AddressTypeStore": 1,
  "AddressTypePlaza": 1,
  "StoreDefaultIStore": "sample string 8",
  "StoreDeliveryType": "sample string 9",
  "StoreDefaultIPlaza": "sample string 10",
  "ShippingPreferTime": "2026-06-06T04:30:48.1226925+07:00",
  "ShippingDate": "2026-06-06T04:30:48.1226925+07:00",
  "IsIStore": true,
  "IsPlaza": true,
  "IsAlreadyPaid": true,
  "IsHaveCoupon": true,
  "Longitude": 1.0,
  "Latitude": 1.0,
  "OrderDeliveryNote": "sample string 11",
  "CouponCodeCashback": "sample string 12",
  "CouponPromoCashback": "sample string 13",
  "EntityKey": null
}

application/xml, text/xml

Sample:
<ShoppingCart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>76bf8b38-fbf0-454e-95c1-85ce40aeb38d</ID>
  <CustomerID>28d2cecb-77dc-4fda-9a77-427265fb9044</CustomerID>
  <Created>2026-06-06T04:30:48.1226925+07:00</Created>
  <Updated>2026-06-06T04:30:48.1226925+07:00</Updated>
  <Total>1</Total>
  <PromoSelect>sample string 4</PromoSelect>
  <VBKCode>sample string 5</VBKCode>
  <VBKNominal>1</VBKNominal>
  <VBKExpiredDate>2026-06-06T04:30:48.1226925+07:00</VBKExpiredDate>
  <VoucherPlaza>1</VoucherPlaza>
  <VoucherStore>1</VoucherStore>
  <VBKID>sample string 6</VBKID>
  <VoucherDetail>sample string 7</VoucherDetail>
  <CustomerAddressID>35703da7-a582-49f3-85bd-db25239da156</CustomerAddressID>
  <AddressTypeStore>1</AddressTypeStore>
  <AddressTypePlaza>1</AddressTypePlaza>
  <StoreDefaultIStore>sample string 8</StoreDefaultIStore>
  <StoreDeliveryType>sample string 9</StoreDeliveryType>
  <StoreDefaultIPlaza>sample string 10</StoreDefaultIPlaza>
  <ShippingPreferTime>2026-06-06T04:30:48.1226925+07:00</ShippingPreferTime>
  <ShippingDate>2026-06-06T04:30:48.1226925+07:00</ShippingDate>
  <IsIStore>true</IsIStore>
  <IsPlaza>true</IsPlaza>
  <IsAlreadyPaid>true</IsAlreadyPaid>
  <IsHaveCoupon>true</IsHaveCoupon>
  <Longitude>1</Longitude>
  <Latitude>1</Latitude>
  <OrderDeliveryNote>sample string 11</OrderDeliveryNote>
  <CouponCodeCashback>sample string 12</CouponCodeCashback>
  <CouponPromoCashback>sample string 13</CouponPromoCashback>
</ShoppingCart>

Response Information

Response body formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatterTracer' to generate sample for media type 'application/json'. Exception message: One or more errors occurred.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatterTracer' to generate sample for media type 'text/json'. Exception message: One or more errors occurred.