[#1307] Booking list

Migrated from Redmine #1307 | Author: soniya james
Status: Feedback | Priority: Immediate, there is BUG! | Created: 2024-11-13


Booking list API is not working

I passed Booking ID and sign For example
{
“jsonrpc”: “2.0”,
“method”: “getBooking”,
“params”: [
{
“id”: “2”, // Replace with the actual booking ID
“sign”: “ddc7b11517e7ee4471c50153715a5c84” // Replace with the actual sign token
}
],
“id”: 1
}

sign = <?php
// Given variables
$bookingId = “2”;
$bookingHash = “764d3f49762b8187579b7a5cac879f38”;
$secretKey = “e72a46290afbf2a595726474e17bd9ad9365dafa675edaca05b18301e3722b03”;

$stringToHash = md5($bookingId . $bookingHash . $secretKey);

echo $stringToHash;
?>

But now also
{
“error”: {
“code”: -32085,
“message”: “Signature error”,
“data”:
},

Dmytro Bondarev wrote:

Hi, please first of all use non named parameters:

"params": [
  "2", // Replace with the actual booking ID
  "ddc7b11517e7ee4471c50153715a5c84" // Replace with the actual sign token
],

soniya james wrote:

Thanks the Above mentioned one is working fine,

So Can you help me for this?
How I can get all booking list and how I can show all booking of particular user.

soniya james wrote:

Adding new client i am giving correct email but getting error
{
“jsonrpc”: “2.0”,
“method”: “addClient”,
“params”: [
“2024-11-12”,
“18:30:00”,
{
“name”: “Frances T. Perez”,
“phone”: “+1502-810-4521”,
“email”: “viji@vr3services.com”,
“address1”: “3872 Earnhardt Drive”,
“address2”: “Louisville, KY 40219”,
“city”: “Louisville”,
“zip”: “3872”
}],
“id”: 1
}

{
“error”: {
“code”: -32062,
“message”: “Client email value is wrong”,
“data”: {
“field”: “email”
}
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Kindly help me for this.

soniya james wrote:

Adding new client i am giving correct email but getting error
{
“jsonrpc”: “2.0”,
“method”: “addClient”,
“params”: [
“2024-11-12”,
“18:30:00”,
{
“name”: “Frances T. Perez”,
“phone”: “+1502-810-4521”,
“email”: “viji@vr3services.com”,
“address1”: “3872 Earnhardt Drive”,
“address2”: “Louisville, KY 40219”,
“city”: “Louisville”,
“zip”: “3872”
}],
“id”: 1
}

{
“error”: {
“code”: -32062,
“message”: “Client email value is wrong”,
“data”: {
“field”: “email”
}
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Kindly help me for this.