Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions specs/account-management.openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ paths:
get:
operationId: getAccountBillingUsage
summary: Get current billing cycle usage
description: Get current billing cycle usage for Email Sandbox and Email Sending (Email API/SMTP).
description: Get current billing cycle usage for Email Sandbox, Email Sending (Email API/SMTP), and Email Marketing.
tags:
- Billing
x-codeSamples:
Expand Down Expand Up @@ -910,7 +910,7 @@ paths:
var response = client.generalApi().billing().getCurrentBillingCycleUsage(accountId);
responses:
'200':
description: Returns an object with current billing cycle usage for Sandbox and Email Sending (Email API/SMTP) if available.
description: Returns an object with current billing cycle usage for Sandbox, Email Sending (Email API/SMTP), and Email Marketing if available.
content:
application/json:
schema:
Expand Down Expand Up @@ -968,6 +968,24 @@ paths:
type: integer
limit:
type: integer
marketing:
type: object
properties:
plan:
type: object
properties:
name:
type: string
usage:
type: object
properties:
sent_messages_count:
type: object
properties:
current:
type: integer
limit:
type: integer
example:
billing:
cycle_start: '2024-02-15T21:11:59.624Z'
Expand All @@ -989,6 +1007,13 @@ paths:
sent_messages_count:
current: 6789
limit: 10000
marketing:
plan:
name: Marketing Pro
usage:
sent_messages_count:
current: 1500
limit: 10000
'401':
$ref: '#/components/responses/UNAUTHENTICATED'
'403':
Expand Down
Loading