In the API the cost field always shows as $0
# support
d
Why is it $0? Please fix
v
Hi @dst19, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Get Call]() * [Cost Routing]() * [Pricing Overview]() * [Estimating Costs]() -----------------------------
### Answer It has been noted in discussions on Discord that the
cost
field in the webhook payload may show as $0 because the call object sent in webhooks is from the start of the call and might not reflect the final or updated costs [(1)]() . To obtain the most accurate and up-to-date cost for a call, you should use the
GET /call/:id
endpoint to fetch the latest information about the call. This method ensures that you receive the current cost details, as the initial webhook payload might not include finalized cost calculations.
d
Here is example - 3955be6c-78ea-4d60-9e04-073125ec1af2 Via the API the cost shows zero
v
Got it. Tagging @User for additional help.
s
It is due to performance reasons the end-of-call-report is stale. You can get the accurate cost by simply making a request to /call the endpoint with the call_id that you receive in end-of-call-report