This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
curl --request GET \
--url {protocol}://{host}/wp-json/cocart/v1/item
{
"key": "<string>",
"product_id": 123,
"variation_id": 123,
"variation": {},
"quantity": 123,
"data_hash": "<string>",
"line_tax_data": {
"subtotal": [
123
],
"total": [
123
]
},
"line_subtotal": 123,
"line_subtotal_tax": 123,
"line_total": 123,
"line_tax": 123,
"product_name": "<string>",
"product_title": "<string>",
"product_price": "<string>",
"product_image": "<string>"
}
Retrieves a specific item from the customer’s cart.
{
"key": "<string>",
"product_id": 123,
"variation_id": 123,
"variation": {},
"quantity": 123,
"data_hash": "<string>",
"line_tax_data": {
"subtotal": [
123
],
"total": [
123
]
},
"line_subtotal": 123,
"line_subtotal_tax": 123,
"line_total": 123,
"line_tax": 123,
"product_name": "<string>",
"product_title": "<string>",
"product_price": "<string>",
"product_image": "<string>"
}
Unique identifier for the item in the cart.
Cart item retrieved successfully.
The response is of type object
.
Was this page helpful?