Ana içeriğe geç

BIN Sorgulama

Müşterilerin kart numarasının ilk 6 veya 8 hanesinden oluşan BIN bilgisini ya da kart token bilgisinin gönderilerek kart bilgilerini sorgulamak amacıyla kullanılan servistir

POSThttps://testpfapi.rubikpara.com/v1/Payments/bin-information

Request

Headers

ClientIpAddress array[string]
ConversationId string
MerchantNumber string
Nonce string
PublicKey string
Signature string

Body

{
"cardToken": "string",
"binNumber": "string",
"languageCode": "string"
}

Response

Body

{
"isSucceed": "boolean",
"errorCode": "string or null",
"errorMessage": "string or null",
"conversationId": "string or null",
"binNumber": "string or null",
"cardBrand": "string",
"cardNetwork": "string",
"cardType": "string",
"cardSubType": "string",
"bankCode": "string",
"bankName": "integer<int32>",
"isVirtual": "boolean"
}

Örnek Kodlar

const axios = require('axios').default;
      const options = {
        method: 'POST',
        url: 'https://testpfapi.rubikpara.com/v1/Payments/bin-information',
        headers: {
          PublicKey: 'SkDP+k0jpMPDOzjcQ2dTcg==',
          Nonce: '',
          Signature: '',
          ConversationId: 'test123456',
          ClientIpAddress: '192.1.1.1',
          MerchantNumber: '1100000001',
          'Content-Type': 'application/json',
          Accept: 'application/json'
        },
        data: {cardToken: 'string', binNumber: '411979', languageCode: 'TR'}
      };
      try {
        const { data } = await axios.request(options);
        console.log(data);
      } catch (error) {
        console.error(error);
      }