ordercloud.addresses.listForEntity
Retrieve paginated addresses for a buyer or supplier, with keyword search, field filters, sorting, and optional user filtering for buyer addresses.
Instructions
List addresses for a Buyer or Supplier
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entityType": "<entityType>",
"entityId": "<entityId>"
},
"name": "ordercloud.addresses.listForEntity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| search | No | Keyword search | |
| sortBy | No | Sort field, prefix with ! for descending | |
| userId | No | For buyer addresses, optionally filter by user ID | |
| filters | No | Field-level filters | |
| entityId | Yes | The buyer or supplier ID | |
| pageSize | No | Items per page (max 100) | |
| entityType | Yes | Type of entity to list addresses for |