Exchange işleminin tamamlandığı endpoint ve http metod bilgisi aşağıda verilmiştir.
| HTTP Method | URL |
|---|---|
| POST | /v1/Transaction/ApproveExchange |
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
| exchange_purpose | string | Evet | “BUY” veya “SELL” olmalı. Exchange işleminin tipini belirler |
| request_id | string | Evet | BeginExchange enpointinden dönen request_id girilerek, ilgili işlem gerçekleşmesi sağlanır. |
| account_number | string | Evet | BeginExchange İşlemi Oluşturan Müşterinin Numarası |
| ext_transaction_id | string | Evet | İşlem Id |
| Parametre | Tip | Açıklama |
|---|---|---|
| code | string | Kod |
| massage | string | Mesaj |
| payload | string | Veri |
| transaction_id | string | İşlem Id |
| ext_transaction_id | string | İşlem Id Numarası |
| exchange_rate | decimal | Kur Oranı |
| exchanged_transaction | obje | Takas İşlemi |
| exchange_purpose | string | İşlem Tipi("Buy"-"Sell") |
| exchange_currency | string | Döviz Kuru (ÖRN:"USD") |
| exchange_amount | decimal | Takas Tutarı |
| transaction_base_amount | decimal | İşlemin Temel Tutarı |
| transaction_amount_with_fee | decimal | İşleme Eklenen Tutar |
| transaction_currency | string | İşlem Para Birimi |
| fee_list | string[] | Ücret Listesi |
| fee_type | string | Ücret Tipi |
| fee_rate | decimal | Ücret Oranı |
| fee_fixed_amount | decimal | Sabit Ücret Tutarı |
| total_amount | decimal | Toplam Tutar |
| currency_code | string | Para Birimi |
| description | string | Açıklama |
İSTEK (POST) :
{
"exchange_purpose": "BUY",
"request_id": "f77f3758-38ba-4ec9-a011-18a255da8620",
"account_number": "dgkn-usd",
"ext_transaction_id": "EXH1001"
}
YANIT:
{
"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"
}
]
}
}