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
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
- JavaScript
- Java
- PHP
- C#
- Go
- Python
- cURL
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); });
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://testpfapi.rubikpara.com/v1/Installment?BinNumber=411979&Amount=5")
.method("GET", body)
.addHeader("MerchantNumber", "1100000001")
.addHeader("BinNumber", "411979")
.addHeader("Amount", "5")
.addHeader("publicKey", "SkDP+k0jpMPDOzjcQ2dTcg==")
.addHeader("nonce", "")
.addHeader("signature", "")
.addHeader("conversationId", "test123456")
.addHeader("clientIpAddress", "192.1.1.1")
.build();
Response response = client.newCall(request).execute();
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://testpfapi.rubikpara.com/v1/Installment?BinNumber=411979&Amount=5",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"ClientIpAddress: 192.1.1.1",
"ConversationId: test123456",
"MerchantNumber: 1100000001",
"Nonce: ",
"PublicKey: SkDP+k0jpMPDOzjcQ2dTcg==",
"Signature: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://testpfapi.rubikpara.com/v1/Installment?BinNumber=411979&Amount=5"),
Headers =
{
{ "PublicKey", "SkDP+k0jpMPDOzjcQ2dTcg==" },
{ "Nonce", "" },
{ "Signature", "" },
{ "ConversationId", "test123456" },
{ "ClientIpAddress", ["192.1.1.1"] },
{ "MerchantNumber", "1100000001" },
{ "Accept", "application/json" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testpfapi.rubikpara.com/v1/Installment?BinNumber=411979&Amount=5"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("PublicKey", "SkDP+k0jpMPDOzjcQ2dTcg==")
req.Header.Add("Nonce", "")
req.Header.Add("Signature", "")
req.Header.Add("ConversationId", "test123456")
req.Header.Add("ClientIpAddress", "192.1.1.1")
req.Header.Add("MerchantNumber", "1100000001")
req.Header.Add("Accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import http.client
conn = http.client.HTTPSConnection("https://testpfapi.rubikpara.com")
headers = {
'PublicKey': "SkDP+k0jpMPDOzjcQ2dTcg==",
'Nonce': "",
'Signature': "",
'ConversationId': "test123456",
'ClientIpAddress': "192.1.1.1",
'MerchantNumber': "1100000001",
'Accept': "application/json"
}
conn.request("GET", "/v1/Installment?BinNumber=411979&Amount=5", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location 'https://testpfapi.rubikpara.com/v1/Installment?BinNumber=1100000549&Amount=5'
--header 'Accept: application/json'
--header 'ClientIpAddress: 192.1.1.1'
--header 'ConversationId: test123456'
--header 'MerchantNumber: 1100000001'
--header 'Nonce: '
--header 'PublicKey: SkDP+k0jpMPDOzjcQ2dTcg=='
--header 'Signature: '