Delete Provider
Deletes a provider record. Providers can only be deleted if they have no associated enrollments. This operation is idempotent.
DELETE
/providers/{providerId}This is a beta endpoint. We may make backwards incompatible changes.
This endpoint allows you to delete providers without associated transaction enrollments. If you need to delete a provider that has associated enrollments, contact support.
A Stedi API Key for authentication.
Path Parameters
providerIdstring
The Stedi-assigned identifier for the provider you want to delete.
DeleteProvider 200 response
curl --request DELETE \  --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 mainimport (  "fmt"  "net/http"  "io/ioutil")func main() {  url := "https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}"  req, _ := http.NewRequest("DELETE", 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 requestsurl = "https://enrollments.us.stedi.com/2024-09-01/providers/{providerId}"response = requests.request("DELETE", 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>")  .DELETE()  .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();}Empty
{
  "message": "string",
  "fieldList": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}{
  "message": "string",
  "code": "string"
}{
  "message": "string",
  "code": "string"
}{
  "message": "string",
  "code": "string"
}{
  "message": "string",
  "code": "string"
}