Skip to main content
POST
/
v2
/
pricing
/
quote-exchange-rates
Create Exchange Rate Quote
curl --request POST \
  --url https://api-m.sandbox.paypal.com/v2/pricing/quote-exchange-rates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "quote_items": [
    {
      "base_currency": "<string>",
      "base_amount": "<string>",
      "quote_currency": "<string>",
      "markup_percent": "<string>",
      "fx_id": "<string>"
    }
  ]
}'
{
  "exchange_rate_quotes": [
    {
      "base_amount": {
        "currency_code": "<string>",
        "value": "<string>"
      },
      "quote_amount": {
        "currency_code": "<string>",
        "value": "<string>"
      },
      "exchange_rate": "<string>",
      "fx_id": "<string>",
      "expiry_time": "<string>",
      "rate_refresh_time": "<string>",
      "update_time": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Body

application/json

Request Object for quoting exchange rates.

quote_items
Request object for exchange rate quote. · object[]
required

Parameters required to request an exchange rate, passed in the quote_items array: <ul><li>base_currency</li><li>base_amount</li><li>quote_currency</li><li>markup_percent</li><li>fx_id.</li></ul>

Required array length: 1 - 250 elements
organization
string

Organization this managed account belongs to, in the partner's hierarchy, in the form of a path.

Required string length: 2 - 100

Response

A successful request returns the HTTP 200 OK status code and a JSON response body that shows quote exchange rate details.

Response Object for quoting exchange rates.

exchange_rate_quotes
Response object for fx service exchange currency. · object[]
required

Exchange rate details, specified as an array of object.

Required array length: 1 - 500 elements
I