The relevant endpoint and http method information used to add a Loyalty score is given below.
HTTP Method | URL |
---|---|
POST | /v1/Wallet/IncreaseLoyaltyBalance |
Params | Type | Mandatory |
---|---|---|
wallet_number | string | Yes |
amount | decimal | Yes |
currency_code | string | Yes |
ext_transaction_id | string | Yes |
hash_key | string | No |
account_number | string | No |
tx_group_correlation_id | int | No |
Params | Type |
---|---|
status | int |
code | string |
message | string |
payload | Obje[] |
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 | obje |
avaiable | string |
unavaiable | string |
cash_balance | obje |
avaiable | decimal |
unavaiable | decimal |
transaction_limits | obje |
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 (POST):
{
"wallet_number": "LYT_7160182174011919319",
"amount": 25,
"currency_code": "TRY",
"ext_transaction_id": "51464813",
"hash_key": ""
}
RESPONSE:
{
"status": 0,
"code": "100",
"message": "İşlem başarılı",
"payload": {
"id": "6118170317107163101",
"name": "",
"account_number": "0202",
"account_type": "Bireysel",
"created_date_utc": "2022-06-02T13:43:32.6738595+00:00",
"number": "LYT_7160182174011919319",
"phone_country_code": null,
"phone_number": null,
"email": null,
"total_balance": 1025.00,
"monthly_incoming_total": 0.0,
"monthly_outgoing_total": 0.0,
"access_level_status_id": 1,
"access_level_status": "Aktif",
"payment_balance": {
"available": 1025.00,
"unavailable": 0.00
},
"cash_balance": {
"available": 0.00,
"unavailable": 0.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
}
}
Fail Response:
{
"status": 1,
"code": "999",
"message": "'Ext Transaction Id' must not be empty.",
"errors": [
"'Ext Transaction Id' must not be empty."
]
}