write about example of create consumption API