The endpoint and http method information for the refund process are given below.
The amount is transferred to the available cash balance.
| HTTP Method | URL |
|---|---|
| POST | /v1/Transaction/CashBack |
| Params | Type | Mandatory |
|---|---|---|
| ext_transaction_id | string | Yes |
| sender_account_number | string | Yes |
| sender_wallet_number | string | Yes |
| amount | decimal | Yes |
| currency_code | string | Yes |
| description | string | No |
| receiver_wallet_number | string | Yes |
| hash_key | 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 |
| request_id | string |
| wallet_info | object |
| id | string |
| tenant_id | string |
| name | string |
| account_number | string |
| account_type | string |
| created_date_utc | datetime |
| 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 | boolean |
| tax_number | string |
| loyalty_record_required | boolean |
REQUEST:
{
"ext_transaction_id":"4897204600289487885",
"sender_account_number": "1234567778",
"sender_wallet_number": "1250386995",
"amount": 1,
"currency_code": "TRY",
"description": "CASH BACK TEST",
"receiver_wallet_number": "637606074",
"hash_key": ""
}
SUCCESSFUL RESPONSE:
{
"status": 0,
"code": "100",
"message": "İşlem başarılı",
"payload": {
"transaction_id": "4199364242142123910407181",
"ext_transaction_id": "7741624214219769617894413",
"transaction_amount": 5.0,
"transaction_fee_amount": 0.000000,
"previous_amount": 0.0,
"request_id": "0",
"wallet_info": {
"id": "6670164214214029176671245",
"tenant_id": "5",
"name": "",
"account_number": "22448",
"account_type": "Kurumsal",
"created_date_utc": "2022-07-27T07:11:05.1134464+00:00",
"number": "58923343242541",
"phone_country_code": null,
"phone_number": null,
"email": null,
"total_balance": 10619.00,
"monthly_incoming_total": 0.0,
"monthly_outgoing_total": 0.0,
"access_level_status_id": 1,
"access_level_status": "Aktif",
"payment_balance": {
"available": 10100.00,
"unavailable": 0.00
},
"cash_balance": {
"available": 462.00,
"unavailable": 57.00
},
"transaction_limits": {
"max_balance": 200000.0000,
"topup_credit_limit": 188900.0000,
"topup_cash_limit": 188900.0000,
"withdrawal_limit": 200000.0000,
"payment_limit": 200000.0000,
"wallet_to_wallet_limit": 199972.0000
},
"kyc_level_status": null,
"currency_code": "TRY",
"user_kyc_info": null,
"is_topup_default": false,
"tax_number": null,
"loyalty_record_required": false
}
}
}