

# StartProductSubscription
<a name="API_StartProductSubscription"></a>

Starts a product subscription for a user with the specified identity provider.

**Note**  
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as **Pending** billing status) in AWS Billing. For more information, see [Viewing your monthly charges](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/invoice.html) in the * AWS Billing User Guide*.

## Request Syntax
<a name="API_StartProductSubscription_RequestSyntax"></a>

```
POST /user/StartProductSubscription HTTP/1.1
Content-type: application/json

{
   "Domain": "string",
   "IdentityProvider": { ... },
   "Product": "string",
   "Tags": { 
      "string" : "string" 
   },
   "Username": "string"
}
```

## URI Request Parameters
<a name="API_StartProductSubscription_RequestParameters"></a>

The request does not use any URI parameters.

## Request Body
<a name="API_StartProductSubscription_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [Domain](#API_StartProductSubscription_RequestSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-request-Domain"></a>
The domain name of the Active Directory that contains the user for whom to start the product subscription.  
Type: String  
Required: No

 ** [IdentityProvider](#API_StartProductSubscription_RequestSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-request-IdentityProvider"></a>
An object that specifies details for the identity provider.  
Type: [IdentityProvider](API_IdentityProvider.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** [Product](#API_StartProductSubscription_RequestSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-request-Product"></a>
The name of the user-based subscription product.  
Valid values: `VISUAL_STUDIO_ENTERPRISE` \$1 `VISUAL_STUDIO_PROFESSIONAL` \$1 `OFFICE_PROFESSIONAL_PLUS` \$1 `REMOTE_DESKTOP_SERVICES`   
Type: String  
Required: Yes

 ** [Tags](#API_StartProductSubscription_RequestSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-request-Tags"></a>
The tags that apply to the product subscription.  
Type: String to string map  
Map Entries: Minimum number of 0 items. Maximum number of 50 items.  
Required: No

 ** [Username](#API_StartProductSubscription_RequestSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-request-Username"></a>
The user name from the identity provider of the user.  
Type: String  
Required: Yes

## Response Syntax
<a name="API_StartProductSubscription_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "ProductUserSummary": { 
      "Domain": "string",
      "IdentityProvider": { ... },
      "Product": "string",
      "ProductUserArn": "string",
      "Status": "string",
      "StatusMessage": "string",
      "SubscriptionEndDate": "string",
      "SubscriptionStartDate": "string",
      "Username": "string"
   }
}
```

## Response Elements
<a name="API_StartProductSubscription_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [ProductUserSummary](#API_StartProductSubscription_ResponseSyntax) **   <a name="licensemanagerusersubscriptions-StartProductSubscription-response-ProductUserSummary"></a>
Metadata that describes the start product subscription operation.  
Type: [ProductUserSummary](API_ProductUserSummary.md) object

## Errors
<a name="API_StartProductSubscription_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You don't have sufficient access to perform this action.  
HTTP Status Code: 400

 ** ConflictException **   
The request couldn't be completed because it conflicted with the current state of the resource.  
HTTP Status Code: 500

 ** InternalServerException **   
An exception occurred with the service.  
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The resource couldn't be found.  
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The request failed because a service quota is exceeded.  
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied because of request throttling. Retry the request.  
HTTP Status Code: 400

 ** UnprocessableEntityException **   
The request failed as resource was not found in desired state.  
HTTP Status Code: 422

 ** ValidationException **   
A parameter is not valid.  
HTTP Status Code: 400

## See Also
<a name="API_StartProductSubscription_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/license-manager-user-subscriptions-2018-05-10/StartProductSubscription) 