Skip to main content
GET
/
organizations
/
admin
/
exchange-rate
Get exchange rate for an org and currency pair
curl --request GET \
  --url https://prod-api.pcxpay.com/v1/organizations/admin/exchange-rate \
  --header 'Authorization: <authorization>' \
  --header 'X-Api-Key: <x-api-key>'
{
  "status": "<string>",
  "message": "<string>",
  "data": [
    {
      "org_rate_id": "<string>",
      "org_id": "<string>",
      "rate": 123,
      "from_currency": "<string>",
      "to_currency": "<string>",
      "spread": 123,
      "active": true,
      "provider": "<string>",
      "effective_from": "2023-11-07T05:31:56Z",
      "effective_to": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.pcxpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Query Parameters

fromCurrency
string
required
toCurrency
string
required
orgId
string
required

Response

Exchange rates

status
string
message
string
data
object[]