Retrieve Provider
Retrieves a provider record by its ID. This operation returns the complete provider details including contact information.
/providers/{providerId}
This endpoint allows you to retrieve details for the specified provider.
A Stedi API Key for authentication.
Path Parameters
The unique ID Stedi assigned to the provider when it was created in the system.
Response
GetProvider 200 response
A unique identifier Stedi assigns to this provider.
The date and time Stedi created the provider record.
- Format:
date-time
The date and time Stedi last updated the provider record.
- Format:
date-time
The provider's National Provider Identifier (NPI). This is a 10-digit number that is unique to the provider. Note that each provider record must have a unique NPI within Stedi - you cannot create a provider with an NPI that is already in use.
- Pattern:
^[0-9]{10}$
The type of tax ID. Can be either an EIN
- Employer Identification Number, or an SSN
- Social Security Number.
EIN
SSN
The provider's tax ID, as specified by taxIdType
. This identifier has to be provided without any separators, such as dashes or spaces. For example 111-22-3333 is invalid but 111223333
is valid.
- Pattern:
^\d{9}$
The provider's business name. This is typically the provider's practice name, such as Dental Associates, LLC
, but it can also be the provider's first and last name.
- Minimum length:
5
Either organizationName
or firstName
and lastName
are required.
curl --request GET \
--url "https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}" \
--header "Authorization: <api_key>"
fetch("https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}", {
headers: {
"Authorization": "<api_key>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api_key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}"
response = requests.request("GET", url, headers = {
"Authorization": "<api_key>"
})
print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create("https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}"))
.header("Authorization", "<api_key>")
.GET()
.build();
try {
HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Response body: " + response.body());
} catch (Exception e) {
e.printStackTrace();
}
{
"message": "string",
"fieldList": [
{
"path": "string",
"message": "string"
}
]
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}
{
"message": "string",
"code": "string"
}