This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c1a6ea
commit f4d1077
Showing
5 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
pages/endpoints/subscriptions-api.overwolf.com/_categories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
```yaml | ||
Request Type: 'GET' | ||
Hostname: 'https://subscriptions-api.overwolf.com' | ||
Path: '/subscriptions/${STORE_ID}/categories' | ||
Search Params: | ||
extensionId: string | ||
Headers: | ||
Authorization: 'Bearer ${token}' | ||
|
||
Result: Array of: | ||
name: 'string' | ||
description: 'string' | ||
active_tier?: | ||
tier_id: 'number' | ||
package: | ||
base_price: 'number' | ||
category: | ||
id: 'number' | ||
name: 'string' | ||
created_at: 'string' | ||
description: 'string' | ||
disable_gifting: 'boolean' | ||
disable_quantity: 'boolean' | ||
discount: 'number' | ||
expiration_date?: 'string' | ||
id: 'number' | ||
image?: 'string' | ||
name: 'string' | ||
sales_tax: 'number' | ||
total_price: 'number' | ||
type: 'subscription' | 'single' | ||
updated_at: 'string' | ||
prorate_price?: 'number' | ||
currency: 'string' | ||
active: 'boolean' | ||
created_at: 'string' | ||
next_payment_date: 'string' | ||
status: | ||
id: 'string' | ||
description: 'string' | ||
packages: Array of: | ||
base_price: 'number' | ||
category: | ||
id: 'number' | ||
name: 'string' | ||
created_at: 'string' | ||
description: 'string' | ||
disable_gifting: 'boolean' | ||
disable_quantity: 'boolean' | ||
discount: 'number' | ||
expiration_date?: 'string' | ||
id: 'number' | ||
image?: 'string' | ||
name: 'string' | ||
sales_tax: 'number' | ||
total_price: 'number' | ||
type: 'subscription' | 'single' | ||
updated_at: 'string' | ||
prorate_price?: 'number' | ||
currency: 'string' | ||
``` |
19 changes: 19 additions & 0 deletions
19
pages/endpoints/subscriptions-api.overwolf.com/_pgrade-downgrade.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```yaml | ||
Request Type: 'PUT' | ||
Hostname: 'https://subscriptions-api.overwolf.com' | ||
Path: '/subscriptions/${STORE_ID}' | ||
Search Params: | ||
extensionId: string | ||
Headers: | ||
Authorization: 'Bearer ${token}' | ||
|
||
Body: | ||
{ | ||
// The tierId from the activeTier object received by the get categories method. | ||
"tierId": number, | ||
// The packageId you want to change to. | ||
"packageId": number, | ||
// Whether to upgrade or downgrade to a package. | ||
"type": "upgrade" | "downgrade" | ||
} | ||
``` |