Alt Üye İşyeri Ekleme
Açıklama: Bu servis yeni bir alt üye işyeri ekler. Üye işyerinin Alt üye işyeri oluşturabilmesi için Vepara tarafından yetkilendirilmesi gerekmektedir, Ayrıca her istek benzersiz bir telefon numarası ve e-posta içermelidir. Bu Üye işyerlerinden herhangi biri sisteme zaten kayıtlıysa Alt üye işyeri oluşturulmaz.
URL: /api/sub-merchant/add
Test Sunucusu: https://test.vepara.com.tr/ccpayment/api/sub-merchant/add
Canlı Sunucusu: https://app.vepara.com.tr/ccpayment/api/sub-merchant/add
Method: POST
REQUEST BODY SCHEMA
json
[
{
"merchant_key": "$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he",
"terminal_no": "0567A98",
"sub_merchant_name": "Test Merchant",
"sub_merchant_email": "[email protected]",
"sub_merchant_phone": 901234567890,
"identity_number": 1230005284,
"sub_merchant_description": "Alt Üye işyeri Açıklaması",
"full_company_name": "Test Merchant Inc",
"authorized_person_name": "John Doe",
"authorized_person_email": "[email protected]",
"authorized_person_phone": 902134567890,
"contact_person_phone": 903434567890,
"business_area": "Logistics",
"zip_code": 34005,
"iban_no": "TR33000610051978645784132",
"is_enable_auto_widrawal": 0,
"settlement_id": 1,
"auto_approval_days": 10,
"automatic_withdrawal_configuration": {
"currency_code": "TRY",
"auto_withdrawal_settlement_id": 1,
"auto_withdrawal_remain_amount": 50.5
},
"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": {
"email": "[email protected]",
"phone_number": 901234567890,
"terminal_no": null,
"merchant_name": "Test Merchant",
"full_company_name": "Test Merchant Inc",
"authorized_person_name": "John Doe",
"authorized_person_email": "[email protected]",
"authorized_person_phone_number": 902134567890,
"merchant_description": "Merchant Description",
"contact_person_phone": 903434567890,
"merchant_type": 3,
"business_area": "Logistics",
"zip_code": 34005,
"iban_no": "TR33000610051978645784132",
"settlement_id": 1,
"auto_approval_days": 10,
"sub_merchant_id": "98950-104-7111146768",
"sub_merchant_automatic_withdrawal_settings": [
{
"settlement_id": 1,
"remain_amount": 10,
"currency_code": "TRY"
},
{
"settlement_id": 13,
"remain_amount": 20,
"currency_code": "USD"
}
],
"identity_number": 44546049448
}
}
400 Başarısız Sonuç
json
{
"status_code": "2,",
"status_description": "Email and Phone have to be unique entity."
}