I’ve managed to fix this issue now, by changing the order of the parameters in the API call. I don’t know why that should have fixed it, but it seems to working fine now that I’ve rearranged them