Skip to content

Commit f9bed5e

Browse files
authored
Merge pull request #85 from messagemedia/feature-MAPI-1382-update-api-doc
MAPI-1382: Update API doc to include billing_units
2 parents d49dd4f + 29bda26 commit f9bed5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ tags:
376376
All notifications are JSON encoded and the request expects to receive a response in the HTTP 200 range. If a valid response isn't received the request will be retried in an exponentially backing off fashion.
377377
378378
Delivery Reports may carry an additional charge. For pricing, please contact your Account Manager or Support Team ([email protected]).
379+
380+
To include billing units in your delivery receipts via webhook, ensure the "Show Billing Units" feature is enabled for your account.
379381
380382
For delivery reports or changes in the status of a message, the POST request to the specified URL will be as follows:
381383
@@ -2082,6 +2084,7 @@ paths:
20822084
"date_received": "2017-05-20T06:30:37.642Z",
20832085
"status": "enroute",
20842086
"delay": 0,
2087+
"billing_units": 0,
20852088
"submitted_date": "2017-05-20T06:30:37.639Z",
20862089
"original_text": "My first message!",
20872090
"message_id": "d781dcab-d9d8-4fb2-9e03-872f07ae94ba",
@@ -2101,6 +2104,7 @@ paths:
21012104
"date_received": "2017-05-21T01:46:42.579Z",
21022105
"status": "enroute",
21032106
"delay": 0,
2107+
"billing_units": 0,
21042108
"submitted_date": "2017-05-21T01:46:42.574Z",
21052109
"original_text": "My second message!",
21062110
"message_id": "fbb3b3f5-b702-4d8b-ab44-65b2ee39a281",
@@ -7254,6 +7258,11 @@ components:
72547258
description: 'Deprecated, no longer in use'
72557259
format: int32
72567260
example: 0
7261+
billing_units:
7262+
type: integer
7263+
description: 'The billing units of this report'
7264+
format: int32
7265+
example: 1
72577266
delivery_report_id:
72587267
type: string
72597268
description: Unique ID for this delivery report

0 commit comments

Comments
 (0)