How can i store two ids from response to environment variable and validate that in test script

@dannydainton My Question is

I have Cricket Match Scoring API where I have 1 Striker and 1 Non-Striker IDs which changes when the number is odd So I want to validate that in the test case and also want to write the test case for the details under that striker or non-striker.

For ex. on 1 run, the striker and non-striker will change so now I want to write a test case for the 1 run added to the striker account. which will be non-striker because 1 is an odd number.

Perhaps include some screenshots and example request\responses.

Also what you have tried so far.

I would recommend going through the Postman training if you haven’t done so yet.

Postman Galaxy Training | Postman API Network

Run through the “APIs 101 Training”, then the “Testing and Automation Training” course.

Then if you are still unsure, please post what you have tried, and we may be able to guide you.