Sign in

Replace cart

documented

Replace a cart’s representation.

PUT /stores/{store_id}/carts/{cart_id}Storesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.foxy.io/stores/{{$store_id}}/carts/{{$cart_id}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "FOXY-API-VERSION: 1" \
  -H "Content-Type: application/json" \
  -H "Accept: application/hal+json" \
  -d '{"class": ["cart"],"properties": {"customer_uri": "{{$customer_uri}}", "customer_email": "{{$customer_email}}", "language": "{{$language}}", "template_set_uri": "{{$template_set_uri}}", "currency_code": "{{$currency_code}}", "total_item_price": {{$total_item_price}}, "total_tax": {{$total_tax}}, "total_shipping": {{$total_shipping}}, "total_order": {{$total_order}}},"links": [{"rel": ["self"],"href": "https://api.foxy.io/stores/{{$store_id}}/carts/{{$cart_id}}"}]}'