Migrated from Redmine #1323 | Author: soniya james
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-12-03
Hello team,
Intake form how I can pass value through API
Migrated from Redmine #1323 | Author: soniya james
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-12-03
Hello team,
Intake form how I can pass value through API
Dmytro Bondarev wrote:
Hi, if you use REST API, please have a look:
"additional_fields": [
{
"field": "e5a1d0e5312b9515874406a89c986765",
"value": "test"
},
{
"field": "3adae019f9183fcfb7b02fcef54b094d",
"value": "Option 1"
},
...
If you use JSON RPC API:
You should pass data to $additional parameter.
soniya james wrote:
“additional_fields”: [
{
“field”: “e5a1d0e5312b9515874406a89c986765”,
“value”: “test”
},
{
“field”: “3adae019f9183fcfb7b02fcef54b094d”,
“value”: “Option 1”
},
In this “field”: “e5a1d0e5312b9515874406a89c986765”,
can i pass field name?
other form were will get this id
Dmytro Bondarev wrote:
When you get fields:
There will be property:
name string Unique field name
You should pass this one.
soniya james wrote:
Why getting this 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”
}
Dmytro Bondarev wrote:
You have required intake form, that was not provided in request.
soniya james wrote:
{
“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.
”like this i am passing this is correct?
soniya james wrote:
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.
”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”
}
Dmytro Bondarev wrote:
Hi,
as we already told you you should not use named parameters.
For JSON RPC API you should pass intakle forms as map:
“230b45ba58e5b4fc1a457e23a72531e2”: “ARRIVAL”,
“a6fc177a33ba3a21676aa9979fd2e786”: “
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.
”