---
title: "GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility"
method: GET
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility"
tags: ["BillingProfiles"]
---

# GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility

`GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility`

Validates if the default payment method can be detached from the billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

## Path parameters

- `billingAccountName` string, required
- `billingProfileName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The request has succeeded.

- DetachPaymentMethodEligibilityResult — Result of the detach payment method eligibility validation.
  - `isEligible` boolean — Specifies whether the payment method is eligible to be detached from the billing profile.
  - `errorDetails` DetachPaymentMethodErrorDetails[] — The list of detach payment method eligibility errors.
    - `code` 'AzureSubscriptions' | 'RecurringCharges' | 'ReservedInstances' | 'OutstandingCharges' | 'PendingCharges' — Error code of the detach payment method eligibility validation response.
    - `message` string — Error message for the detach payment method eligibility validation.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/billingmanagementclient.md) · [All operations](https://skmtc.net/azure/apis/billingmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/billingmanagementclient/revisions/481e7355ac16/schema)
