Apply exchange rate for list of combinations

POST /api-v1/currency-exchange/apply

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

application/json

Body Required

currencyConversions

  • convertedAmount number
  • currencyFrom integer
  • currencyTo integer
  • date string
  • requestedAmount number

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • convertedAmount number
    • currencyFrom integer
    • currencyTo integer
    • date string
    • requestedAmount number
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/currency-exchange/apply
curl \
 --request POST 'https://wyzio.app/api-v1/currency-exchange/apply' \
 --header "Content-Type: application/json" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string" \
 --data '[{"convertedAmount":42.0,"currencyFrom":42,"currencyTo":42,"date":"string","requestedAmount":42.0}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string

# Payload
[
  {
    "convertedAmount": 42.0,
    "currencyFrom": 42,
    "currencyTo": 42,
    "date": "string",
    "requestedAmount": 42.0
  }
]
Response examples (200)
[
  {
    "convertedAmount": 42.0,
    "currencyFrom": 42,
    "currencyTo": 42,
    "date": "string",
    "requestedAmount": 42.0
  }
]