# Amazon

You have 8 modes available:

* (no value): normal drop or restock mode
* `ADDRESS`: adds default address/payment method
* `INVITATION`: let you to join their invitation only drop (you'll receive an email if chosen)
* `INVITATION CHECK` : let you check if account that made entries with `INVITATION`  have been selected to purchase the product
* `MONITOR`: monitors a specific pid for (eventually) a specific size range
* `MONITOR DISCORD`: monitors your discord channels and grab the ping you need&#x20;
* `AWAIT`: runner that waits once a MONITOR detects stock
* `SESSION`: generates a session for an existing account
* `MANUAL`: after login (if needed) will let you do your stuff manually (for example deleting orders and so on)
* `SECRET` : :doughnut: (don't forget to backup your accounts.csv everytime you run it)

### Tasks setup

Setting up a single task is quite easy.

You don't need to specify any information about shipping or about the payment method.

You just need to fill the COUNTRY since it will be used for selecting the Amazon region you want to run for.

{% hint style="info" %}
**IMPORTANT NOTE**

Your account has to have a default shipping address and a default payment method already set into your account.

If you want to le pepper handle this just run ADDRESS mode.\
If you don't have all necessary info set into your csv everything will be reported.
{% endhint %}

| COLUMN NAME    | VALUE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SITE           | AMAZON as a value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| MODE           | Empty or one as a reported above                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| PID            | ASIN or multiple ones comma separated when running MONITOR mode                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| OFFER          | Provide a specific offer id. Running with an OFFER is the fastest way to checkout                                                                                                                                                                                                                                                                                                                                                                                                                       |
| QUANTITY       | As many as you want, if a product is not available for the desired quantities, the minimum one will be used                                                                                                                                                                                                                                                                                                                                                                                             |
| MAX PRICE      | <p>When monitoring a product, might be that the item comes in-stock but with an higher price.<br><br>Type the maximum price you are willing to pay for the given product.<br><br>If the mode for this task is set to MONITOR, as per PID column, you can put multiple max prices comma separated.<br><br>Don't forget to respect the order!</p>                                                                                                                                                         |
| DELAY          | In milliseconds (e.g. 3000 for 3 seconds delay)                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| EMAIL          | Account email                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| PASSWORD       | Account password                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| FIRST NAME     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| LAST NAME      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ADDRESS LINE 1 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ADDRESS LINE 2 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| HOUSE NUMBER   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| CITY           |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ZIPCODE        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| STATE          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| COUNTRY        | A 2-letters country ISO Code (e.g. `GB` for UK)                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| PHONE          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| PAYMENT        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| CARD HOLDER    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| CARD NUMBER    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| EXP MONTH      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| EXP YEAR       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| CVV            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| WEBHOOK        | If empty the one set up in `settings.json` will be used                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| PROXY          | <p>Has te the exact filename, don't forget the extension name like <code>.txt</code> (e.g. <code>amazon.isps.txt</code>).</p><p></p><p>If empty <code>amazon.txt</code> will be used.</p>                                                                                                                                                                                                                                                                                                               |
| IMAP           | <p>When you generate sessions or using SECRET mode, Amazon might send you a 6-digit OTP code to the given email address. <br>To let Pepper handle this for you, put here your IMAP connection settings in the following format: <code>server:port:username:password</code></p><p></p><p>As example: <code>imap.mail.me.com:993:<pprs@icloud.com>:my-app-password</code></p>                                                                                                                             |
| START TIME     | <p>Empty if you want to manually start your task. A specific time in the format <code>hh:mm:ss</code> like <code>08:50:00</code> to automatically start this task at the given time.</p><p></p><p>Don't worry if you recognize you put a wrong time in there. You can still manually force start it. </p><p></p><p>If you didn't put a specific time, don't forget to put <code>MANUAL</code> as a value if you want to avoid every task to immediately start as soon as your task file is started.</p> |

{% hint style="info" %}
You **must** have a CapSolver key set up in your settings.json, a captcha is required in order to login on this site.
{% endhint %}

### Generating session

If you are wondering how and if you need to generate a session for your account.. the answer is yes but almost every mode available covers your back.

It really depends on your account status.

If your account:

* already has a default address/payment method just leave MODE column blank or run MONITOR/AWAIT, it is ready to go
* doesn't have a default address/payment method just run ADDRESS mode, it will login and fill your account with the data taken from your csv
* isn't in unknown state (you don't know if has address/payment method and you want to check manually) just run MANUAL or SESSION

{% hint style="warning" %}
Running SECRET mode is strongly recommended when running your accounts with Pepper
{% endhint %}

### Example taskfile

Here is an example task file:

{% file src="<https://565005617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_PzqjP5skTkL48YmhH%2Fuploads%2F7FbC4a5SZupWLlo8yNEB%2Famazon.csv?alt=media&token=8fe2c716-700a-4a4d-b99d-36c7a810dc10>" %}
You can edit this file by using [Rons editor](https://www.ronsplace.ca/products/ronseditor).
{% endfile %}

In the example task we have 3 taks.

One `MONITOR` task that is going to monitor three different products.

One `AWAIT` tasks that, once prepared his session, will listen for a `MONITOR` input: as soon the MONITOR task detect an availability for the monitored items, this task will automatically start.\
\
One task with EMPTY mode but with a specific **OFFER**.\
This task will ignore what MONITOR task will provide during the time and will run as a standalone task.\
Since a specific OFFER has been given the task will check when the product related to the specific OFFER will come back in stock and will try to checkout.

{% hint style="success" %}
Doing a proper usage of MONITOR and AWAIT mode will **drastically** reduce your proxy data consumption and to keep your accs more safe.\
\
Using an EMPTY task with an **OFFER** will give you the highest chances to checkout the specific product but way more aggressive for your accounts.
{% endhint %}

### Quicktasks

You can read more [here](https://docs.pepperscripts.com/getting-started/cli/quicktasks).\
The important thing you should know is that once started a quicktask for a region, this region will be overwritten into your task file: that means that if your `quicktasks/amazon.csv`  file has some accounts (independently if MONITOR or EMPTY or AWAIT) filled with IT as a country and you start a quicktask for a product restocked on DE, all your tasks will automatically run on DE region.

### Mode "MONITOR DISCORD" and how to use it

Configuration for this task is quite simple:

* Inside the **MODE** column put `MONITOR DISCORD`
* Inside the **PID** column put the filename you have previously created in discord folder
  * e.g. `ram_and_pokemon.csv`, read more on the content of this file [here](https://docs.pepperscripts.com/supported-sites-cli/discord)
* Inside the **COUNTRY** column you can put one or more countries comma separated
  * e.g. `IT, DE` for filtering all pings made on amazon.it and amazon.de
* Indie the **WEBHOOK** column you can specify a different webhook where all catched pings will be forwarded and notified. This is optional.

That's it.&#x20;

All grabbed pings will be forwarded to all AWAIT tasks as it happens with normal MONITOR tasks.

### FAQs&#x20;

* **Where is the generator?**\
  We don't have it since seems like manually made accounts are better chances to not being clipped instead of the ones that are bot-generated.
* **Too much modes, which one should I run?**\
  We strongly recommend to run MONITOR-AWAIT tasks since it is the best way to run multiple accounts without destroying them with individual monitoring and actions made in background.\
  If you know that an item is frequently restocking we also suggest you to run some tasks also with EMPTY mode with and without offer id.
* **Wtf is an offer id and where I can find it?**\
  An offer identifies uniquely a product with a specific price. For that reason you don't need to use MAX PRICE column when you going to run with an offer id. It's useless.\
  You can find an offer id manually on site if you are good to do it or, simply, just watch your cookgroup, they will provide it for sure when their monitor pings.
* **Why on monitors for a single product and the same price I have different offers?**\
  Offer id changes everytime you refresh the page but under the hood the ASIN and price involved is still the same. You can always run an "old" offer id that has been pinged in the past.
* **So.. in the end.. should I run with or without offer?**\
  The answer is always the same: every mode is different and they uses different approaches.\
  Event EMPTY mode with and without offer is actind differently.\
  So.. Mix them and find the bast way for your setup!
* **Should I run my accounts with SECRET mode?**\
  We strongly support this. Don't forget to backup your `accounts.csv` after you run your accs with SECRET mode!
* **My account got banned!**\
  Unfortunately that's quite normal when you run the same info across different accounts.\
  Try to avoid running the same CC or the same address on multiple accounts. This will trigger their anti-fraud automatically.\
  What we recommend is to run accounts that doesn't matter if they get clipped.\
  Just gen some, it takes few seconds and use the SECRET + ADDRESS mode to have everything ready.

### Common errors

* **I'm getting errors while logging in.**\
  There might be many reasons. First of all, as it improve your account stability, we strongly recommend to run SECRET mode, this will help a lot.
* **I ran SECRET mode but still looping on login.**\
  If you see the same error just rest your account for like 3-5 mins and try again. They tend to softly rate limit if they see too much login attempts. Is normal.
* **My order has been canned**\
  It happens. Unfortunately also that thing is quite normal.\
  Automatic anti-fraud jump into canning orders when they see that too many accounts are sharing the same credit card and the same delivery address. The best solution is to use aged accounts and using unique address/recipients. They care about j1gs. That's the hardest part. Who has the best setup wins.
