title: Not able to place the order using paypal in magento 2 rest
body: <p>I am developing an e-commerce mobiloe application using <strong>magento 2 rest</strong> apis only.This is the flow for making the REST API calls for order placement.</p>
  
  <p><strong><code>1.Create a cart</code></strong>  </p>
  
  <p>api --><code>{{url}}/index.php/rest/V1/carts/mine</code> </p>
  
  <p>This api will return a unique <strong>cart id</strong></p>
  
  <p><strong><code>2.Add products to cart</code></strong> </p>
  
  <p>api --> <code>{{url}}/index.php/rest/V1/carts/mine/items</code></p>
  
  <p>body -></p>
  
  <pre><code>{
   "cart_item": {
       "quote_id": cartId,
       "sku": skuName,
       "qty": 1
       }
  }
  </code></pre>
  
  <p><strong><code>3. Estimate Shipping Methods</code></strong></p>
  
  <p>url --> <code>{{url}}/index.php/rest/V1/carts/mine/estimate-shipping-methods</code></p>
  
  <p>body -></p>
  
  <pre><code>{
      "address": {
          "region": "Trivandrum",
          "region_id": 12,
          "region_code": "CA",
          "country_id": "IN",
          "street": [
              "Amstor house",
              "Eramam"
          ],
          "telephone": "5656565454",
          "postcode": "670390",
          "city": "Kazhakuttam",
          "firstname": "Peter",
          "lastname": "K",
          "same_as_billing": 0,
          "save_in_address_book": 0
      }
  
  }
  </code></pre>
  
  <p>This will return all possible shipping methods based on shipping address.In my case the result is </p>
  
  <pre><code>[
    {
      "carrier_code": "freeshipping",
      "method_code": "freeshipping",
      "carrier_title": "Free Shipping",
      "method_title": "Free",
      "amount": 0,
      "base_amount": 0,
      "available": true,
      "error_message": "",
      "price_excl_tax": 0,
      "price_incl_tax": 0
    }
  ]
  </code></pre>
  
  <p><strong><code>4)Save shipping information</code></strong></p>
  
  <p>url --> <code>{{url}}/index.php/rest/V1/carts/mine/shipping-information</code></p>
  
  <p>body data -></p>
  
  <pre><code>{
      "addressInformation": {
          "shipping_address": {
  
              "region": "Trivandrum",
              "region_id": 12,
              "region_code": "CA",
              "country_id": "IN",
              "street": [
                  "Amstor house",
                  "Eramam"
              ],
              "telephone": "5656565454",
              "postcode": "670390",
              "city": "Kazhakuttam",
              "firstname": "Peter",
              "lastname": "K",
  
          },
          "billing_address": {
              "region": "Trivandrum",
              "region_id": 12,
              "region_code": "CA",
              "country_id": "IN",
              "street": [
                  "Amstor house",
                  "Eramam"
              ],
              "telephone": "5656565454",
              "postcode": "670390",
              "city": "Kazhakuttam",
              "firstname": "Peter",
              "lastname": "K",
          },
          "shipping_method_code": "freeshipping",
          "shipping_carrier_code": "freeshipping"
  
  
      }
  }
  </code></pre>
  
  <p>This will return all possible payment methods. Here i am using <code>paypal_express</code> for payment.</p>
  
  <p><strong><code>5. Payment using paypal plugin</code></strong> </p>
  
  <p>Here i will pay the amount using  <a href="http://paypal%20cordova%20plugin" rel="nofollow noreferrer">paypal cordova plugin</a>.Also configured the IPN [{{url}}/paypal/ipn/]in paypal account</p>
  
  <p>This api will return the following data,</p>
  
  <pre><code>{
     "client": {
         "environment": "sandbox",
         "paypal_sdk_version": "2.14.4",
         "platform": "Android",
         "product_name": "PayPal-Android-SDK"
     },
     "response": {
         "create_time": "2016-11-19T05:25:46Z",
         "id": "PAY-5VS11410F5341972MLAX6ETA",
         "intent": "sale",
         "state": "approved"
     },
     "response_type": "payment"
  }
  </code></pre>
  
  <p><strong><code>5.Save payment and place order</code></strong></p>
  
  <p>url --> <code>{{url}}/index.php/rest/V1/carts/mine/payment-information</code></p>
  
  <p>data -></p>
  
  <pre><code>{
      "cartId": 3,
      "billingAddress‌​": {
          "region": "Trivandrum",
          "region_id": 12,
          "region_code": "CA",
          "country_id": "IN",
          "street": [
              "Amstor house",
              "Eramam"
          ],
          "telephone": "5656565454",
          "postcode": "670390",
          "city": "Kazhakuttam",
          "firstname": "Peter",
          "lastname": "K"
      },
      "paymentMethod": {
          "method": "paypal_express"
  
      }
  }
  </code></pre>
  
  <p>But this api will returning </p>
  
  <pre><code>{
    "message": "PayPal gateway has rejected request. Invalid token (#10410: Invalid token)."
  }
  </code></pre>
  
  <p>Is there any api missing in the above flow for capturing payments.Please help me.</p>