This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/v1/calculate/shipping \
--header 'Content-Type: application/json' \
--data '{
"country": "<string>",
"state": "<string>",
"city": "<string>",
"postcode": "<string>",
"return_methods": false
}'
"<string>"
Calculates shipping for the cart.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/v1/calculate/shipping \
--header 'Content-Type: application/json' \
--data '{
"country": "<string>",
"state": "<string>",
"city": "<string>",
"postcode": "<string>",
"return_methods": false
}'
"<string>"
Shipping calculated successfully.
The response is of type string
.
Was this page helpful?