# View Service Provider
source: https://developer.mastercard.com/carbon-calculator/documentation/testing/testcase/test_case_view_service_provider/index.md

Allows a registered Service Provider to fetch its information from the server.

## Pre-requisites {#pre-requisites}

Refer to the [View Service Provider Details](https://developer.mastercard.com/carbon-calculator/documentation/use-cases/service_provider_details/index.md) use case.


API Reference: `GET /service-providers`

<br />

## Test Cases {#test-cases}

### Test Case: Success-View Service Provider {#test-case-success-view-service-provider}

##### Response {#response}

```json
{
  "clientId": "fjl2fxzsYl1OpvxkBItC9nVw1PSQc_b-eQMcmQFg011ab4b5",
  "customerId": "customer1",
  "customerName": "ABC Bank",
  "supportedAccountRange": "534403, 518145, 518152, 5403, 5424",
  "status": "ACTIVE",
  "cardHolderBase": "54123"
}
```

### Test Case: Fail-Service Provider Not Found {#test-case-fail-service-provider-not-found}

##### Response {#response-1}

```json
{
  "Errors": {
    "Error": [
      {
        "Source": "Service-Provider",
        "ReasonCode": "ACCOUNT_NOT_FOUND",
        "Description": "We cannot find the account which you are using to access this service. Kindly register your account or contact your Mastercard associate if you have already registered with us earlier.",
        "Recoverable": false,
        "Details": ""
      }
    ]
  }
}
```

