List opportunities
Changed onRetrieve a list of opportunities. Returned opportunities are limited to role visibility: Marketplace Manager, Partner, Partner Read: all opportunities. Reseller Manager: all opportunities owned by Reseller companies. Reseller, SSR: all opportunities owned by the company to which the Reseller or SSR belongs. When users have multiple roles, visibility is the sum of visibility for all their roles. Additional filter parameters are available for some roles.
Required: Accept-Language header with Locale format. For example: en-US
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Sales agent's user ID
Sales agent's company ID, which defines which company owns opportunities. This is an optional filter to only return opportunities that the sale's agent's company owns. Only valid for Marketplace Manager, Reseller Manager, Partner, and Partner Read roles (invalid for Reseller and SSR roles because they can only see opportunities owned by their company). No opportunities are returned when the call is filtered by a company ID for which the user does not have access.
Customer's user ID
Customer's company ID
Optional. For Marketplace Manager, Partner, and Partner Read roles, filter the returned opportunities by those owned by SSRs or Resellers.
Opportunity status
Opportunity purchase effective date filter, defined by upper or lower inclusive or exclusive limits, in Unix timestamp format. Acceptable values are: gte([timestamp]) - 'greater than or equal to'; or lte([timestamp]) - 'less than or equal to'
Opportunity creation date filter, defined by upper or lower inclusive or exclusive limits, in Unix timestamp format. Acceptable values are: gte([timestamp]) - 'greater than or equal to'; or lte([timestamp]) - 'less than or equal to'
General text search filter used for any ID (opportunity, sales agent, sales agent company, customer, or customer company) and opportunity name
Page number
Number of results per page
Sort field and order. For ascending sort order, use the '+[FieldName]' format. For descending order, use the '-[FieldName]' format.
Response
Success
Example response
{
"page": {
"number": 12345,
"size": 12345,
"totalElements": 12345,
"totalPages": 12345
},
"content": [
{
"id": "ef6c414f-39da-401f-a4b8-81adc6190fda",
"name": "Jarvis Iniative",
"ownerUser": {
"id": "d781ac09-b4fe-4d57-8ba2-4640fc5b7c49",
"email": "john.doe@acme.com",
"firstName": "John",
"lastName": "Doe",
"company": {
"id": "1",
"name": "Acme Corp.",
"isReseller": true
}
},
"customerUser": {
"id": "498c62ea-ad14-48e6-96ce-5400c617444c",
"email": "ubrownfield@stark.com",
"firstName": "Ulysses",
"lastName": "Brownfield",
"company": {
"id": "100",
"name": "Customer Company",
"isReseller": false
}
},
"createdOn": 1557861989000,
"purchaseEffectiveDate": 1577750400000,
"status": "CLOSED",
"ownerType": "PLATFORM_OWNER"
}
]
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
added the new optional
queryrequest parameterstatus - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking