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 invoices
Retrieves invoices for the specified subscription.
Invoices are returned sorted by creation date with the most recent invoices appearing first.
GET
/
subscriptions
/
{id}
/
invoices
curl --request GET \
--url https://api.smokeball.com/subscriptions/{id}/invoices \
--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>",
"tier": {
"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": "<string>",
"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"
}
],
"discounts": [
{
"promotion": {
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"productSuite": "<string>",
"tiers": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "<string>",
"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": "<string>",
"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
},
"activationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z"
}
],
"status": "<string>",
"interval": "<string>",
"quantity": 3,
"createdDate": "2022-04-23T14:00:00Z",
"trialStatus": "<string>",
"trialPeriodStartDate": "2022-04-23T14:00:00Z",
"trialPeriodEndDate": "2022-04-23T14:00:00Z",
"currentPeriodStartDate": "2022-04-23T14:00:00Z",
"currentPeriodEndDate": "2022-04-23T14:00:00Z",
"cancellationStatus": "<string>",
"cancellationType": "PeriodEnd",
"canceledAt": "2024-12-01T09:00:00Z",
"cancelAt": "2025-04-23T14:00:00Z"
}
Path Parameters
The unique identifier of the subscription
Query Parameters
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}/invoices \
--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>",
"tier": {
"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": "<string>",
"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"
}
],
"discounts": [
{
"promotion": {
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "GET",
"self": {
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "<string>"
},
"productSuite": "<string>",
"tiers": [
{
"id": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"href": "<string>",
"relation": "<string>",
"method": "<string>",
"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": "<string>",
"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
},
"activationDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z"
}
],
"status": "<string>",
"interval": "<string>",
"quantity": 3,
"createdDate": "2022-04-23T14:00:00Z",
"trialStatus": "<string>",
"trialPeriodStartDate": "2022-04-23T14:00:00Z",
"trialPeriodEndDate": "2022-04-23T14:00:00Z",
"currentPeriodStartDate": "2022-04-23T14:00:00Z",
"currentPeriodEndDate": "2022-04-23T14:00:00Z",
"cancellationStatus": "<string>",
"cancellationType": "PeriodEnd",
"canceledAt": "2024-12-01T09:00:00Z",
"cancelAt": "2025-04-23T14:00:00Z"
}
Assistant
Responses are generated using AI and may contain mistakes.