< Back
Set-PartnerCustomerCart
Post
NAME Set-PartnerCustomerCart
SYNOPSIS
Updates an order for a customer in a cart.
SYNTAX
Set-PartnerCustomerCart -CartId <String> -CustomerId <String> -LineItems <PSCartLineItem[]> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
Updates an order for a customer in a cart.
PARAMETERS
-CartId <String>
The identifier for the cart.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-LineItems <PSCartLineItem[]>
The line items for the cart.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCart
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> # Create the object that will be needed.
PS C:\\> $lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem
PS C:\\>
PS C:\\> # Configure the appropriate properties for the line item.
PS C:\\> $lineItem.BillingCycle = 'OneTime'
PS C:\\> $lineItem.CatalogItemId = 'DG7GMGF0DWTLDG7GMGF0DSJB'
PS C:\\> $lineItem.FriendlyName = 'My Purchase'
PS C:\\> $lineItem.ProvisioningContext = @{duration='1Year'; scope='shared';
subscriptionId='b35d5324-df8e-4306-9023-6edac2d4896c'}
PS C:\\> $lineItem.Quantity 10
PS C:\\>
PS C:\\> # Update the cart; this operation will replace the existing line items.
PS C:\\> Set-PartnerCustomerCart -CartId '65faf57b-0205-47ee-92b3-08dcf233ea73' -CustomerId
'46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LineItems $lineItem
Updates an order for a customer in a cart.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerCart
SYNOPSIS
Updates an order for a customer in a cart.
SYNTAX
Set-PartnerCustomerCart -CartId <String> -CustomerId <String> -LineItems <PSCartLineItem[]> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
Updates an order for a customer in a cart.
PARAMETERS
-CartId <String>
The identifier for the cart.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-LineItems <PSCartLineItem[]>
The line items for the cart.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCart
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> # Create the object that will be needed.
PS C:\\> $lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem
PS C:\\>
PS C:\\> # Configure the appropriate properties for the line item.
PS C:\\> $lineItem.BillingCycle = 'OneTime'
PS C:\\> $lineItem.CatalogItemId = 'DG7GMGF0DWTLDG7GMGF0DSJB'
PS C:\\> $lineItem.FriendlyName = 'My Purchase'
PS C:\\> $lineItem.ProvisioningContext = @{duration='1Year'; scope='shared';
subscriptionId='b35d5324-df8e-4306-9023-6edac2d4896c'}
PS C:\\> $lineItem.Quantity 10
PS C:\\>
PS C:\\> # Update the cart; this operation will replace the existing line items.
PS C:\\> Set-PartnerCustomerCart -CartId '65faf57b-0205-47ee-92b3-08dcf233ea73' -CustomerId
'46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LineItems $lineItem
Updates an order for a customer in a cart.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerCart