---
updatedAt: 2026-04-21T17:39:49.000Z
agentTools:
  projectIndex: https://developer.bill.com/v2/llms.txt
---

# Get the current BILL foreign exchange rate

Get the current BILL foreign exchange rate. The exchange rate is required for paying international vendors.

In your request, set `type` as `POC3` if the bill is in a foreign currency (such as CAD) and the bill payment is made in the same currency.

Since the BILL foreign exchange rate changes periodically, use `/v2/GetDynamicExchangeRateQuote.json` to retrieve the current `exchangeRate` and `batchId` values.
* `exchangeRate` is required while creating bills and vendor credits for international vendors with `/v2/Crud/Create/Bill.json`
* `batchId` is required while making bill payments to international vendors with `/v2/PayBill.json`

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AP | Vendor transactions",
    "version": "2.0",
    "description": "BILL is a cloud-based cash flow management system for an organization's Accounts Payable (AP) and Accounts Receivable (AR) automation.\n * **AP**: Automate workflows to pay vendors bills at scale for the goods and services they provide. Pay vendors with a wide range of payment methods. Generate vendor credits, bill credits, and payment disbursement reports.\n * **AR**: Automate workflows to get paid by customers at scale for the goods and services you provide. Generate and send invoices on a schedule, generate customer and invoice credits, and seamlessly charge authorized customers.\n * **Organization**: Manage your bank accounts (for sending and receiving payments), users (with user roles), and sync with your choice of accounting software.\n\nIntegrate with the BILL API to send and receive payments for your business. See [Support Center](https://help.bill.com/hc/en-us) for resources about using the BILL web app.",
    "contact": {
      "email": "developerprogram@hq.bill.com"
    }
  },
  "servers": [
    {
      "url": "https://api-stage.bill.com/api/v2",
      "description": "Sandbox base URL"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "java",
      "javascript",
      "python",
      "ruby"
    ]
  },
  "paths": {
    "/GetDynamicExchangeRateQuote.json": {
      "post": {
        "summary": "Get the current BILL foreign exchange rate",
        "operationId": "ap-vendortransactions-getdynamicexchangeratequote",
        "description": "Get the current BILL foreign exchange rate. The exchange rate is required for paying international vendors.\n\nIn your request, set `type` as `POC3` if the bill is in a foreign currency (such as CAD) and the bill payment is made in the same currency.\n\nSince the BILL foreign exchange rate changes periodically, use `/v2/GetDynamicExchangeRateQuote.json` to retrieve the current `exchangeRate` and `batchId` values.\n* `exchangeRate` is required while creating bills and vendor credits for international vendors with `/v2/Crud/Create/Bill.json`\n* `batchId` is required while making bill payments to international vendors with `/v2/PayBill.json`",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDynamicExchangeRateQuoteResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "devKey",
                  "sessionId",
                  "data"
                ],
                "properties": {
                  "devKey": {
                    "type": "string",
                    "description": "Developer key generated with your BILL developer account"
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "API session ID generated with [`/v2/Login.json`](ref:auth-login)"
                  },
                  "data": {
                    "$ref": "#/components/schemas/GetDynamicExchangeRateQuoteRequest"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "AP transactions"
        ]
      },
      "parameters": []
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code (only when `response_status` is `1`)"
          },
          "error_message": {
            "type": "string",
            "description": "Error message (only when `response_status` is `1`)"
          }
        }
      },
      "GetDynamicExchangeRateQuoteRequest": {
        "type": "object",
        "required": [
          "vendorData"
        ],
        "properties": {
          "vendorData": {
            "type": "array",
            "description": "Array of vendors. You can retrieve the `exchangeRate` and `batchId` for multiple international vendors in a single request.",
            "items": {
              "type": "object",
              "properties": {
                "vendorId": {
                  "type": "string",
                  "description": "BILL-generated ID of the international vendor to be paid. The value begins with `009`."
                },
                "totalAmount": {
                  "type": "string",
                  "description": "Total bill amount to be paid in the foreign currency"
                },
                "type": {
                  "type": "string",
                  "description": "Code for currency and currency type.\n* `POC1`: Bill or vendor credit is in USD and payment is in USD\n* `POC2`: Bill or vendor credit is in USD and payment is in foreign currency\n* `POC3`: Bill or vendor credit is in foreign currency and payment is in the same foreign currency"
                }
              }
            }
          }
        }
      },
      "GetDynamicExchangeRateQuoteResponse": {
        "type": "object",
        "properties": {
          "response_status": {
            "type": "integer",
            "description": "Response status.\n* `0`: Success response\n* `1`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_message": {
            "type": "string",
            "description": "Response status.\n* `Success`: Success response\n* `Error`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_data": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorResponse"
              }
            ],
            "properties": {
              "batchId": {
                "type": "integer",
                "description": "Exchange rate batch ID for paying an international vendor"
              },
              "exchangeRates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "paymentCurrency": {
                      "type": "string",
                      "description": "Vendor's payment currency. This is the currency in which the vendor accepts payments."
                    },
                    "billCurrency": {
                      "type": "string",
                      "description": "Bill currency"
                    },
                    "exchangeRate": {
                      "type": "number",
                      "description": "Exchange rate. This rate compares the organization's base currency and the vendor `paymentCurrency` value.\n\nFor example, if the organization's base currency is USD and the vendor `paymentCurrency` is CAD, an `exchangeRate` of `1.372` tells us that `1 USD = 1.372 CAD`."
                    },
                    "validFrom": {
                      "type": "number",
                      "description": "Amount range start"
                    },
                    "validTo": {
                      "type": "number",
                      "description": "Amount range end"
                    },
                    "vendorId": {
                      "type": "string",
                      "description": "BILL-generated ID of the international vendor to be paid. The value begins with `009`."
                    },
                    "totalAmount": {
                      "type": "string",
                      "description": "Total bill amount to be paid"
                    }
                  }
                }
              },
              "orgId": {
                "type": "string",
                "description": "BILL-generated ID of the organization. The value begins with `008`."
              },
              "orgBaseCurrency": {
                "type": "string",
                "description": "Organization's base currency"
              }
            }
          }
        }
      }
    }
  }
}
```