clearing to api