Tracking Verify Conversion or Request Usage
Objective
Tracking Verify spending, conversion, or request usage.
Applies To
- Verify
- Usage
- Spending
Procedure
Verify charges consist of the Verify software fee, messaging fees, and call fees. There are two ways to track Verify usage:
- You can track Verify usage via the Vonage API account dashboard.
- You can track Verify usage by making use of the programmatic features made available via the API.
Both the Verify Check and Verify Search actions will give you insight into the fees associated with Verify.
Verify Check
When you conduct a Verify Check, the API will deliver back the software fee (the conversion fee) or price as well as the sum of the messaging and calls associated with the verification attempt known as estimated_price_messages_sent.
{
"request_id": "ec1exxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "0",
"event_id": "21c1ec53-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"price": "0.05000000",
"currency": "EUR",
"estimated_price_messages_sent": "0.01403167"
}
The term estimated in estimated_price_messages_sent is used because it is an estimate depending on the time you submit your Verify Check. There could be messages or calls in flight that may have not been recorded yet.
Verify Search
You can also use the Verify Search action to retrieve details about your verification attempt while in process or after the verification attempt has completed. This action gives you more analytics around your verification attempt, but the data fields relevant to tracking Verify usage are still the same as described above.
Price reflects the software fee (conversion fee) and estimated_price_messages_sent is the sum of the messaging and calls associated with the verification attempt. Both numerical values are in Euros.
{
"request_id": "ec1exxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"account_id": "xxxxxxxxx",
"number": "1415xxxxxxx",
"sender_id": "verify",
"date_submitted": "2019-10-28 18:44:03",
"date_finalized": "2019-10-28 18:49:14",
"checks": [
{
"date_received": "2019-10-28 18:49:14",
"code": "xxxx",
"status": "VALID",
"ip_address": ""
}
],
"first_event_date": "2019-10-28 18:44:03",
"last_event_date": "2019-10-28 18:48:11",
"price": "0.05000000",
"currency": "EUR",
"status": "SUCCESS",
"estimated_price_messages_sent": "0.01403167",
"events": [
{
"id": "1500xxxxxxxxxxxx",
"type": "sms"
},
{
"id": "1b01c676-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "tts"
},
{
"id": "21c1ec53-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "tts"
}
]
}
Reports API
The Reports API can be used for invoice reconciliation on a monthly basis. The Reports API is free for the first 10 successful API calls. Users who require more than 10 API requests can sign-up for paid access. The recommended process for tracking your Verify usage using the Reports API incorporates the Verify Search action mentioned above.
Using the Verify Search action, under events, the SMS and TTS ID on behalf of Verify are returned to you via the API. Save these IDs as well as corresponding Verify request_id from each request so that you can cross-reference SMS and call IDs that are related to each Verify request_id.
"events": [
{
"id": "1500xxxxxxxxxxxx",
"type": "sms"
},
{
"id": "1b01c676-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "tts"
},
{
"id": "21c1ec53-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"type": "tts"
}
]
These SMS and TTS IDs are the message_id and the call_id, respectively, in the SMS and Voice Call reports from the Reports API. You can then cross-reference the SMS and TTS related to each Verify request_id.
Comments
0 comments
Article is closed for comments.