Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples"Cart totals have been calculated."Calculates the cart totals including taxes, shipping, and discounts.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/v1/calculate \
--header 'Content-Type: application/json' \
--data '
{
"return": false
}
'"Cart totals have been calculated."Returns the cart totals once calculated.
Cart totals calculated successfully.
Success message when return parameter is false or not provided.
"Cart totals have been calculated."
Was this page helpful?