Allows Twilio Marketplace publishers to manually report customer usage on No-code Partner Listings that they own
Allows Twilio Marketplace publishers to manually report customer usage on No-code Partner Listings that they own.
Path parameters
-
Customer Installation SID to report usage on.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^XE[0-9a-fA-F]{32}$
.
POST
/v1/InstalledAddOns/{InstalledAddOnSid}/Usage
curl \
--request POST 'https://marketplace.twilio.com/v1/InstalledAddOns/BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"billable_items":[{"sid":"BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","quantity":12.355},{"sid":"BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","quantity":44.02}]}'
Request example
{
"billable_items": [
{
"sid": "BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quantity": 12.355
},
{
"sid": "BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quantity": 44.02
}
]
}
Response examples (202)
{
"billable_items": [
{
"sid": "BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quantity": 12.355,
"submitted": false
},
{
"sid": "BIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quantity": 44.02,
"submitted": true
}
],
"total_submitted": 44.02
}