Get SalesPersons¶
GET /rest/v1/salespersons.json
Method: GET
Path: /rest/v1/salespersons.json
Tag: Sales Persons
Operation ID: getSalesPersonUsingGET
Retrieves salesperson records from the destination instance based on the submitted filter. Required Permissions: Read-Only Sales Person, Read-Write Sales Person
Formats¶
- Request:
application/json - Response:
application/json
Request¶
Query parameters¶
| Name | Type | Required | Description | Constraints |
|---|---|---|---|---|
filterType |
string | Yes | The sales person field to filter on. Searchable fields can be retrieved with the Describe Sales Person call. | |
filterValues |
array |
Yes | Comma separated list of search values. | |
fields |
array |
No | Comma-separated list of fields to include in the response | collection format: multi |
batchSize |
integer (int32) | No | The batch size to return. The max and default value is 300. | |
nextPageToken |
string | No | A token will be returned by this endpoint if the result set is greater than the batch size and can be passed in a subsequent call through this parameter. See Paging Tokens for more info. |
Example request¶
GET {{base_url}}/rest/v1/salespersons.json?filterType={{filterType}}&filterValues={{filterValues}}&fields={{fields}}&batchSize={{batchSize}}&nextPageToken={{nextPageToken}}
Accept: application/json
Responses¶
200 — OK¶
Schema: model: ResponseOfSalesPerson
Generated example¶
{
"errors": [
{
"code": "string",
"message": "string"
}
],
"moreResult": false,
"nextPageToken": "example-token",
"requestId": "123",
"result": [
{
"id": 123,
"reasons": [
{
"code": "string",
"message": "string"
}
],
"seq": 123,
"status": "created"
}
],
"success": false,
"warnings": [
{
"code": 123,
"message": "string"
}
]
}
Referenced models¶
Source¶
Generated from swagger-mapi.json.
Generated examples are inferred from the schema. They are illustrative and may not be valid production payloads.