API Response :
Custom Pagination Script:
response_parameters = "['value']"
next_link = api_response.get('@odata.nextLink')
skip_token = next_link.split("$skiptoken=")[-1]
Params:
$skiptoken : {%skip_token%}
Pre Request Script:
skip_token = 0
Explanation:
-
api_response→ refers to the entire JSON response returned by the API.-
value→ contains the actual inventory records. -
@odata.nextLink→ provides the URL for the next request, including the$skiptoken.
-
-
The script extracts the skip token value by splitting the
@odata.nextLinkat"$skiptoken=". -
The param
$skiptokendynamically takes{%skip_token%}. -
The pre-request script initializes
skip_tokento0for the first call.

