---
title: "Get rates discrepancy"
method: GET
path: "/invoices/{invoiceId}/discrepancyExtended"
tags: ["Invoices"]
---

# Get rates discrepancy

`GET /invoices/{invoiceId}/discrepancyExtended`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/invoices/{invoiceId}/discrepancyExtended`
- 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/invoices/:invoiceId/discrepancyExtended/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves Invoice rates discrepancy information. Returns the labor list with rates discrepancy for the specified invoice.

## Path parameters

- `invoiceId` integer, required

## Response `200`

Indicates that the request succeeded and that the requested information is in the response.

- ServiceChannelServicesMessagingInvoicesInvoiceDiscrepancy
  - `LaborRateDiscrepancies` ServiceChannelServicesMessagingInvoicesRateDiscrepancy[]
    - `SkillLevel` integer: Get or set skill level (1 - Supervisor, 2 - Technician, 3 - Helper).
    - `SkillLevelName` string: Get or set skill level name
    - `LaborType` integer: Get or set type of the labor (1 - Regular, 2 - Overtime, 3 - Double Time).
    - `LaborTypeName` string: Get or set labor type name.
    - `HourlyRate` number, double: Get or set hourly rate.
    - `AgreedRate` number, double: Get or set agreed hourly rate.
    - `NumOfTech` string, byte: Get or set number of techs.
    - `LaborHours` number, double: Get or set spent hours.
    - `RateDiscrepancyReason` string: Get or set rate discrepancy reason.
  - `MaterialMarkupDiscrepancies` ServiceChannelServicesMessagingInvoicesMaterialMarkupDiscrepancy[]
    - `LineItemId` integer
    - `AppliedMarkupPercent` number, double
    - `AgreedMarkupPercent` number, double
    - `DiscrepancyReason` string
  - `OtherPriceDiscrepancies` ServiceChannelServicesMessagingInvoicesOtherPriceDiscrepancy[]: Get or set OtherPriceDiscrepancies
    - `LineItemId` integer: Get or set LineItemId
    - `AppliedUnitPrice` number, double: Get or set AppliedUnitPrice
    - `AgreedUnitPrice` number, double: Get or set AgreedUnitPrice
    - `DiscrepancyReason` string: Get or set DiscrepancyReason

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters.
- `401`: Indicates that the requested resource requires authentication. <br/>Error codes: <br/> 504 - API call rejected by security permissions;
- `404`: Indicates that the requested resource does not exist on the server.

---

[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)
