Menu

Expand
Rate this page:

Why doesn't my invoice match what I pull from the call logs?

You should not necessarily expect responses from the /Calls API to match invoices, there are a number of reasons for this discrepancy.

In order of frequency of occurrence:

  • Many API resources, including /Calls, support a DELETE method after which they will be removed from logs
  • The /Calls API returns calls regardless of call status; only completed calls are billed
  • There are ephemeral things like phone numbers which can be present on an account for a period of time and then released
  • Rounding behavior for billable items is not represented in the /Calls API; for example by default we round up to the next minute, for a 25 second call duration on the logs the invoice will say 1 minute (or whatever the pricing model rounding behavior stipulates)
  • Time zone variance where the /Calls API is not using the same time zone that the invoice uses
  • The price from the /Calls API is only for the connectivity portion of the call; things like recordings, premium text-to-speech voices, speech recognition, conference participation, etc. are not included in the price
  • The price from the /Calls API does not contain units

For reconciling usage with invoices we provide a Usage API. The Usage API is tightly integrated with our billing platform and is able to provide counts and costs for usage even after the underlying resource has been deleted or released. Voice product usage including count is available in multiple categories, so make sure you are familiar with all the features your application uses and that you are requesting results from those categories.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

        
        
        

        Thank you for your feedback!

        Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more