The endpoint and http method information used to include the user in the loyalty program is given below.
After the transaction, a loyalty wallet is defined for the relevant account. (Example value LYT_8891234960300101234)
HTTP Method | URL |
---|---|
POST | /v1/Wallet/AddLoyaltyProgram |
Params | Type | Mandatory |
---|---|---|
account_number | string | Yes |
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 | bool |
REQUEST(POST)
{
"account_number": "KRC010203"
}
RESPONSE:
{
"status": 0,
"code": "100",
"message": "İşlem başarılı",
"payload": {
"id": "6111110311107113101",
"name": "",
"account_number": "0202",
"account_type": "Bireysel",
"created_date_utc": "0001-01-01T00:00:00+00:00",
"number": "LYT_7660112414021911119",
"phone_country_code": null,
"phone_number": null,
"email": null,
"total_balance": 0.0,
"monthly_incoming_total": 0.0,
"monthly_outgoing_total": 0.0,
"access_level_status_id": 1,
"access_level_status": "Aktif",
"payment_balance": {
"available": 0.0,
"unavailable": 0.0
},
"cash_balance": {
"available": 0.0,
"unavailable": 0.0
},
"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
}
}