---
title: "Retrieve providers feedback rating data."
method: GET
path: "/odata/locations({locationId})/providers/Service.GetLast(days={days})"
tags: ["Providers"]
---

# Retrieve providers feedback rating data.

`GET /odata/locations({locationId})/providers/Service.GetLast(days={days})`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/odata/locations({locationId})/providers/Service.GetLast(days={days})`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/odata/locations(:locationId)/providers/Service.GetLast(days=:days)/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `days` integer, required
- `locationId` integer, required

## Query parameters

- `$expand` string
- `$select` string
- `$filter` string
- `$orderby` string
- `$top` integer
- `$skip` integer
- `$count` boolean

## Response `200`

The request succeeded and providers are returned.

- ServiceChannelServicesMessagingProvidersExtendedReviewedProvider[]
  - `ReviewsInfo` ServiceChannelServicesMessagingFeedbackReviewsInfo: A container to hold common provider reviews information.
    - `AverageRating` number, double: An average rating based on some reviews.
    - `ReviewsNumber` integer: A reviews number.
    - `RecentReviewDate` string, date-time: A recent review date
  - `MyProviderReview` ServiceChannelServicesMessagingFeedbackUserReview: A container to hold user review information.
    - `Id` integer: Review id
    - `StarScore` integer: User's star score
    - `ReviewedDate` string, date-time: Date of last changes of user review in database
    - `Comment` string: Review comment
  - `AnyMyReviews` boolean: Whether the provider has any reviews with current user
  - `Trades` string[]: Trades which the provider serves for the current subscriber.
  - `Phone` string
  - `FullName` string: Full Name
  - `Address1` string: Address1
  - `Address2` string: Adress2
  - `City` string: City
  - `State` string: State
  - `Zip` string: Zip
  - `Country` string: Country
  - `MainContact` string: Main Contact
  - `DateCreated` string, date-time: Date Created
  - `LastUserDate` string: Last User Date
  - `SuperUser` string: SuperUser
  - `WebSite` string: WebSite
  - `Email` string: Email
  - `TaxId` string: Tax Id
  - `Trade` string: Trade
  - `ProcessingEmail` string: Processing Email
  - `FaxNumber` string: Fax Number
  - `SuiteFloor` string: Suite Floor
  - `MailInfo` string: Mail Info
  - `ImageFile` string: Image File
  - `ReturnMail` string: Return Mail
  - `MailFrequency` integer: Mail Frequency
  - `FormId` integer: Form Id
  - `Pager` string: Pager
  - `NightRequest` integer: NightRequest
  - `ShortFormatEmail` string: Short Format Email
  - `LastTrainingDate` string, date-time: Last Training Date
  - `LastTrainingDateStr` string: Last Training Date as a string
  - `IsInternal` boolean: Is Internal
  - `IsOnOffShoreFeatureEnabled` boolean: Is OnOffShoreFeature Enabled
  - `Id` integer: Id
  - `Name` string: Name
  - `DoNotDispatch` boolean: DoNotDispatch enabled?

## Other responses

- `400`: The request parameters are not valid.
- `401`: An unauthorized request.
- `403`: Providers cannot use this method.
- `404`: The location wasn't found.
- `500`: Something went wrong.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
