Skip to content

Commit 7e00d0b

Browse files
committed
MT-21887: Expose email campaigns usage in account billing API
1 parent bce2ba6 commit 7e00d0b

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

specs/account-management.openapi.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ paths:
874874
get:
875875
operationId: getAccountBillingUsage
876876
summary: Get current billing cycle usage
877-
description: Get current billing cycle usage for Email Sandbox and Email Sending (Email API/SMTP).
877+
description: Get current billing cycle usage for Email Sandbox, Email Sending (Email API/SMTP), and Email Marketing.
878878
tags:
879879
- Billing
880880
x-codeSamples:
@@ -946,7 +946,7 @@ paths:
946946
var response = client.generalApi().billing().getCurrentBillingCycleUsage(accountId);
947947
responses:
948948
'200':
949-
description: Returns an object with current billing cycle usage for Sandbox and Email Sending (Email API/SMTP) if available.
949+
description: Returns an object with current billing cycle usage for Sandbox, Email Sending (Email API/SMTP), and Email Marketing if available.
950950
content:
951951
application/json:
952952
schema:
@@ -1004,6 +1004,24 @@ paths:
10041004
type: integer
10051005
limit:
10061006
type: integer
1007+
marketing:
1008+
type: object
1009+
properties:
1010+
plan:
1011+
type: object
1012+
properties:
1013+
name:
1014+
type: string
1015+
usage:
1016+
type: object
1017+
properties:
1018+
sent_messages_count:
1019+
type: object
1020+
properties:
1021+
current:
1022+
type: integer
1023+
limit:
1024+
type: integer
10071025
example:
10081026
billing:
10091027
cycle_start: '2024-02-15T21:11:59.624Z'
@@ -1025,6 +1043,13 @@ paths:
10251043
sent_messages_count:
10261044
current: 6789
10271045
limit: 10000
1046+
marketing:
1047+
plan:
1048+
name: Marketing Pro
1049+
usage:
1050+
sent_messages_count:
1051+
current: 1500
1052+
limit: 10000
10281053
'401':
10291054
$ref: '#/components/responses/UNAUTHENTICATED'
10301055
'403':

0 commit comments

Comments
 (0)