POST exchange-office-currency-pairs/create

Creates a new Exchange Office Currency Pair owned by the currently authenticated exchange office. Requires a JSON POST body and Content-Type header to be set to application/json. Setting Content-Length may also be required if it is not automatically.

URL

https://unicash.io/api/exchange-office-currency-pairs/create

Parameters

access-token (string) (required) (header param) Access token for exchange office authentication.
id_currency_pair (int) (required) The id of the Currency Pair. For example: 1
id_payment_system (int) (required) The id of the Payment System. For example: 1
conversion_rate (double) (required) Conversion rate for Currency Pair. For example: 39.8

Example request

{
    "id_currency_pair": 1,
    "id_payment_system": 1,
    "conversion_rate": 39.8
}

Example success response

{
    "status": 200,
    "data": {
        "id": 1,
        "id_currency_pair": 1,
        "id_payment_system": 1,
        "conversion_rate": 39.8
    }
}

Example error response

{
    "status": 400,
    "error": "This is an error message."
}