Skip to main content
POST
/
calculate
/
fees
Calculate cart fees
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/calculate/fees \
  --header 'Content-Type: application/json' \
  --data '{
  "set_session": false,
  "return": false
}'
"<string>"
This endpoint is available in CoCart Plus.

Body

application/json
set_session
boolean
default:false

Sets the cart fees in session once calculated.

return
boolean
default:false

Returns the cart fees once calculated.

Response

Cart fees calculated successfully.

  • string
  • object[]

The response is of type string.

I