Skip to content

Calculate new price on cart

Request

Endpoint used for calculating a new price on a cart based on current campaigns and/or a members available:

  • Bonus
  • Coupons
  • Vouchers

As both the request and response is fully dynamic, the format of the data exchanged has to be agreed upon before activating.

Security
api_key
Bodyapplication/json
cartIdstring

Cart identifier

Example:"934E2183-5004-45B0-8E75-A5178F1DEEF1"
curl -i -X POST \
  https://api.oculos.no/v4/plugins/cart/price \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "cartId": "934E2183-5004-45B0-8E75-A5178F1DEEF1"
  }'

Responses

OK