Begin Exchange

URL

The endpoint and http method information from which the Exchange process is started are given below.

HTTP Method URL
POST /v1/Transaction/BeginExchange

Request Params

Params Type Mandatory
exchange_purpose string Yes
amount decimal Yes
currency_code string Yes
from_wallet_number string Yes
to_wallet_number string Yes
account_number string Yes
source_type string No
channel_type string No
description string No

Response Params

Params Type
code string
massage string
payload string
request_id string
exchange_purpose string
exchange_rate decimal
currency_code string
from_amount decimal
to_amount decimal
from_wallet_number string
to_wallet_number string
account_number string

REQUEST

{
  "exchange_purpose": "BUY",
  "amount": 10,
  "currency_code": "USD",
  "from_wallet_number": "TR21100110820KAC2125221175",
  "to_wallet_number": "TR04111181NJIK320E72503K0H",
  "account_number": "dgkn-usd",
  "source_type": "WEB",
  "channel_type": "Manual Channel",
  "description": "USD BUY"
}

RESPONSE

{
    "status": 0,
    "code": "100",
    "message": "İşlem Başarıyla Kayıt Edildi",
    "payload": {
        "request_id": "f77f3758-38ba-4ec9-a011-18a255da8620",
        "exchange_purpose": "BUY",
        "exchange_rate": 8.251,
        "currency_code": "USD",
        "from_amount": 82.51,
        "to_amount": 10.0,
        "from_wallet_number": "TR21100110820KAC2125221175",
        "to_wallet_number": "TR04111181NJIK320E72503K0H",
        "account_number": "dgkn-usd"
    }
}