Use Pagination in SAP Shipment API
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 by splitting
@odata.nextLinkat"$skiptoken=". - The
$skiptokenparameter dynamically uses
{%skip_token%}. - The pre-request script initializes
skip_tokento
0for the first API call.