is it possible to query the cost of sms or call in SINCH?

72 Views Asked by At

Hi currently our project is using sinch ios sdk and implementing sending sms and calls- through verifyCode:completionHandler and initiateWithCompletionHandler . i as a backend developer needs to get the price/cost of each sms and call through rest API how can i do this ?

1

There are 1 best solutions below

1
cjensen On

use this, you should use callbacks for a few reasons like security. But take advantage of that callback and also log the price. [RequestBody] { string - id string - event string - method identity - identity money - price string? - reference string? - custom string[]? - acceptLanguage }

https://www.sinch.com/docs/verification/rest/#VerificationRequestEvent