title: REST API Subscriptions and transactions(payments) endpoints in Laravel
body: <p>I am developing a web app and I observe REST API standards. I am searching for REST API best practice for subscription and payments.</p>
  
  <p>When a new user subscribe for "pro plan", user should pay money for plan and it is a transaction.</p>
  
  <p>Should I set POST: <code>users/{id}/subscriptions</code> and <code>SubscriptionsController@store</code> when new user subscribes?</p>
  
  <p>And because subscription is a transaction and 2 separated request (before/after bank), all of subscribe codes should be in <code>SubscriptionController@store</code>?</p>
  
  <p>For upgrade, cancel or updating a plan should I set PUT: <code>users/{id}/subscriptions/{id}</code> and <code>SubscriptionController@update</code> or other endpoint?</p>