changed amount to quantity as the json was changed after 0.6.8