> For the complete documentation index, see [llms.txt](https://help.daasity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/back-in-stock/integration-specifications.md).

# Integration Specifications

## Integration Overview

Back In Stock is a Shopify app that allows customers to get notified when a product is restocked. It provides merchants with reports on product and email analytics to optimize their inventory, merchandising, and marketing strategies.

This document provides context on what kind of data is being gathered through this extractor, which endpoints that data is coming from, and how the extracted tables relate to each other.

## **Integration Availability**

This integration is available for:

* Enterprise

## API Endpoints

The Daasity Back In Stock extractor is built based on this [Back In Stock API documentation](https://help.backinstock.org/collection/1545-back-in-stock-documentation).  The following endpoints are used by Daasity to replicate data from Back In Stock:

* [Variants](https://help.backinstock.org/article/2193-reports-api-documentation)

## Entity Relationship Diagram (ERD)

[Click here to view the ERD for the Daasity Back In Stock integration](https://lucid.app/documents/embedded/70ceb3df-cfc1-42da-bb17-bd2c7e90d124) illustrating the different tables and keys to join across tables.

## Back In Stock Schema

The Daasity Back In Stock extractor creates these tables using the endpoints and replication methods listed. The data is mapped from source API endpoint to the table based on the mapping logic outlined in each table.

* [Notifications](#notifications)

### **Notifications**

* Endpoint: [Variants](https://help.backinstock.org/article/2193-reports-api-documentation)
* Update Method: UPSERT
* Table Name: \[`back_in_stock.notifications`]

| JSON Element                                  | Database Column               |
| --------------------------------------------- | ----------------------------- |
| sku, limit: 64                                | sku                           |
| product\_id                                   | product\_id                   |
| variant\_no                                   | variant\_no                   |
| description, limit: 255                       | description                   |
| unsent\_notifications\_count                  | unsent\_notifications\_count  |
| sent\_notifications\_count                    | sent\_notifications\_count    |
| notifications\_count                          | notifications\_count          |
| notification\_last\_added\_at                 | notification\_last\_added\_at |
| unit\_price                                   | unit\_price                   |
| Daasity: source\_id                           | \_\_source\_id                |
| Daasity: account\_id                          | \_account\_id                 |
| Daasity: MD5(sku + product\_id + variant\_no) | \_\_sync\_key                 |
| Daasity: timestamp when loaded into DB        | \_\_synced\_at                |
