Alt Üye İşyeri Düzenleme
Açıklama: Bu servis, mevcut kayıtlı bir alt üye işyerini düzenler. Bu istekte alt üye işyerinin "sub_merchant_id" bilgisi gereklidir. Ayrıca, Üye işyerinin talebi gönderebilmesi için Vepara tarafından yetkilendirilmesi gerekir.
Terminal numarasıyla ilgili düzenleme yapılması durumunda yeni oluşturulan terminal numarasının sistemde kayıtlı olmayan benzersiz bir numara olmalıdır. Aynı terminal numarası bulunursa, istek hata verir.
URL: /api/sub-merchant/edit
Test Sunucusu: https://test.vepara.com.tr/ccpayment/api/sub-merchant/edit
Canlı Sunucusu: https://app.vepara.com.tr/ccpayment/api/sub-merchant/edit
Method: POST
REQUEST BODY SCHEMA
json
[
{
"merchant_key": "$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he", //required
"sub_merchant_id": "9895-12-345323423", //required
"change_data": { //required
"sub_merchant_name": "Test Merchant 2",
"sub_merchant_description": "Sub Merchant Description",
"full_company_name": "Test Merchant 2 Inc",
"authorized_person_name": "Jhon Doe 2",
"authorized_person_email": "[email protected]",
"authorized_person_phone": 902134567890,
"contact_person_phone": 903434567890,
"business_area": "Logistics",
"zip_code": 34005,
"iban_no": "TR330006100519786457841326",
"is_enable_auto_widrawal": 0,
"auto_approval_days": 10,
"automatic_withdrawal_configruation": {
"currency_code": "TRY",
"auto_withdrawal_settlement_id": 1,
"auto_withdrawal_remain_amount": 50.5
}
}
}
]
RESPONSE BODY
200 Başarılı Sonuç
json
{
"status_code": 100,
"status_description": "Successful",
"data": {
"sub_merchant_id": "98950-66-7111111193",
"terminal_no": "134454CDXS",
"phone_number": 905334567890,
"email": "[email protected]",
"merchant_name": "Test Merchant 2",
"full_company_name": "Test Merchant 2 Inc",
"authorized_person_name": "Jhon Doe 2",
"merchant_description": "Sub Merchant Description",
"authorized_person_phone_number": 902134567890,
"contact_person_phone": 903434567890,
"authorized_person_email": "[email protected]",
"merchant_type": 3,
"business_area": "Logistics",
"zip_code": 34090,
"iban_no": "TR33000610051978645784132",
"settlement_id": 1,
"auto_approval_days": 10,
"sub_merchant_automatic_withdrawal_settings": [
{
"settlement_id": 1,
"remain_amount": 10,
"last_processed_at": null,
"currency_code": "TRY"
},
{
"settlement_id": 13,
"remain_amount": 20,
"last_processed_at": null,
"currency_code": "USD"
}
],
"identity_number": 12345678481
}
}
400 Başarısız Sonuç
json
{
"status_code": "1001,",
"status_description": "Validation Error",
"data": {
"merchant_key": [
"The merchant key field is required"
],
"sub_merchant_id": [
"The sub merchant id field is required"
],
"change_data": [
"The change data field is required"
]
}
}