Puan Sorgulama
Üye işyeri puan tutarı döner
POSThttps://testpfapi.rubikpara.com/v1/Payments/pointInquiry
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
Body
{
"cardToken": "string",
"languageCode": "TR",
"currency" : "TRY"
}
Response
Body
{
"isSucceed": true,
"errorCode": null,
"errorMessage": null,
"availablePoint": 1013308.48
}
Örnek Kodlar
- Axios
- Java
- PHP
- C#
- Go
- Python
- cURL
const axios = require('axios'); let data = JSON.stringify({ "cardToken": "", "languageCode": "TR", "currency": "TRY" }); let config = { method: 'post', maxBodyLength: Infinity, url: 'https://testpfapi.rubikpara.com/v1/Payments/pointInquiry', headers: { 'publicKey': 'SkDP+k0jpMPDOzjcQ2dTcg==', 'nonce': '', 'signature': '', 'conversationId': 'test123456', 'clientIpAddress': '192.1.1.1', 'merchantNumber': '1100000001', 'Content-Type': 'application/json' }, data : data }; 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("application/json");
RequestBody body = RequestBody.create(mediaType, "{
"cardToken": "",
"languageCode": "TR",
"currency" : "TRY"
}");
Request request = new Request.Builder()
.url("https://testpfapi.rubikpara.com/v1/Payments/pointInquiry")
.method("POST", body)
.addHeader("publicKey", "SkDP+k0jpMPDOzjcQ2dTcg==")
.addHeader("nonce", "")
.addHeader("signature", "")
.addHeader("conversationId", "test123456")
.addHeader("clientIpAddress", "192.1.1.1")
.addHeader("merchantNumber", "1100000001")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://testpfapi.rubikpara.com/v1/Payments/pointInquiry',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"cardToken": "",
"languageCode": "TR",
"currency" : "TRY"
}',
CURLOPT_HTTPHEADER => array(
'publicKey: SkDP+k0jpMPDOzjcQ2dTcg==',
'nonce: ',
'signature: ',
'conversationId: test123456',
'clientIpAddress: 192.1.1.1',
'merchantNumber: 1100000001',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://testpfapi.rubikpara.com/v1/Payments/pointInquiry");
request.Headers.Add("publicKey", "SkDP+k0jpMPDOzjcQ2dTcg==");
request.Headers.Add("nonce", "");
request.Headers.Add("signature", "");
request.Headers.Add("conversationId", "test123456");
request.Headers.Add("clientIpAddress", "192.1.1.1");
request.Headers.Add("merchantNumber", "1100000001");
var content = new StringContent("{
"cardToken": "",
"languageCode": "TR",
"currency" : "TRY"
}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://testpfapi.rubikpara.com/v1/Payments/pointInquiry"
method := "POST"
payload := strings.NewReader("{
"cardToken": "",
"languageCode": "TR",
"currency": "TRY"}")
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
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("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
import http.client
import json
conn = http.client.HTTPSConnection("https://testpfapi.rubikpara.com")
payload = json.dumps({
"cardToken": "",
"languageCode": "TR",
"currency": "TRY"
})
headers = {
'publicKey': 'SkDP+k0jpMPDOzjcQ2dTcg==',
'nonce': '',
'signature': '',
'conversationId': 'test123456',
'clientIpAddress': '192.1.1.1',
'merchantNumber': '1100000001',
'Content-Type': 'application/json'
}
conn.request("POST", "/v1/Payments/pointInquiry", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location 'https://testpfapi.rubikpara.com/v1/Payments/pointInquiry' --header 'publicKey: SkDP+k0jpMPDOzjcQ2dTcg==' --header 'nonce: ' --header 'signature: ' --header 'conversationId: test123456' --header 'clientIpAddress: 192.1.1.1' --header 'merchantNumber: 1100000001' --header 'Content-Type: application/json' --data '{
"cardToken": "",
"languageCode": "TR",
"currency" : "TRY"
}'