Skip to main content
POST
/
organizations
/
admin
/
add-active-rate
Add an active rate with configuration
curl --request POST \
  --url https://prod-api.pcxpay.com/v1/organizations/admin/add-active-rate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "rate_data": {
    "org_id": "<string>",
    "from_currency": "<string>",
    "to_currency": "<string>",
    "rate": 123,
    "provider": "<string>"
  },
  "rate_config": {
    "spread": 123,
    "provider": "<string>"
  }
}
'
{
  "status": "<string>",
  "message": "<string>",
  "data": {
    "rate_id": "<string>",
    "message": "<string>"
  }
}

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"

Body

application/json
rate_data
object
required
rate_config
object
required

Response

Active rate added

status
string
message
string
data
object