Listeleme


Listeleme ile üye iş yeri için kayıtlı tüm alt üye işyeri PF kayıtlarını getirecektir. Üye iş yerinin listeleme talebini başlatmak için yetkilendirilmiş olması gerekir.


Referans


Method URL Content-Type
POST Test: https://provisioning.iqmoneytr.com/ccpayment/api/listSubMerchantPF application/json
POST Production: https://app.iqmoneytr.com/ccpayment/api/listSubMerchantPF application/json

Parametreler

Parametre Değer Şart
Header/Authorization Bearer/string Zorunlu
hash_key string Zorunlu

Authorization

Authorization , bağlantı girişine izin verildiğini doğrulayan bir başlık anahtarıdır. Yöntem " Bearer " olmalıdır.

hash_key


    function generateSubMerchantPFHashKey($merchant_key, $pf_id, $app_secret) {
    $data = $merchant_key.'|'.$pf_id;
    $iv = substr(sha1(mt_rand()), 0, 16);
    $password = sha1($app_secret);
    $salt = substr(sha1(mt_rand()), 0, 4);
    $saltWithPassword = hash('sha256', $password . $salt);
    $encrypted = openssl_encrypt(
        "$data", 'aes-256-cbc', "$saltWithPassword", null, $iv
    );
    $msg_encrypted_bundle = "$iv:$salt:$encrypted";
    $hash_key = str_replace('/', '__', $msg_encrypted_bundle);

    return $hash_key;
  }

İstek


  {
    "merchant_key" : "$2y$10$FRKuzQFSml7AxwBpd57Wzu3zVocr7r15vVWIFPpc.JvHhRmmPdnoG",
    
  }
						 

Başarısız Yanıt


  {
    "status_code": 14,
    "status_description": "Invalid merchant credentials"
}

						 

Başarılı Yanıt


  {
    "status_code": 100,
    "status_description": "All Pf records for this merchant fetched successfully.",
    "data": [
        {
            "id": 20,
            "merchant_id": 9950,
            "pf_id": "10295",
            "name": "Mr/s. Merchant",
            "vkn": "0315453065",
            "tckn": "23840256753",
            "post_code": "34752",
            "city": "Istanbul",
            "country": "TR",
            "iso_country_code": "792",
            "url" : "https://stark.Industries.com",
            "status": 1,
            "source": 3,
            "created_at": "2021-09-23T12:51:21.000000Z",
            "updated_at": "2021-09-23T12:51:21.000000Z"
        }
    ]
}