Relevant endpoint and http method information for returning is given below a refund.
HTTP Method | URL |
---|---|
POST | /v1/Transaction/RefundPaymentInstant |
Params | Type | Mandatory |
---|---|---|
tx_correlation_id | int | Yes |
ext_transaction_id | string | Yes |
currency_code | string | Yes |
refund_amount | decimal | Yes |
description | string | No |
Params | Type |
---|---|
status | int |
code | string |
message | string |
payload | object |
transaction_id | string |
ext_transaction_id | string |
transaction_amount | decimal |
transaction_fee_amount | decimal |
previous_amount | decimal |
wallet_info | object |
id | string |
tenant_id | string |
name | string |
account_number | string |
account_type | string |
created_date_utc | string |
number | string |
phone_country_code | string |
phone_number | string |
string | |
total_balance | decimal |
monthly_incoming_total | decimal |
monthly_outgoing_total | decimal |
access_level_status_id | int |
access_level_status | string |
payment_balance | object |
available | decimal |
unavailable | decimal |
cash_balance | object |
available | decimal |
unavailable | decimal |
transaction_limits | object |
max_balance | decimal |
topup_credit_limit | decimal |
topup_cash_limit | decimal |
withdrawal_limit | decimal |
payment_limit | decimal |
wallet_to_wallet_limit | decimal |
kyc_level_status | string |
currency_code | string |
user_kyc_info | string |
is_topup_default | bool |
tax_number | string |
loyalty_record_required | boolean |
REQUEST
{
"tx_correlation_id":"XXX1234X",
"ext_transaction_id": "string",
"currency_code":"TRY",
"refund_amount":10,
"description":"iade"
}
RESPONSE
{
"status": 0,
"code": "100",
"message": "İşlem başarılı",
"payload": {
"transaction_id": "7440022202222222022",
"ext_transaction_id": "e2a58a96a0022",
"transaction_amount": 10.00,
"transaction_fee_amount": 0.00,
"previous_amount": 0.0,
"wallet_info": {
"id": "2921079220203823202",
"tenant_id": "5",
"name": "",
"account_number": "EK2828",
"account_type": "Bireysel",
"created_date_utc": "2021-10-19T12:05:41.000358+00:00",
"number": "826282822",
"phone_country_code": null,
"phone_number": null,
"email": null,
"total_balance": 1180.00,
"monthly_incoming_total": 0.0,
"monthly_outgoing_total": 0.0,
"access_level_status_id": 1,
"access_level_status": "Aktif",
"payment_balance": {
"available": 942.00,
"unavailable": 0.00
},
"cash_balance": {
"available": 235.00,
"unavailable": 3.00
},
"transaction_limits": {
"max_balance": 50000.0000,
"topup_credit_limit": 50000.0000,
"topup_cash_limit": 50000.0000,
"withdrawal_limit": 50000.0000,
"payment_limit": 50000.0000,
"wallet_to_wallet_limit": 50000.0000
},
"kyc_level_status": null,
"currency_code": "TRY",
"user_kyc_info": null,
"is_topup_default": false,
"tax_number": null,
"loyalty_record_required": false
}
}
}