Skip to content

Commit

Permalink
BRP-17278 Add scope filter for SubscriptionsQuery (#780)
Browse files Browse the repository at this point in the history
# [[BRP-17278](https://bigcommercecloud.atlassian.net/browse/BRP-17278)]

## What changed?
Provide a bulleted list in the present tense
* Adding in the new scope filters that we are adding as a part of the
other PR's in this ticket to allow for end users to filter by scope
(store's in this case)

## Anything else?
Add related PRs, salient notes, ticket numbers, etc.
bigcommerce/merchant-subscription-manager#345
bigcommerce/api-proxy-java#3340

ping {names}


[BRP-17278]:
https://bigcommercecloud.atlassian.net/browse/BRP-17278?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
mikelopez100 authored Jan 24, 2025
1 parent 7effbfa commit 5c754a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/integrations/apps/unified-billing/example-queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,8 @@ Filters can also be used to query subscriptions.
The supported filters are
* `productId`
* `productType`
* `scopeId`
* `scopeType`
* `updatedAfter`
* `status`
* `ids`
Expand Down Expand Up @@ -982,5 +984,17 @@ The supported filters are
}
}
```


Use `scopeId` and `scopeType` filters together to retrieve specific subscriptions for a given scope:

```json filename="Scope filters" showLineNumbers copy
{
"filters": {
"scopeId": "bc/account/scope/9godyw034y",
"scopeType": "STORE"
}
}
```
</Tab>
</Tabs>

0 comments on commit 5c754a5

Please sign in to comment.