Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var product_id = 'idc-vbz12';
- var stock = 3;
- $.ajax
- ({
- type: "PUT",
- url: "https://infrico.us/wp-json/infrico-us/v3/product-stock/"+product_id+"/?stock="+stock,
- dataType: 'json',
- headers: {
- "Authorization": "Basic " + btoa('ck_42a047daa9646f902e55638be8515cab4f51a13f' + ":" + 'cs_f8c0244c4d38e422c57c44310c561b6d7915b132')
- },
- success: function (res){
- console.log(res);
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement