fetch('https://www.etsy.com/api/v3/ajax/shop/shopID/plaid-integration/get-plaid-link-token', { method: 'POST', body: '{}', headers: new Headers({ 'Content-Type': 'application/json', 'cookie':'Rcookie', 'x-csrf-token': 'Rcsrf' }) }) .then(res => res.json()) .then(console.log)