Add cart item
documentedAdd an item to a cart.
POST /api/v2/cart/{cart_id}/itemsCartno implementation yet0 runsNo 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://{{domain}}/api/v2/cart/{{$cart_id}}/items" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Api-State: {{$api_state}}" \
-d '{"items": [ {"type": "product", "product_id": {{$product_id}}, "billing_cycle": "{{$billing_cycle}}", "quantity": {{$quantity}}, "domain": "{{$domain}}", "addons": [ {"id": {{$addon_id}}, "quantity": {{$addon_quantity}} } ], "custom_fields": [ {"id": {{$custom_field_id}}, "value": "{{$custom_field_value}}" } ], "config_options": [ {"id": {{$config_option_id}}, "value": {{$config_option_value}} } ] } ] }'"