Ana içeriğe geç

Taksit Sorgulama

Üye işyeri taksit tutarı döner

GEThttps://testpfapi.rubikpara.com/v1/Installment

Request

Headers

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

Query Parameters

{
"amount": "number<double>",
"binNumber": "string",
}

Response

Body

{
"merchantNumber": "string",
"loyaltyInstallmentPricing": [
{
"cardNetwork": "Unknown",
"installmentPricings": [
{
"profileCardType": "Credit",
"installmentNumber": 0,
"installmentNumberEnd": 0,
"commissionRate": 20,
"amount": 20,
"commissionAmount": 20,
"totalAmount": 20,
"blockedDayNumber": 0,
"isActive": true
}
]
}
],
"isSucceed": true
}

Örnek Kodlar

const axios = require('axios');
const qs = require('qs');

let params = {
  amount: 5, 
  binNumber: 411979
};

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://testpfapi.rubikpara.com/v1/Installment',
  headers: { 
    'merchantNumber': '1100000001', 
    'publicKey': 'SkDP+k0jpMPDOzjcQ2dTcg==', 
    'nonce': '', 
    'signature': '', 
    'conversationId': 'test123456', 
    'clientIpAddress': ['192.1.1.1']
  },
  params
};
axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});