How to integrate REST API to pass some values from my custom site

Hi, I’m creating a custom shopping site and i’m trying to pass some values from my custom site to erpnext. i have my add to cart button in my custom site and given quantity after clicking the add to cart button the value of quantity should appear in erpnext shopping cart.Thanks!