api: fix amount to cents conversion

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>