The endpoint and http method information where the Exchange process is completed are given below.
| HTTP Method | URL |
|---|---|
| POST | /v1/Transaction/ApproveExchange |
| Params | Type | Mandatory |
|---|---|---|
| exchange_purpose | string | Yes |
| request_id | string | Yes |
| account_number | string | Yes |
| ext_transaction_id | string | Yes |
| Params | Type |
|---|---|
| code | string |
| massage | string |
| payload | string |
| transaction_id | string |
| ext_transaction_id | string |
| exchange_rate | decimal |
| exchanged_transaction | obje |
| exchange_purpose | string |
| exchange_currency | string |
| exchange_amount | decimal |
| transaction_base_amount | decimal |
| transaction_amount_with_fee | decimal |
| transaction_currency | string |
| fee_list | string[] |
| fee_type | string |
| fee_rate | decimal |
| fee_fixed_amount | decimal |
| total_amount | decimal |
| currency_code | string |
| description | string |
REQUEST
{
"exchange_purpose": "BUY",
"request_id": "f77f3758-38ba-4ec9-a011-18a255da8620",
"account_number": "dgkn-usd",
"ext_transaction_id": "EXH1001"
}
RESPONSE
{
"status": 0,
"code": "100",
"message": "İşlem Başarılı",
"payload": {
"transaction_id": "7223412772462783501",
"ext_transaction_id": "EXH1001",
"exchange_rate": 8.251,
"exchanged_transaction": {
"exchange_purpose": "BUY",
"exchange_currency": "USD",
"exchange_amount": 10.0,
"transaction_base_amount": 82.51,
"transaction_amount_with_fee": 88.51,
"transaction_currency": "TRY"
},
"fee_list": [
{
"fee_type": "KGV",
"fee_rate": 0.002,
"fee_fixed_amount": null,
"total_amount": 0.17,
"currency_code": "TRY",
"description": "KGV - Kambiyo Gider Vergisi"
},
{
"fee_type": "Wallet",
"fee_rate": null,
"fee_fixed_amount": null,
"total_amount": 5.83,
"currency_code": "TRY",
"description": "Comission"
}
]
}
}{
"status": 0,
"code": "100",
"message": "İşlem Başarılı",
"payload": {
"transaction_id": "7223412772462783501",
"ext_transaction_id": "EXH1001",
"exchange_rate": 8.251,
"exchanged_transaction": {
"exchange_purpose": "BUY",
"exchange_currency": "USD",
"exchange_amount": 10.0,
"transaction_base_amount": 82.51,
"transaction_amount_with_fee": 88.51,
"transaction_currency": "TRY"
},
"fee_list": [
{
"fee_type": "KGV",
"fee_rate": 0.002,
"fee_fixed_amount": null,
"total_amount": 0.17,
"currency_code": "TRY",
"description": "KGV - Kambiyo Gider Vergisi"
},
{
"fee_type": "Wallet",
"fee_rate": null,
"fee_fixed_amount": null,
"total_amount": 5.83,
"currency_code": "TRY",
"description": "Comission"
}
]
}
}