Difference In Payload For Same API Endpoint

Hello,
We are trying to consume List All Ticket Fields API in Freshservice for an integration where we have noticed the API response difference in two places for the same API endpoint.

  1. Below is the List all ticket fields API response in Postman for a nested field.

As per the screenshot, the choices array of a nested field has “id” property as a number data type

  1. Below is the same list all ticket fields API response logged in the browser. We have used Axios package to consume the API (Axios version - 1.6.2)

    As per the above screenshot, the choices array of the same nested field has “id” property as object.

Is this the expected behaviour? If yes, why the Freshservice documentation sample response and postman response has ID property as number field. And concern here is will it change back to number from object after sometime. This will affect the integration because after the development, if the type of the field value changes it is going to be a re-work. Can you please clarify this?

I have attached a video also to provide more context.

Hey @Thamaraiselvan,

I’ve raised this concern to Freshservice team.

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