title: get currency-converted amount via REST API
body: <p>We currently process USD payments via paypal's REST API using their ruby gem. I would like to accept other currencies and have set our account to auto-convert foreign currency payments to USD. I can successfully process these payments and can see in the sandbox web interface that they were converted, but it's unclear to me how to look the conversion transactions up via the API. Can anyone shed any light on this? See screenshot and completed payment + sale record below.</p>
  
  <p><img src="https://i.stack.imgur.com/FsqVV.png" alt="enter image description here"></p>
  
  <pre><code>    Response[200]: OK, Duration: 0.858s
  {
                "id" =&gt; "PAY-0XK33729VB648561PKV5SG6A",
            "intent" =&gt; "sale",
             "payer" =&gt; {
          "payment_method" =&gt; "paypal",
                  "status" =&gt; "VERIFIED",
              "payer_info" =&gt; {
                         "email" =&gt; "jack@example.com",
                    "first_name" =&gt; "Fake",
                     "last_name" =&gt; "Fakerson",
                      "payer_id" =&gt; "F2JC8YDQ6HDUA",
              "shipping_address" =&gt; {
                           "line1" =&gt; "1 Main St",
                            "city" =&gt; "San Jose",
                           "state" =&gt; "CA",
                     "postal_code" =&gt; "95131",
                    "country_code" =&gt; "US",
                  "recipient_name" =&gt; "Fake Fakerson"
              }
          }
      },
      "transactions" =&gt; [
          [0] {
                         "amount" =&gt; {
                  "currency" =&gt; "EUR",
                     "total" =&gt; "5.00",
                   "details" =&gt; {
                      "subtotal" =&gt; "5.00"
                  }
              },
                    "description" =&gt; "Unlimited School - I'm a course",
              "related_resources" =&gt; [
                  [0] {
                      "sale" =&gt; {
                                                   "id" =&gt; "24439073LW446012K",
                                               "amount" =&gt; {
                              "currency" =&gt; "EUR",
                                 "total" =&gt; "5.00"
                          },
                                         "payment_mode" =&gt; "INSTANT_TRANSFER",
                                                "state" =&gt; "completed",
                               "protection_eligibility" =&gt; "ELIGIBLE",
                          "protection_eligibility_type" =&gt; "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
                                      "transaction_fee" =&gt; {
                              "currency" =&gt; "EUR",
                                 "value" =&gt; "0.50"
                          },
                                       "parent_payment" =&gt; "PAY-0XK33729VB648561PKV5SG6A",
                                          "create_time" =&gt; "2015-06-12T18:22:48Z",
                                          "update_time" =&gt; "2015-06-12T18:23:19Z",
                                                "links" =&gt; [
                              [0] {
                                    "href" =&gt; "https://api.sandbox.paypal.com/v1/payments/sale/24439073LW446012K",
                                     "rel" =&gt; "self",
                                  "method" =&gt; "GET"
                              },
                              [1] {
                                    "href" =&gt; "https://api.sandbox.paypal.com/v1/payments/sale/24439073LW446012K/refund",
                                     "rel" =&gt; "refund",
                                  "method" =&gt; "POST"
                              },
                              [2] {
                                    "href" =&gt; "https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XK33729VB648561PKV5SG6A",
                                     "rel" =&gt; "parent_payment",
                                  "method" =&gt; "GET"
                              }
                          ]
                      }
                  }
              ]
          }
      ],
             "state" =&gt; "approved",
       "create_time" =&gt; "2015-06-12T18:22:48Z",
       "update_time" =&gt; "2015-06-12T18:23:19Z",
             "links" =&gt; [
          [0] {
                "href" =&gt; "https://api.sandbox.paypal.com/v1/payments/payment/PAY-0XK33729VB648561PKV5SG6A",
                 "rel" =&gt; "self",
              "method" =&gt; "GET"
          }
      ]
  }
  </code></pre>