# Target

<figure><img src="https://868374352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsa9hO1wAdcCxan5eSRkU%2Fuploads%2FKHGnWKYfwPQEGKQg4H2w%2Fimage.png?alt=media&#x26;token=d9a0310c-fc2a-4fa6-97b6-4adeb995603e" alt=""><figcaption></figcaption></figure>

## Overview

* Accounts required, log in from the **Accounts Page** or by running **Checkout Tasks**. Would recommend setting up [**IMAP**](https://hayha-bots.gitbook.io/guide-v2/master/imap) in case accounts need to be reset.  You can log in using Browser Shape Cookies or an API. If one option doesn’t work, try the other.
* Use Product ID (TCIN Number) as the Product Input.
* We highly recommend using Monitor Tasks + Checkout Tasks to avoid proxy bans and session issues when running for longer periods of time.&#x20;
* Focus on using high quality ISPs/DCs and Residential Proxies. &#x20;
* Use a combination of both **API** and **Browser** for your **Shape Cart Strategy**.

## Accounts

**Accounts are Required.**

* You can log in from the **Accounts Page** or by running **Checkout Tasks**. We recommend using Browser Shape Cookies or logging in through the account tab.
* **Browser cookies** generally work better on a **Local Machine** than on a server.
* If you get a **Shape block** while logging in from the Accounts page, try adding a **proxy**.
* You can also log in via a Task, but using **Browser Shape Cookies** is still recommended.

## Product Input

Use the `Product ID` (also known as the TCIN number). The PID is usually at the end of the link. You can only use one product input per task.

<div align="center"><img src="https://868374352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsa9hO1wAdcCxan5eSRkU%2Fuploads%2F1pxoDmIiKrfW8bYnTyWP%2Fimage.png?alt=media&#x26;token=b17c2ed6-e586-48db-8ac3-83e906ba54cf" alt=""></div>

**Example:** [`https://www.target.com/p/30pk-2-pre-sharpened-pencil-ticonderoga/-/A-14790193`](https://www.target.com/p/30pk-2-pre-sharpened-pencil-ticonderoga/-/A-14790193#lnk=sametab)

`14790193` is the Product ID in this case.

## Modes

<mark style="color:red;">**(Online modes are only for shipping orders only)**</mark>

* **Online Safe:** Uses the standard checkout flow and is usually the recommended mode for online shipping orders.
* **Online Brute:** This mode is riskier in terms of Shape Blocks and Account Locks by Target but is much faster than Safe.

{% hint style="warning" %}
**Regarding Online Brute Mode**\
\
`-`You should not run tasks on this mode for more than 3-4 minutes.\
`-`You cannot run the Shape Cart Strategy API with this mode unless you're using Global Monitors. \
`-`Cookies will burn *extremely* fast.
{% endhint %}

*<mark style="color:red;">**(In store modes are only for pickup orders only)**</mark>*

**The currently recommended In-Store Mode is In-Store Brute with Global Monitors.**

* **In-Store Safe:** Uses the standard checkout flow and is usually the recommended mode for in-store Pickup orders.
* **In-Store Brute:** This mode is riskier in terms of Shape Blocks and Account Locks by Target but is much faster than Safe.

<details>

<summary>In-Store Pickup Options</summary>

### In-Store Selection Type

* **Stores Near Zipcode:** Will choose stores near the zipcode given. \
  ![](https://868374352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsa9hO1wAdcCxan5eSRkU%2Fuploads%2FndhFTKBS5JGjnV7WB5fN%2Fimage.png?alt=media\&token=6edc4051-0fa6-4615-8974-9e863b268bdf)\\

- **Stores Near Town Name:** Use the city name as it appears on Target.com. Ex: <https://www.target.com/sl/flint/350> ->`Flint`\
  ![](https://868374352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsa9hO1wAdcCxan5eSRkU%2Fuploads%2FvkT9oBCnYz5aWpMQtnar%2FScreen%20Shot%202022-07-11%20at%2012.58.36%20PM.png?alt=media\&token=c41f7bf5-d99d-4151-94cf-5c43f50351bb)
- **Specific Store ID:** <https://www.target.com/sl/manhattan-east-village/3249>. The last 4 digits are the ID for this store. So it would be `3249`

</details>

## Proxy List

We recommend using a mix of high quality ISPs and Residential Proxies.&#x20;

To avoid proxy bans we highly recommend using monitor tasks [<mark style="color:blue;">**(Click Here)**</mark>](https://hayha-bots.gitbook.io/guide-v2/ui/monitors).

## Shape Strategy

{% hint style="info" %}
**What is Shape?**\
\
In short, Shape is an anti-bot system that helps websites such as Target tell the difference between genuine users and bots. If it suspects you’re a bot or notices unusual activity, it blocks you.\
\
**Why do I need Shape Cookies?**\
\
Shape Cookies are essential to running the Target module. In a perfect scenario, you will need one valid Login Cookie and one Cart Cookie to get through the checkout process. Unfortunately, the likelihood of an API providing or generating a valid Shape Cookie 100% of the time is very slim. Thus when generating cookies it’s essential to try different combinations when generating Browser Shape cookies—such as different browsers and proxies.
{% endhint %}

Run a mix of Browser and API for Shape Cart Strategy and Shape Login Strategy. Shape security can be difficult to get through the login and cart process, so it’s essential to try different combinations when generating Browser Shape cookies—such as different browsers and proxies. We also recommend mixing in API Shape Strategy as well.

* **API:** Mode generates Shape on our servers. It's far easier to set up, but the cookies can be lower quality than Browser. This can lead to a less smooth experience with more proxy blocks. On drops, we recommend running the majority of your tasks with Browser.

{% hint style="info" %}
**Please review the Target Shape Cookie Generation notes.** [**(Click Here)**](https://hayha-bots.gitbook.io/guide-v2/sites/target/target-shape-cookie-generation)
{% endhint %}

* **Browser:** Mode uses your in-bot [Shape Harvesters](https://hayha-bots.gitbook.io/guide-v2/ui/harvesters/shape) to generate [Shape Cookies](https://hayha-bots.gitbook.io/guide-v2/ui/harvesters/shape#how-to-farm-shape-cookies). For this mode, you'll want to toss high-quality residential proxies into harvesters and generate Shape Cookies. It's recommend to have `Target (Cart)` and `Target (Login)` Shape Cookies. However the bot will use Cart cookies if no login cookies are available for the login process.&#x20;

## Max ATC Attempts

This sets the number of attempts to add the item to your cart before stopping. Excessive attempts over a short period can lead to faster session expiration and potential flags. We typically recommend 3–5 attempts for a safer approach, but feel free to experiment.\
\
If you set this field, you must **restart your task** after a restock. If you leave it unset, the task will run until your monitor runtime ends, then return to monitor without stopping.

## Max Price (Optional)

Max price will determine the highest dollar amount your willing to checkout for that item. This is optional and no dollar symbol, commas, periods, etc is required.&#x20;

## **Delays**

* **Monitor Delay:** 3500+
* **Error Delay:** 3500+

## Extra Options

* **Match Accounts to Profiles:** Matches accounts to profile email. If a match cannot be found the task will not run.&#x20;
* **Random 9-digit:** This option will keep the first 5 digits of your main zip and randomize the last 4. This is to help alleviate Target cancelling orders in a Zipcode that has a lot of orders for an item.
* **Circle Bonus:** This option will allow Target tasks to opt into Target Circle Bonuses when available. Your account will need to be opted into the Circle rewards program and meet the Bonus requirements in order to obtain the reward.
* **Loop Checkouts:** This enables tasks to checkout out repeatedly on an item until it's out of stock. Repeatedly checking out items on the same account in a short time can lead to bad standing or canceled orders.
* **Max Available Quantity:** When enabled tasks will try to check out the maximum quantity allowed for the item.
* **OTP Login:** This login method can help if you’re encountering Shape Blocks when trying to log in. We recommend enabling it only if you’re having difficulties, and you will still need Shape Cookies to log in. Please note that Shape Blocks can still occur even with this method.

## **Advanced / Global Monitor**

Please refer to the [Monitors section](https://hayha-bots.gitbook.io/guide-v2/ui/monitors) for information regarding Local monitor and Global Monitor tasks.&#x20;

{% hint style="warning" %}
Global monitor tasks for Target will try to randomly cart while waiting for monitors to ping. If you run multiple Global Monitor tasks it'll cycle through the list of tasks and pick 1 to add to cart. Delays are timed on our end to reduce Shape Blocks and Account Bans. Don't worry if you see tasks saying `OOS, Retrying` or `Error Shape Blocked` while on Global Monitor.
{% endhint %}

##
