# GET request: (int) parameter always sent as zero

**URL:** <https://community.postman.com/t/get-request-int-parameter-always-sent-as-zero/11710>\
**Category:** Help Hub\
**Tags:** get, parameters\
**Created:** [April 3, 2020, 10:51pm UTC](https://community.postman.com/t/get-request-int-parameter-always-sent-as-zero/11710 "2020-04-03T22:51:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jediez](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@jediez](https://community.postman.com/u/jediez)\
**Post date:** [April 3, 2020, 10:51pm UTC](https://community.postman.com/t/get-request-int-parameter-always-sent-as-zero/11710/1 "2020-04-03T22:51:16Z")

</div>

Hi guys!

I’m just a postman starter and I’m trying to test an API I’m currently working on.

While performing a simple GET request to the server, it goes along with an id parameter. No matter the value I set in postman I keep getting zero on the server side. Here’s the request I’m sending [https://localhost:5001/Customer/Get?id=3](https://localhost:5001/Customer/Get?id=3) . Also tested this on other web methods and I get exactly the same behaviour.

I’m using Postman version 7.2.1.0

Any help would be greatly appreciated. Thank you so much.

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [April 4, 2020, 9:41am UTC](https://community.postman.com/t/get-request-int-parameter-always-sent-as-zero/11710/2 "2020-04-04T09:41:44Z")

</div>

Hey @jediez, you probably are aware of this but just to help you cross-check it - is `id` a path variable or a query param?

A path variable is represented like this:

```auto
localhost:5001/customer/get/:id

```

So using the path variable you would call it like:

```auto
localhost:5001/customer/get/3

```

If it’s a query param, then it would be like how you’ve written:

```auto
localhost:5001/customer/get?id=3

```

A suggestion would be to check the [outgoing request by opening Postman Console](https://learning.postman.com/docs/postman/sending-api-requests/debugging-and-logs/) and debugging the request to see what’s the entire request body and is it in alignment with what your server expects.
