---
title: "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}"
tags: ["Credits"]
---

# PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/credits/{creditName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Create a credit.

## Path parameters

- `subscriptionId` string, uuid, required
- `resourceGroupName` string, required
- `creditName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Credit: Credit resource definition
  - `id` string, arm-id: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
  - `name` string: The name of the resource
  - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
  - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
    - `createdBy` string: The identity that created the resource.
    - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
    - `createdAt` string, date-time: The timestamp of resource creation (UTC).
    - `lastModifiedBy` string: The identity that last modified the resource.
    - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
    - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
  - `tags` object: Resource tags.
  - `location` string, required: The geo-location where the resource lives
  - `properties` CreditProperties: Properties of a credit
    - `status` 'Unknown' | 'Pending' | 'Active' | 'Succeeded' | 'Canceled' | 'Failed' | 'Expired' | 'Exhausted' | 'NotStarted': Status of the credit
    - `productCode` string: Product UPN for the credit type
    - `displayName` string: Display name
    - `reason` CreditReason: The reason for the credit. Not required if not applicable.
      - `code` string: The reason code for credit.
      - `description` string: The free string description of the credit.
    - `credit` Commitment: Commitment towards the benefit.
      - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      - `amount` number, double
      - `grain` 'Hourly' | 'FullTerm' | 'Unknown': Grain.
    - `startAt` string, date-time: Start DateTime.
    - `endAt` string, date-time: End DateTime in UTC.
    - `policies` CreditPolicies: Credit breakdown item representing a milestone, line-item, or no-charge service
      - `redemption` 'NotApplicable' | 'AutoRedeem' | 'ManualRedeem': Redemption policy of the Credit
      - `expiration` 'None' | 'SuspendBillingProfile': Expiration policy of the Credit
    - `billingAccountResourceId` string, arm-id: Fully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers.
    - `billingProfileResourceId` string, arm-id: Fully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers.
    - `customerResourceId` string, arm-id: Customer resource id where the benefit is scoped to.
    - `breakdown` CreditBreakdownItem[]: Credit line-items/milestones/no-charge services breakdown
      - `allocation` Commitment: Commitment towards the benefit.
        - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
        - `amount` number, double
        - `grain` 'Hourly' | 'FullTerm' | 'Unknown': Grain.
      - `startAt` string, date-time: Start DateTime.
      - `endAt` string, date-time: End DateTime in UTC.
      - `dimensions` CreditDimension[]: Key-value pairs for additional parameters and metadata
        - `key` string, required: The dimension key (e.g., productFamily, description, creditType)
        - `value` string, required: The dimension value
    - `provisioningState` 'Succeeded' | 'Failed' | 'Canceled' | 'Pending': Provisioning state for billing benefit resources. Includes the standard terminal states (Succeeded, Failed, Canceled) plus benefit-specific transition states.
    - `systemId` string: System identifier
    - `orderId` string: Identifier of the $0 transaction created during credit acquisition.
    - `fundingSystemId` string: Unique identifier (UUID) of the funding lot assigned by the benefit publisher. Used in credit transfer scenarios to trace the originating credit lot.
    - `resourceId` string, arm-id: Fully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}.
    - `invitationId` string: Invitation identifier
    - `consumed` Price
      - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      - `amount` number, double
    - `productDetails` CreditProductDetails: Product details for a credit
      - `skuTitle` string: SKU title of the product
      - `productFamily` string: The product family, for example "Azure" or "M365".
      - `productType` string: The type of the product.
      - `appliedOn` AppliedOn[]: Indicates where the credit benefit is applied (e.g., consume, invoice, or external application).
      - `appliedPrice` string: Specifies which price point is used when applying the credit. Known values include "MarketPrice", "UnitPrice", and "BenefitGroupPrice:<groupId>" where <groupId> identifies the benefit group.
    - `appliedScopeType` 'BillingAccount' | 'BillingProfile' | 'Customer': List of applied scope types supported for benefit resources.
  - `managedBy` string: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
  - `kind` string: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
  - `etag` string: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
  - `identity` ManagedServiceIdentity2: Managed service identity (system assigned and/or user assigned identities)
    - `principalId` string, uuid: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    - `tenantId` string, uuid: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    - `type` 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned', required: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    - `userAssignedIdentities` object: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
  - `sku` Sku: The resource model definition representing SKU
    - `name` string, required: The name of the SKU. E.g. P3. It is typically a letter+number code
    - `tier` 'Free' | 'Basic' | 'Standard' | 'Premium': This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
    - `size` string: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    - `family` string: If the service has different generations of hardware, for the same SKU, then that can be captured here.
    - `capacity` integer: If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
  - `plan` Plan: Plan for the resource.
    - `name` string, required: A user defined name of the 3rd Party Artifact that is being procured.
    - `publisher` string, required: The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
    - `product` string, required: The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
    - `promotionCode` string: A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
    - `version` string: The version of the desired product/artifact.

## Response `200`

The request has succeeded.

- Credit: Credit resource definition
  - `id` string, arm-id: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
  - `name` string: The name of the resource
  - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
  - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
    - `createdBy` string: The identity that created the resource.
    - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
    - `createdAt` string, date-time: The timestamp of resource creation (UTC).
    - `lastModifiedBy` string: The identity that last modified the resource.
    - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
    - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
  - `tags` object: Resource tags.
  - `location` string, required: The geo-location where the resource lives
  - `properties` CreditProperties: Properties of a credit
    - `status` 'Unknown' | 'Pending' | 'Active' | 'Succeeded' | 'Canceled' | 'Failed' | 'Expired' | 'Exhausted' | 'NotStarted': Status of the credit
    - `productCode` string: Product UPN for the credit type
    - `displayName` string: Display name
    - `reason` CreditReason: The reason for the credit. Not required if not applicable.
      - `code` string: The reason code for credit.
      - `description` string: The free string description of the credit.
    - `credit` Commitment: Commitment towards the benefit.
      - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      - `amount` number, double
      - `grain` 'Hourly' | 'FullTerm' | 'Unknown': Grain.
    - `startAt` string, date-time: Start DateTime.
    - `endAt` string, date-time: End DateTime in UTC.
    - `policies` CreditPolicies: Credit breakdown item representing a milestone, line-item, or no-charge service
      - `redemption` 'NotApplicable' | 'AutoRedeem' | 'ManualRedeem': Redemption policy of the Credit
      - `expiration` 'None' | 'SuspendBillingProfile': Expiration policy of the Credit
    - `billingAccountResourceId` string, arm-id: Fully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers.
    - `billingProfileResourceId` string, arm-id: Fully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers.
    - `customerResourceId` string, arm-id: Customer resource id where the benefit is scoped to.
    - `breakdown` CreditBreakdownItem[]: Credit line-items/milestones/no-charge services breakdown
      - `allocation` Commitment: Commitment towards the benefit.
        - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
        - `amount` number, double
        - `grain` 'Hourly' | 'FullTerm' | 'Unknown': Grain.
      - `startAt` string, date-time: Start DateTime.
      - `endAt` string, date-time: End DateTime in UTC.
      - `dimensions` CreditDimension[]: Key-value pairs for additional parameters and metadata
        - `key` string, required: The dimension key (e.g., productFamily, description, creditType)
        - `value` string, required: The dimension value
    - `provisioningState` 'Succeeded' | 'Failed' | 'Canceled' | 'Pending': Provisioning state for billing benefit resources. Includes the standard terminal states (Succeeded, Failed, Canceled) plus benefit-specific transition states.
    - `systemId` string: System identifier
    - `orderId` string: Identifier of the $0 transaction created during credit acquisition.
    - `fundingSystemId` string: Unique identifier (UUID) of the funding lot assigned by the benefit publisher. Used in credit transfer scenarios to trace the originating credit lot.
    - `resourceId` string, arm-id: Fully-qualified resource identifier of the resource. Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/{benefitType}/{benefitName}.
    - `invitationId` string: Invitation identifier
    - `consumed` Price
      - `currencyCode` string: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      - `amount` number, double
    - `productDetails` CreditProductDetails: Product details for a credit
      - `skuTitle` string: SKU title of the product
      - `productFamily` string: The product family, for example "Azure" or "M365".
      - `productType` string: The type of the product.
      - `appliedOn` AppliedOn[]: Indicates where the credit benefit is applied (e.g., consume, invoice, or external application).
      - `appliedPrice` string: Specifies which price point is used when applying the credit. Known values include "MarketPrice", "UnitPrice", and "BenefitGroupPrice:<groupId>" where <groupId> identifies the benefit group.
    - `appliedScopeType` 'BillingAccount' | 'BillingProfile' | 'Customer': List of applied scope types supported for benefit resources.
  - `managedBy` string: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
  - `kind` string: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
  - `etag` string: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
  - `identity` ManagedServiceIdentity2: Managed service identity (system assigned and/or user assigned identities)
    - `principalId` string, uuid: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
    - `tenantId` string, uuid: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
    - `type` 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned', required: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
    - `userAssignedIdentities` object: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
  - `sku` Sku: The resource model definition representing SKU
    - `name` string, required: The name of the SKU. E.g. P3. It is typically a letter+number code
    - `tier` 'Free' | 'Basic' | 'Standard' | 'Premium': This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
    - `size` string: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
    - `family` string: If the service has different generations of hardware, for the same SKU, then that can be captured here.
    - `capacity` integer: If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
  - `plan` Plan: Plan for the resource.
    - `name` string, required: A user defined name of the 3rd Party Artifact that is being procured.
    - `publisher` string, required: The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
    - `product` string, required: The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
    - `promotionCode` string: A publisher provided promotion code as provisioned in Data Market for the said product/artifact.
    - `version` string: The version of the desired product/artifact.

## Other responses

- `201`: The request has succeeded and a new resource has been created as a result.
- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2022-11-01) `524c785862c5`: 3 breaking
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`
- **2026-07-13** (2022-11-01) `47d61aaf3262`: 1 breaking
  - api path removed without deprecation
- **2026-07-13** (2022-11-01) `88f404443c4f`: 1 info
  - endpoint added
- **2022-11-14** (2022-11-01) `2a40ceec2c00`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.BillingBenefits/credits/:creditName/put.md)

---

[API](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits.md) - [All operations](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/billingbenefits-microsoft-billingbenefits/revisions/524c785862c5?raw)
