Pokemon Center US ATC Script

  1. Go to product page.

  2. Click F12 to open DevTools.

  3. Select the Console tab at the top.

  4. Copy and paste the code bellow.

const addToCartForm = JSON.parse(document.getElementById("__NEXT_DATA__").innerText).props.initialState.product.addToCartForm;
const quantity = 1;
const referrer = window.location.href;
fetch("https://www.pokemoncenter.com/tpci-ecommweb-api/cart?type=product&format=nodatalinks", {
    "headers": {
        "x-application-name": "tempo",
        "accept": "application/json",
        "accept-language": "en-GB,en;q=0.9",
        "content-type": "application/json",
        "sec-ch-ua-mobile": "?0",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-site",
    },
    "referrer": referrer,
    "body": "{\"productURI\":\""+addToCartForm+"\",\"quantity\":"+quantity+",\"configuration\":{}}",
    "method": "POST",
    "mode": "cors",
    "credentials": "include"
})
window.open("https://www.pokemoncenter.com/cart")

5. Hit enter.

Last updated