Share via


Get-PartnerCustomerOrder

Gets either a specific order or a list of order for the specified customer.

Syntax

Get-PartnerCustomerOrder
   -BillingCycle <BillingCycleType>
   -CustomerId <String>
   [-IncludePrice]
   [<CommonParameters>]
Get-PartnerCustomerOrder
   -CustomerId <String>
   [-IncludePrice]
   [<CommonParameters>]
Get-PartnerCustomerOrder
   -CustomerId <String>
   [-IncludePrice]
   -OrderId <String>
   [<CommonParameters>]

Description

Gets either a specific order or a list of order for the specified customer.

Examples

Example 1

PS C:\> Get-PartnerCustomerOrder -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -BillingCycle Monthly

Gets the list of orders with a billing cycle type of monthly for the specified customer.

Example 1

PS C:\> Get-PartnerCustomerOrder -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08

Gets the list of orders for the specified customer.

Parameters

-BillingCycle

Indicates the type of billing cycle.

Type:BillingCycleType
Accepted values:Annual, Monthly, None, OneTime, Unknown
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-CustomerId

Identifier for the customer.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IncludePrice

A flag indicating whether to include pricing details in the order information.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OrderId

Identifier for the order.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Orders.PSOrder