SlideShare a Scribd company logo
POSTMAN
Postman is an API platform that simplifies the API lifecycle and streamlines collaboration.
Create and send API requests in Postman
You can send requests in Postman to connect to APIs you are working with. Your requests can retrieve,
add, delete, and update data. Whether you are building or testing your own API, or integrating with a
third-party API, you can send your requests in Postman. Your requests can send parameters,
authorization details, and anybody data you require.
When you send a request, Postman displays the response received from the API server in a way that lets
you examine, visualize, and if necessary, troubleshoot it.
1. Click on New and Select Blank Collection
2. Add Request -
3. Request should be in HTTP format-
4. In your API document, check for API link-
5. Copy the API Link and paste in the request URL body-
6. Click on Headers and input the required fields to fetch data-
7. In API document- Key and Value for giving input in Headers should be given- example-
8 Add Content-type/ Authorization/ OCP-Apim-Subscription Key in Headers in postman
which is provided by IT team.
9 Generate Token and add it in Authorization- using Bearer.
Steps to generate token using client id and secret key provided by team. Refer given document-
Example-
Generating Access Token Value: URL : https://login.microsoftonline.com/token Headers : Content-
Type:application/x-www-form-urlencoded
Request: grant_type:client_credentials
client_id:dummy79a24abd-1792-490eca6a6c
client_secret:dummyknM4UrdM+vg6PO8tkKp0c5qIEt8PP6PdYCh/EvgepSw=
resource:https://management.azure.com/
Response: { "token_type": "Bearer", "expires_in": "86399", "ext_expires_in": "86399", "expires_on":
"1561186636", "not_before": "1561099936", "resource": "https://management.azure.com/",
"access_token":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkN0ZlFDOExlLThOc0M3b0MyelFrWnBjcmZPYyIsImtpZC
I6IkN0ZlFDOExlLThOc0M3b0MyelFrWnBjcmZPYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1c
mUuY29tLyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzcxMGRlMWQzLTI5MDEtNDY0Ny04OW
U3LTNiMDFmMWMyODA2ZC8iLCJpYXQiOjE1NjEwOTk5MzYsIm5iZiI6MTU2MTA5OTkzNiwiZXhwIjoxNTYx
MTg2NjM2LCJhaW8iOiI0MlpnWUZCYy9wbHRQZit2U2VHeFBqc2Z6MkVYQmdBPSIsImFwcGlkIjoiNzlhMjR
hYmQtMTc5Mi00OWRmLTg5MDgtZWRmMTBlY2E2YTZjIiwiYXBwaWRhY3IiOiIxIiwiaWRwIjoiaHR0cHM6L
y9zdHMud2luZG93cy5uZXQvNzE}
10 If in Given Response of Token Generation- if you want to check validity of the token- then
click on given link and enter expires on value in it.
Epoch Converter - Unix Timestamp Converter
11 Now add query in Request Body. Also, set method as POST. Click on Send and get
Response.
12 You will now Get Response such as-
{
"status": "SUCCESS",
"message": "OK",
"data": [
{
"txn_master_id": "201252635",
"sourceuid": "FIX001",
"payment_type": "FD",
"pgstatus": "FAILURE",
"txndate": "2023-10-17T12:26:19",
"initiated_date": "2023-10-17T12:25:01",
"loantype": null,
"pg_trans_ref": "113048211514",
"paymentamount": 1.0,
"payment_platform": "FIXERRA",
"paymentchannel": "CCAVENUE",
"card_name": "NA",
"paymentmode": "UPI",
"merchantid": "286311",
"bankreferenceno": "81223011639",
"errdescription": "FAILED-NA-B3"
}
]
}
Now in given response check Error Description. Since I am using Payment Query- So its error
descriptions are universal which can be referred from given document
.
"errdescription": "FAILED-NA-B3"
13 Curl-
Curl in postman is like writing a code in format that postman understands.
Click on highlighted button to open curl. You can enter code here and click send to get response.
14 Encryption and Decryption-
If we want to change response to Encrypted form or decrypt it- we can use given link for same-
AES Encryption and Decryption Online Tool (devglan.com)
Understand more about cipher modes on this- Block Cipher modes of Operation - GeeksforGeeks
2 factor authentication- mini-orange and microsoft API.
15 Selecting request methods-
By default, Postman will select the GET method for new request. GET methods are typically for
retrieving data from an API. You can use a variety of other methods to send data to your APIs, including
the following most common options:
POST - add new data
PUT - replace existing data
PATCH - update some existing data fields
DELETE - delete existing data
POSTMAN and Payment Document -API Testing.docx

More Related Content

PDF
java and javascript api dev guide
PPTX
Claims Based Identity In Share Point 2010
PPTX
HandyMan(SRS Final Presentation)
PPTX
Mulesoft salesforce connector to update Object.
PDF
How to use Informatica Power Center as a RESTful Web Service Client?
PDF
How to use Informatica Power Center as a RESTful Web Service Client?
PDF
https://uii.io/ref/hmaadi
PPT
Integration of payment gateways using Paypal account
java and javascript api dev guide
Claims Based Identity In Share Point 2010
HandyMan(SRS Final Presentation)
Mulesoft salesforce connector to update Object.
How to use Informatica Power Center as a RESTful Web Service Client?
How to use Informatica Power Center as a RESTful Web Service Client?
https://uii.io/ref/hmaadi
Integration of payment gateways using Paypal account

Similar to POSTMAN and Payment Document -API Testing.docx (20)

PDF
API_Testing_with_Postman
PDF
Information for tpp regarding jordan ahli bank psd2 api
PPTX
Routing Jobsite Field Data for Approval and Billing in 4castplus
PPTX
P2P Cycle in Oracle Cloud Fusion
PDF
Business Partner Creation Approval Process - End User guide.pdf
PPT
Postman.ppt
PDF
Mắt kính chính hãng trả góp 0%
PPTX
Oracle Revenue Management Cloud Service (RMCS)
PPTX
JATIN RELAN (11BEC0532) TRAINING PPT
PPTX
Integrating Force.com with Heroku
PPTX
E filing of transfer pricing reports
PDF
Gts cloud mmp http api-sept2017
PDF
Introducing CAS 3.0 Protocol: Security and Performance
PDF
The Definitive Guide to PromptCloud API
PPTX
FYP ppts.pptxafinalyearprojectphaseonetwo
PPTX
Open web payments
DOC
Online Bus Reservation
PPT
R12 MOAC AND PAYABLES
PDF
Check printing in_r12
PPT
ppt_project_group_2.ppt amnd project report
API_Testing_with_Postman
Information for tpp regarding jordan ahli bank psd2 api
Routing Jobsite Field Data for Approval and Billing in 4castplus
P2P Cycle in Oracle Cloud Fusion
Business Partner Creation Approval Process - End User guide.pdf
Postman.ppt
Mắt kính chính hãng trả góp 0%
Oracle Revenue Management Cloud Service (RMCS)
JATIN RELAN (11BEC0532) TRAINING PPT
Integrating Force.com with Heroku
E filing of transfer pricing reports
Gts cloud mmp http api-sept2017
Introducing CAS 3.0 Protocol: Security and Performance
The Definitive Guide to PromptCloud API
FYP ppts.pptxafinalyearprojectphaseonetwo
Open web payments
Online Bus Reservation
R12 MOAC AND PAYABLES
Check printing in_r12
ppt_project_group_2.ppt amnd project report
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Spectroscopy.pptx food analysis technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
Teaching material agriculture food technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
A comparative analysis of optical character recognition models for extracting...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectroscopy.pptx food analysis technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Teaching material agriculture food technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
sap open course for s4hana steps from ECC to s4
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Ad

POSTMAN and Payment Document -API Testing.docx

  • 1. POSTMAN Postman is an API platform that simplifies the API lifecycle and streamlines collaboration. Create and send API requests in Postman You can send requests in Postman to connect to APIs you are working with. Your requests can retrieve, add, delete, and update data. Whether you are building or testing your own API, or integrating with a third-party API, you can send your requests in Postman. Your requests can send parameters, authorization details, and anybody data you require. When you send a request, Postman displays the response received from the API server in a way that lets you examine, visualize, and if necessary, troubleshoot it. 1. Click on New and Select Blank Collection 2. Add Request -
  • 2. 3. Request should be in HTTP format- 4. In your API document, check for API link-
  • 3. 5. Copy the API Link and paste in the request URL body- 6. Click on Headers and input the required fields to fetch data-
  • 4. 7. In API document- Key and Value for giving input in Headers should be given- example- 8 Add Content-type/ Authorization/ OCP-Apim-Subscription Key in Headers in postman which is provided by IT team. 9 Generate Token and add it in Authorization- using Bearer. Steps to generate token using client id and secret key provided by team. Refer given document-
  • 5. Example- Generating Access Token Value: URL : https://login.microsoftonline.com/token Headers : Content- Type:application/x-www-form-urlencoded Request: grant_type:client_credentials client_id:dummy79a24abd-1792-490eca6a6c client_secret:dummyknM4UrdM+vg6PO8tkKp0c5qIEt8PP6PdYCh/EvgepSw= resource:https://management.azure.com/ Response: { "token_type": "Bearer", "expires_in": "86399", "ext_expires_in": "86399", "expires_on": "1561186636", "not_before": "1561099936", "resource": "https://management.azure.com/", "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkN0ZlFDOExlLThOc0M3b0MyelFrWnBjcmZPYyIsImtpZC I6IkN0ZlFDOExlLThOc0M3b0MyelFrWnBjcmZPYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1c mUuY29tLyIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzcxMGRlMWQzLTI5MDEtNDY0Ny04OW U3LTNiMDFmMWMyODA2ZC8iLCJpYXQiOjE1NjEwOTk5MzYsIm5iZiI6MTU2MTA5OTkzNiwiZXhwIjoxNTYx MTg2NjM2LCJhaW8iOiI0MlpnWUZCYy9wbHRQZit2U2VHeFBqc2Z6MkVYQmdBPSIsImFwcGlkIjoiNzlhMjR hYmQtMTc5Mi00OWRmLTg5MDgtZWRmMTBlY2E2YTZjIiwiYXBwaWRhY3IiOiIxIiwiaWRwIjoiaHR0cHM6L y9zdHMud2luZG93cy5uZXQvNzE} 10 If in Given Response of Token Generation- if you want to check validity of the token- then click on given link and enter expires on value in it. Epoch Converter - Unix Timestamp Converter
  • 6. 11 Now add query in Request Body. Also, set method as POST. Click on Send and get Response. 12 You will now Get Response such as- { "status": "SUCCESS", "message": "OK", "data": [ { "txn_master_id": "201252635", "sourceuid": "FIX001", "payment_type": "FD", "pgstatus": "FAILURE", "txndate": "2023-10-17T12:26:19", "initiated_date": "2023-10-17T12:25:01", "loantype": null, "pg_trans_ref": "113048211514", "paymentamount": 1.0, "payment_platform": "FIXERRA", "paymentchannel": "CCAVENUE", "card_name": "NA", "paymentmode": "UPI", "merchantid": "286311", "bankreferenceno": "81223011639", "errdescription": "FAILED-NA-B3"
  • 7. } ] } Now in given response check Error Description. Since I am using Payment Query- So its error descriptions are universal which can be referred from given document . "errdescription": "FAILED-NA-B3" 13 Curl- Curl in postman is like writing a code in format that postman understands. Click on highlighted button to open curl. You can enter code here and click send to get response. 14 Encryption and Decryption- If we want to change response to Encrypted form or decrypt it- we can use given link for same- AES Encryption and Decryption Online Tool (devglan.com)
  • 8. Understand more about cipher modes on this- Block Cipher modes of Operation - GeeksforGeeks 2 factor authentication- mini-orange and microsoft API. 15 Selecting request methods- By default, Postman will select the GET method for new request. GET methods are typically for retrieving data from an API. You can use a variety of other methods to send data to your APIs, including the following most common options: POST - add new data PUT - replace existing data PATCH - update some existing data fields DELETE - delete existing data