# Track inventory, profit, and loss (/archive/paypal-payments-standard/integration-guide/step-2)



> **Warning:** This product is [deprecated](/archive/product-lifecycle) and should not be used for new integrations. Use [Payment Links and Buttons](/payment-links-buttons/overview) instead. For information about migrating, visit the [Upgrade Hub](https://developer.paypal.com/upgrade/wps/guide/).

PayPal automatically saves your buttons to your PayPal account. For saved buttons, you can:

* Set up inventory tracking and automatically receive email alerts when your inventory runs low.
* Set up profit and loss tracking to view reports in your PayPal account.
* Edit an existing payment button.
* Create new buttons based on a similar button.

> **Note:** **Tip:** PayPal recommends leaving the automatic save option enabled. However, if you want to disable this option, click **Step 2: Track inventory, profit & loss** on the Create a PayPal payment button page and uncheck **Save button at PayPal**.

> **Note:** **Tip:** PayPal recommends leaving the automatic save option enabled. However, if you want to disable this option, click

|    |          |                                                      |
| -- | -------- | ---------------------------------------------------- |
| 1. | Optional | [Track inventory.](#track-inventory)                 |
| 2. | Optional | [Track profit and losses.](#track-profit-and-losses) |

## Track inventory [#track-inventory]

1. On the PayPal button creation page, click &#x2A;*Step 2: Track inventory, profit, and loss (optional).**
2. Click **Track inventory**.
3. Click one of these tracking methods:

   * **By Item**  —                       Track inventory by item only, regardless of any product options that may exist for this button.
   * **By Option**  —                       Track inventory by the product options you specified for this button. If you set up product options with prices, this option is automatically selected.

   > **Note:** **Note:** If you track *both* inventory and profit and loss, you must use the same tracking method.
4. Enter values for **Item ID**, **Qty. in stock**, and **Alert qty**. PayPal sends you an email alert when your inventory falls to or below the alert quantity.
5. Under &#x2A;*Can customers buy an item when it is sold out?**, click one of these options:

   * **Yes, customers can buy the item as usual.**

     Allows buyers to checkout and authorize their payments, even when inventory tracking shows that your item is out of stock. Buyers are not informed of oversold or out-of-stock situations nor that their items will be on back order after they complete their transactions.
   * **No, don't let customers buy the item.** (Default)

     Prevents buyers from checking out and authorizing their payments when inventory tracking shows that the item is out of stock. If there are some items in stock, but not enough to fulfill a buyer's request, the amount currently available is displayed and the number is adjusted in Quantity. Buyers can accept the adjusted quantity or adjust the quantity to a lower number.
6. If you chose **No, don't let customers buy the item**, enter the URL to a page on your website where buyers are informed that the item is out of stock. If there are no items in stock, the buyer is informed that the item is completely sold out. Buyers can click the Continue Shopping button to return to the web page at the URL that you specified.

## Track profit and losses [#track-profit-and-losses]

1. On the PayPal button creation page, click &#x2A;*Step 2: Track inventory, profit, and loss (optional).**
2. Click **Track profit and losses**.
3. Click a tracking method. See descriptions above in [Track inventory](#track-inventory).
4. Enter the **Item ID** and &#x2A;*Price.** Include the price that you paid to acquire the item, and other costs, such as warehousing, quality control, and administrative overhead.

## Next [#next]

Choose one of these actions:

* If you are satisfied with your payment button, click **Create Button** on the Create a PayPal payment button page, and then [copy and paste the HTML code](/archive/paypal-payments-standard/integration-guide/copy-paste-code) to your webpage.
* [Customize advanced features](/archive/paypal-payments-standard/integration-guide/step-3).

## Additional information [#additional-information]

* [Button summary](/archive/paypal-payments-standard/integration-guide/button-summary)
* [Manage transactions](/archive/paypal-payments-standard/integration-guide/manage-activity)
