# Create sample static response

**URL:** <https://community.postman.com/t/create-sample-static-response/53151>\
**Category:** Help Hub\
**Tags:** collections, request\
**Created:** [October 11, 2023, 5:46pm UTC](https://community.postman.com/t/create-sample-static-response/53151 "2023-10-11T17:46:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vm.krishna34](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@vm.krishna34](https://community.postman.com/u/vm.krishna34)\
**Post date:** [October 11, 2023, 5:46pm UTC](https://community.postman.com/t/create-sample-static-response/53151/1 "2023-10-11T17:46:43Z")

</div>

I have sample request for which i need to get static response as below in Json format

Request:

```auto
{
     "username":1234
}

```

Response

```auto
{
    "responseCode": "Success",
    "TransactionID": "122444
}

```

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [October 11, 2023, 6:35pm UTC](https://community.postman.com/t/create-sample-static-response/53151/2 "2023-10-11T18:35:48Z")

</div>

Hey @vm.krishna34 👋

Welcome to the Postman community! :postman:

What have you tried so far? Is there a script that you’ve used that isn’t working?

Have you tried searching the forum for similar questions, extracting values from a response body is a commonly asked question.

What are you intending to do with the data once you get it from the response?

Have you looked through the learning center for script examples?

> **[Test script examples | Postman Learning Center](https://learning.postman.com/docs/writing-scripts/script-references/test-examples/#parsing-response-body-data)**
>
> Test script examples: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 12, 2023, 9:36am UTC](https://community.postman.com/t/create-sample-static-response/53151/3 "2023-10-12T09:36:46Z")

</div>

You can also have a look at Postman Mock’s.

[Configure and use a Postman mock server | Postman Learning Center](https://learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 11, 2023, 9:37am UTC](https://community.postman.com/t/create-sample-static-response/53151/4 "2023-11-11T09:37:38Z")

</div>

Closed on November 11, 2023, 9:37am UTC

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