diff --git a/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 b/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 index fe7b44cc3698..0ccd8d6baa46 100644 --- a/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Get-SherwebCurrentSubscription.ps1 @@ -1,4 +1,4 @@ -function Get-CurrentSherwebSubscription { +function Get-SherwebCurrentSubscription { param( [Parameter(Mandatory = $true)] [string]$CustomerId, diff --git a/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 b/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 index fc5dd8f79d38..ca5a91cd71b3 100644 --- a/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Get-SherwebOrderStatus.ps1 @@ -1,15 +1,9 @@ function Get-SherwebOrderStatus { param( - [Parameter(Mandatory = $true)] - [string]$ClientId, - [Parameter(Mandatory = $true)] - [string]$ClientSecret, - [Parameter(Mandatory = $true)] - [string]$SubscriptionKey, [Parameter(Mandatory = $true)] [string]$RequestTrackingId ) - $AuthHeader = Get-SherwebAuthentication -ClientId $ClientId -ClientSecret $ClientSecret -SubscriptionKey $SubscriptionKey + $AuthHeader = Get-SherwebAuthentication $Uri = "https://api.sherweb.com/service-provider/v1/tracking/$RequestTrackingId" $Tracking = Invoke-RestMethod -Uri $Uri -Method GET -Headers $AuthHeader return $Tracking diff --git a/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 b/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 index 8392d5a1b0fb..951fa36b5aef 100644 --- a/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 +++ b/Modules/CippExtensions/Public/Sherweb/Remove-SherwebSubscription.ps1 @@ -8,7 +8,7 @@ function Remove-SherwebSubscription { $AuthHeader = Get-SherwebAuthentication $Body = ConvertTo-Json -Depth 10 -InputObject @{ - subscriptionIds = $SubscriptionIds + subscriptionIds = @($SubscriptionIds) } $Uri = "https://api.sherweb.com/service-provider/v1/billing/subscriptions/cancellations?customerId=$CustomerId"