Ana içeriğe geç

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

Body

{
"cardToken": "string",
"languageCode": "TR",
"currency" : "TRY"
}

Response

Body

{
"isSucceed": true,
"errorCode": null,
"errorMessage": null,
"availablePoint": 1013308.48
}

Örnek Kodlar

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);
});