# \[#1323\] Intake form how i can pass value through API

**URL:** https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323
**Category:** Bug Reports
**Tags:** migrated, redmine-1323
**Created:** [December 3, 2024, 8:53am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323 "2024-12-03T08:53:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 8:53am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/1 "2024-12-03T08:53:48Z")

</div>

**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

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 8:57am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/2 "2024-12-03T08:57:46Z")

</div>

**Dmytro Bondarev** wrote:

Hi, if you use REST API, please have a look:

> **[POST https://user-api-v2.simplybook.me/admin/bookings Content-Type:... - API...](https://simplybook.me/en/api/developer-api/tab/rest_api#method_POST_/admin/bookings)**
>
> Clear and simple interface. Building your own booking service is easy peasy | See a full list of SimplyBook.me rich API options. We offer up to 200 different API functions.

```
"additional_fields": [
    {
      "field": "e5a1d0e5312b9515874406a89c986765",
      "value": "test"
    },
    {
      "field": "3adae019f9183fcfb7b02fcef54b094d",
      "value": "Option 1"
    },
...
```

If you use JSON RPC API:

> **[book ($eventId, $unitId, $date, $time, $clientData, $additional, $count,... -...](https://simplybook.me/en/api/developer-api/tab/doc_api#bookdefault)**
>
> {@inheritdoc} | See a full list of SimplyBook.me rich API options. We offer up to 200 different API functions.

You should pass data to $additional parameter.

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 9:18am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/3 "2024-12-03T09:18:21Z")

</div>

**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

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 9:21am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/4 "2024-12-03T09:21:20Z")

</div>

**Dmytro Bondarev** wrote:

When you get fields:

> **[GET... - API documentation | SimplyBook.me Online Scheduling](https://simplybook.me/en/api/developer-api/tab/rest_api#method_GET_/admin/additional-fields)**
>
> Clear and simple interface. Building your own booking service is easy peasy | See a full list of SimplyBook.me rich API options. We offer up to 200 different API functions.

There will be property:

```
name	string	Unique field name
```

You should pass this one.

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 4:27pm UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/5 "2024-12-03T16:27:22Z")

</div>

**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”  
}

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 4:29pm UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/6 "2024-12-03T16:29:03Z")

</div>

**Dmytro Bondarev** wrote:

You have required intake form, that was not provided in request.

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 4:30pm UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/7 "2024-12-03T16:30:59Z")

</div>

**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](mailto: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.&nbsp;

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

like this i am passing this is correct?

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 3, 2024, 4:39pm UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/8 "2024-12-03T16:39:19Z")

</div>

**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](mailto: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”  
}

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [December 4, 2024, 8:31am UTC](https://tech-support.simplybook.me/t/1323-intake-form-how-i-can-pass-value-through-api/1323/9 "2024-12-04T08:31:32Z")

</div>

**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.

”
