Documentation
- Getting Started
- Authentication
- Making Requests
- Resource Creation
- Searching
- Plugins
- Webhooks
Tutorials
APIs
- Activity Codes
- Archive
- Authorization
- Bank Accounts
- Contacts
- Events
- Expenses
- Fees
- Files
- Firm
- Firm Users
- Folders
- Invoices
- Layout Designs
- Layout Matter Items
- Matter Billing Configuration
- Matter Items
- Matter Types
- Matters
- Memos
- Notifications
- Plugins
- Referral Types
- Relationships
- Roles
- Staff
- Stages
- Subscription Payments
- Subscription Promotions
- Subscriptions
- GETGet all add-ons
- GETGet an add-on
- POSTAdd add-on
- DELRemove add-on
- GETGet subscriptions
- GETGet subscription
- PATCHUpdate subscription
- GETGet subscription invoices
- GETGet subscription promotions
- GETGet subscription changes
- PATCHCancel subscription
- PATCHResume subscription
- GETGet all tiers
- GETGet a tier
- GETGet tier add-ons
- PATCHSwitch product tier
- GET
- Tasks
- Users
- Webhooks
Subscriptions
Get subscription promotions
Retrieves promotions available for the specified subscription.
GET
/
subscriptions
/
{id}
/
promotions
curl --request GET \
--url https://api.smokeball.com/subscriptions/{id}/promotions \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'
[
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"productSuite": "<string>",
"tiers": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"smokeballId": "<string>",
"productSuite": "<string>",
"name": "Intake",
"description": "<string>",
"trialPeriodDays": 123,
"prices": [
{
"default": true,
"active": true,
"type": "Recurring",
"name": "\"$109 per user/month\"",
"amount": 5900,
"interval": "Monthly"
}
],
"createdDate": "2022-04-23T14:00:00Z",
"updatedDate": "2022-04-23T14:00:00Z"
}
],
"addOns": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"smokeballId": "<string>",
"productSuite": "<string>",
"name": "Intake",
"description": "<string>",
"trialPeriodDays": 123,
"prices": [
{
"default": true,
"active": true,
"type": "Recurring",
"name": "\"$109 per user/month\"",
"amount": 5900,
"interval": "Monthly"
}
],
"createdDate": "2022-04-23T14:00:00Z",
"updatedDate": "2022-04-23T14:00:00Z"
}
],
"usage": [
"<string>"
],
"name": "Summer Sale 2024",
"description": "Summer Sale 2024",
"durationDays": 7,
"amountOff": 2000,
"percentOff": 20.5,
"active": true,
"numUsed": 42,
"createdDate": "2024-01-15T10:00:00Z",
"expirationDate": "2024-12-31T23:59:59Z",
"codes": [
{
"id": "promo_code_1234",
"name": "SUMMER2024",
"description": "100% discount!",
"code": "SUMMER2024",
"active": true,
"minimumAmount": 5000,
"firstTimeCustomersOnly": true,
"limit": 100,
"createdDate": "2024-01-15T10:00:00Z",
"expiratonDate": "2024-12-31T23:59:59Z",
"metadata": {}
}
],
"metadata": {},
"isPersistent": true,
"isFree": true,
"deleted": true
}
]
Path Parameters
The unique identifier of the subscription
Query Parameters
Required range:
0 <= x <= 2147483647
Required range:
1 <= x <= 500
Response
200
application/json
Successfully retrieved the subscription details
The response is of type object[]
.
curl --request GET \
--url https://api.smokeball.com/subscriptions/{id}/promotions \
--header 'Authorization: <api-key>' \
--header 'x-api-key: <api-key>'
[
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
},
"productSuite": "<string>",
"tiers": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"smokeballId": "<string>",
"productSuite": "<string>",
"name": "Intake",
"description": "<string>",
"trialPeriodDays": 123,
"prices": [
{
"default": true,
"active": true,
"type": "Recurring",
"name": "\"$109 per user/month\"",
"amount": 5900,
"interval": "Monthly"
}
],
"createdDate": "2022-04-23T14:00:00Z",
"updatedDate": "2022-04-23T14:00:00Z"
}
],
"addOns": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"smokeballId": "<string>",
"productSuite": "<string>",
"name": "Intake",
"description": "<string>",
"trialPeriodDays": 123,
"prices": [
{
"default": true,
"active": true,
"type": "Recurring",
"name": "\"$109 per user/month\"",
"amount": 5900,
"interval": "Monthly"
}
],
"createdDate": "2022-04-23T14:00:00Z",
"updatedDate": "2022-04-23T14:00:00Z"
}
],
"usage": [
"<string>"
],
"name": "Summer Sale 2024",
"description": "Summer Sale 2024",
"durationDays": 7,
"amountOff": 2000,
"percentOff": 20.5,
"active": true,
"numUsed": 42,
"createdDate": "2024-01-15T10:00:00Z",
"expirationDate": "2024-12-31T23:59:59Z",
"codes": [
{
"id": "promo_code_1234",
"name": "SUMMER2024",
"description": "100% discount!",
"code": "SUMMER2024",
"active": true,
"minimumAmount": 5000,
"firstTimeCustomersOnly": true,
"limit": 100,
"createdDate": "2024-01-15T10:00:00Z",
"expiratonDate": "2024-12-31T23:59:59Z",
"metadata": {}
}
],
"metadata": {},
"isPersistent": true,
"isFree": true,
"deleted": true
}
]
Assistant
Responses are generated using AI and may contain mistakes.