# Integration Fields Custom API Error but no further data available

**URL:** <https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511>\
**Category:** Developing with Prismic\
**Created:** [October 18, 2021, 2:33pm UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511 "2021-10-18T14:33:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![test.johnwalker](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@test.johnwalker](https://community.prismic.io/u/test.johnwalker)\
**Post date:** [October 18, 2021, 2:33pm UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/1 "2021-10-18T14:33:48Z")

</div>

Hi, I am trying to setup Integration Fields, but my custom integration returns an error on sync. Unfortunately there is no data available on what type the error is.  
My custom API returns the following json:

```auto
{
    "results": [
        {
            "id": 1166,
            "title": "Dulcea Infinity Scarf",
            "description": "description",
            "image_url": "https://endpoint.com/media/catalog/product//v/a/va01-rn_main_2.jpg",
            "last_update": "1509364426938",
            "blob": {
                "sku": "VA01",
                "title": "Dulcea Infinity Scarf",
                "description": "description",
                "image_url": "https://endpoint.com/media/catalog/product//v/a/va01-rn_main_2.jpg"
            }
        },
... 49 more
    ],
    "result_size": 1166
}

```

Can somebody from support check what the real error is, it will be great if this error can be printed somewhere in the admin panel.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 18, 2021, 9:02pm UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/2 "2021-10-18T21:02:11Z")

</div>

Hello @test.johnwalker, welcome to the Prismic forum!  
I'll be happy to help you today. Could you please send me the following details so I can run a test on my end?

- URL of your repository
- URL of your Custom API
- A screenshot of the error after trying to sync

Thanks

---

<div class="post-metadata">

**Author:** ![test.johnwalker](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@test.johnwalker](https://community.prismic.io/u/test.johnwalker)\
**Post date:** [October 20, 2021, 1:10pm UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/4 "2021-10-20T13:10:13Z")

</div>

Hi, can somebody please check the content of the error, thank you?

---

<div class="post-metadata">

**Author:** ![antoine.gilbert](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@antoine.gilbert](https://community.prismic.io/u/antoine.gilbert)\
**Post date:** [October 21, 2021, 10:14am UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/5 "2021-10-21T10:14:34Z")

</div>

Hello @test.johnwalker hello @Pau  
I have found errors with John's Integration fields :

```auto
    {
        "id":"Invalid type for id in item 0 in page 1. Found Type: number || Expected type: string",
        "last_update":"Invalid type for last_update in item 0 in page 1. Found Type: string || Expected type: number"
    },

```

This error is the same for all the 50 items in the catalog.  
@test.johnwalker can you make sure that the last\_update field returns a number and not a string, please?

---

<div class="post-metadata">

**Author:** ![test.johnwalker](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@test.johnwalker](https://community.prismic.io/u/test.johnwalker)\
**Post date:** [October 21, 2021, 10:50am UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/6 "2021-10-21T10:50:40Z")

</div>

Thank you @antoine.gilbert your help is really appreciated.  
Please take time and update the documentation at - [Set up Integration Fields - Prismic](https://prismic.io/docs/core-concepts/integration-fields-setup#custom-api-format)  
Correct property name is not "result\_size" but "results\_size".  
Correct value for property "results[index].last\_update" is integer not string

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 22, 2021, 12:32am UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/7 "2021-10-22T00:32:03Z")

</div>

Thank you for the feedback, John. We've updated the Integration field's document.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [October 23, 2021, 12:32am UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/8 "2021-10-23T00:32:58Z")

</div>

closed on October 23, 2021, 12:32am UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:20pm UTC](https://community.prismic.io/t/integration-fields-custom-api-error-but-no-further-data-available/7511/9 "2021-12-09T15:20:55Z")

</div>

Opened on December 9, 2021, 3:20pm UTC


