sample charging api