Ramp icon

Ramp

Interact with the Ramp spend management API — built by SolutionLab

Actions36

Location → Get Many

AI-generated

Summary

Retrieve multiple location records from the Ramp API, either returning all results or a limited number as specified.

Inputs

  • Return All — A boolean to specify whether to return all location records or just up to a specified limit.
  • Limit — When 'Return All' is false, specify the maximum number of location records to return.

Output shape

a list of location records represented as JSON objects

If 'Return All' is true, all location records are fetched using automatic pagination. Otherwise, up to 'Limit' records are retrieved. The data is returned as an array of JSON objects corresponding to location entities.

Examples

Example 1: Fetching all locations

Set 'Return All' to true to fetch every location without limiting the number.

Example 2: Fetching a limited number of locations

Set 'Return All' to false and specify the maximum number of locations to retrieve with 'Limit'.

Links

Discussion