Actions36
- Bill Actions
- Business Actions
- Card Actions
- Cashback Actions
- Department Actions
- Entity Actions
- Limit Actions
- Location Actions
- Memo Actions
- Merchant Actions
- Receipt Actions
- Reimbursement Actions
- Transaction Actions
- Transfer Actions
- User Actions
- Vendor Actions
- Webhook Actions
Department → Get Many
AI-generatedSummary
Retrieve multiple departments from the Ramp API, either all or a limited number of results.
Inputs
- Return All — Choose whether to return all departments or limit the number of results.
- Limit — If not returning all, specify the maximum number of departments to return.
Output shape
a list of department records
If 'Return All' is true, all departments are returned via pagination. Otherwise, the number of returned departments is limited by the 'Limit' parameter.
Examples
Example 1: Get up to 50 departments
Set 'Return All' to false and 'Limit' to 50 to retrieve the first 50 departments.
Example 2: Get all departments
Set 'Return All' to true to retrieve all departments available in the Ramp account.
