Create subscription
documentedCreate a new subscription for a store.
POST /stores/{store_id}/subscriptionsStoresno 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://api.foxycart.com/carts" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/hal+json" \
-d '{"customer_uri": "{{$customer_uri}}", "items": [ {"name": "{{$item_name}}", "price": {{$item_price}}, "quantity": {{$quantity}}, "subscription_frequency": "{{$subscription_frequency}}", "subscription_start_date": "{{$start_date}}", "subscription_next_transaction_date": "{{$next_date}}", "subscription_end_date": "{{$end_date}}" } ] }'