[#1328] additional parameter

Migrated from Redmine #1328 | Author: soniya james
Status: Rejected | Priority: High, I’m very impatient | Created: 2024-12-03


After adding additional parameter in request getting error

Hello sir,
Can You give a example for request

I am passing Like this

{
“jsonrpc”: “2.0”,
“method”: “book”,
“params”: {
“eventId”: 6,
“unitId”: 2,
“date”: “2024-12-04”,
“time”: “14:00:00”,
“clientData”: {
“client_login”: “FrancesTPerez@gmail.com”,
“client_password”: “ValidPassword123”
},
“additional”: [ {
“field”: “230b45ba58e5b4fc1a457e23a72531e2”,
“value”: “ARRIVAL”
}, {
“field”: “a6fc177a33ba3a21676aa9979fd2e786”,
“value”: “

When planning service ensure timing accordingly. Departure service will start 3 hr before flight departure & Arrival service will start from the time flight has arrived.


}
],
“count”: 1,
“batchId”: null,
“recurringData”: {
“recurrenceType”: “weekly”,
“duration”: 10
}
},
“id”: 1
}

Getting error

{
“error”: {
“code”: -32070,
“message”: “Service Required - ‘’ was not found in the haystack,Value is required and can’t be empty”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}

soniya james wrote:

https://user-api.simplybook.me/

X-Company-Login:airportvipservice
X-Token:56523038125321f1c330231deecd9ca488dc866bcdaf93da78a382895e2062cf

{
“jsonrpc”: “2.0”,
“method”: “book”,
“params”: {
“eventId”: 6,
“unitId”: 2,
“date”: “2024-12-04”,
“time”: “14:00:00”,
“clientData”: {
“client_login”: “FrancesTPerez@gmail.com”,
“client_password”: “ValidPassword123”
},
“additional”: [
{
“name”: “f0ea4b6d8ca105fb343a8f746ceb4550”,
“value”: “test”,
“type”: “text”
}
],
“count”: 1,
“batchId”: null,
“recurringData”: {
“recurrenceType”: “weekly”,
“duration”: 10
}
},
“id”: 1
}

{
“error”: {
“code”: -32070,
“message”: “VIP Passenger Name (Primary ) - Value is required and can’t be empty”,
“data”:
},
“id”: “1”,
“jsonrpc”: “2.0”
}

Dmytro Bondarev wrote:

Once again,
please do not make double tickets, it will not speed up the process.