Discussions

Ask a Question
Back to All

API type mismatch - total_invoice_amount is sometimes string, sometimes float

I am having a real issue getting an API custom connector in PowerApps to work with Servicem8's API.

The Custom API Connector in powerapps will only take one field type in the json response for each field.

But apparently, somewhere in my jobs list, some jobs have total_invoice_amount as a "string" type, and some are returning a "float" type.

This completely breaks the API connection and I can't even start developing my app.

Anyone got an idea what's going on?

Seems like a serious issue on the sm8 API side. I was able to handle other weirdness like some booleans being an int, some string, some boolean. But I can't handle a type mismatch in the returned data itself