> 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/narvar/integration-specifications.md).

# Integration Specifications

## Integration Overview

Narvar is an e-commerce package tracking platform that allows you to keep customers up-to-date with timely order status notifications. With Narvar, you can track shipments around the world and provide estimated delivery dates your customers can rely on.

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 Narvar extractor is built based on this [Narvar API documentation](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#webhook).  The following endpoints are used by Daasity to replicate data from Narvar:

* [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)

## Entity Relationship Diagram (ERD)

[Click here to view the ERD for the Daasity Narvar integration](https://lucid.app/documents/embedded/f42d3ba2-a6cd-4fa5-bf95-b8280c7e3686) illustrating the different tables and keys to join across tables.

## Narvar Schema

The Daasity Narvar 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.

* [Returns](#returns)
* [Items](#items)
* [Exchange Options](#exchange-options)
* [Transactions](#transactions)
* [Fee Breakdown](#fee-breakdown)

### **Returns**

* Endpoint: [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)
* Update Method: UPSERT
* Table Name: \[`narvar.returns`]

| JSON Element                                   | Database Column                           |
| ---------------------------------------------- | ----------------------------------------- |
| MD5(rma::rma\_number)                          | \_\_sync\_key                             |
| rma::return\_status                            | return\_status                            |
| rma::rma\_number                               | rma\_number                               |
| rma::order\_number                             | order\_number                             |
| rma::return\_creation\_date                    | return\_creation\_date                    |
| rma::retailer\_name                            | retailer\_name                            |
| rma::return\_method                            | return\_method                            |
| rma::gift                                      | gift                                      |
| rma::email                                     | email                                     |
| rma::locale                                    | locale                                    |
| rma::origin\_zip                               | origin\_zip                               |
| rma::origin\_country                           | origin\_country                           |
| rma::estimated\_refund                         | estimated\_refund                         |
| rma::restocking\_fee                           | restocking\_fee                           |
| rma::refund\_method                            | refund\_method                            |
| rma::shopify\_order\_id                        | shopify\_order\_id                        |
| rma::original\_shopify\_order\_id              | original\_shopify\_order\_id              |
| rma::currency                                  | currency                                  |
| rma::shop\_currency                            | shop\_currency                            |
| rma::charge\_payment\_id                       | charge\_payment\_id                       |
| rma::transaction\_id                           | transaction\_id                           |
| rma::package::tracking\_number                 | tracking\_number                          |
| rma::package::carrier                          | package\_carrier                          |
| rma::package::carrier\_service\_method         | package\_carrier\_service\_method         |
| rma::package::destination\_id                  | package\_destination\_id                  |
| rma::package::destination\_zip                 | package\_destination\_zip                 |
| rma::package::destination\_city                | package\_destination\_city                |
| rma::package::destination\_country             | package\_destination\_country             |
| rma::package::estimated\_actual\_shipping\_fee | package\_estimated\_actual\_shipping\_fee |
| rma::package::shipping\_fee                    | package\_shipping\_fee                    |
| rma::policy::refund\_at                        | policy\_refund\_at                        |
| rma::policy::refund\_automation\_until         | policy\_refund\_automation\_until         |
| rma::policy::mark\_as\_paid\_at                | policy\_mark\_as\_paid\_at                |
| rma::policy::restock\_at                       | policy\_restock\_at                       |
| rma::policy::restock\_automation\_until        | policy\_restock\_automation\_until        |
| rma::policy::reserve\_inventory\_at            | policy\_reserve\_inventory\_at            |
| rma::policy::reserve\_automation\_id           | policy\_reserve\_automation\_until        |

### **Items**

* Endpoint: [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)
* Update Method: UPSERT
* Table Name: \[`narvar.items`]

| JSON Element                                       | Database Column                    |
| -------------------------------------------------- | ---------------------------------- |
| MD5(rma::rma\_number + item::sku + item::item\_id) | \_\_sync\_key                      |
| rma::rma\_number                                   | rma\_number                        |
| item::sku                                          | sku                                |
| item::item\_id                                     | item\_id                           |
| item::reason                                       | reason                             |
| item::reason\_code                                 | reason\_code                       |
| item::comment                                      | comment                            |
| item::unit\_price                                  | unit\_price                        |
| item::total\_item\_price                           | total\_item\_price                 |
| item::transaction\_type                            | transaction\_type                  |
| item::keep\_the\_item                              | keep\_the\_item                    |
| item::child\_reason                                | child\_reason                      |
| item::child\_reason\_code                          | child\_reason\_code                |
| item::unit\_price\_original\_shop                  | unit\_price\_original\_shop        |
| item::unit\_discount\_shop                         | unit\_discount\_shop               |
| item::unit\_tax\_shop                              | unit\_tax\_shop                    |
| item::unit\_final\_shop                            | unit\_final\_shop                  |
| item::unit\_price\_original\_presentment           | unit\_price\_original\_presentment |
| item::unit\_discount\_presentment                  | unit\_discount\_presentment        |
| item::unit\_final\_presentment                     | unit\_final\_presentment           |
| item::current\_processing\_state::status           | processing\_state\_status          |
| item::current\_processing\_state::quantity         | processing\_state\_quantity        |
| item::current\_processing\_state::timestamp        | processing\_state\_timestamp       |
| item::exchange\_item::variant\_title               | exchange\_item\_variant\_title     |
| item::exchange\_item::variant\_id                  | exchange\_item\_variant\_id        |
| item::exchange\_item::variant\_sku                 | exchange\_item\_variant\_sku       |
| item::exchange\_item::product\_id                  | exchange\_item\_product\_id        |
| item::exchange\_item::exchange\_quantity           | exchange\_item\_exchange\_quantity |

### **Exchange Options**

* Endpoint: [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)
* Update Method: UPSERT
* Table Name: \[`narvar.exchange_options`]

| JSON Element                                                                                                                                                  | Database Column |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| MD5(rma::rma\_number + exchange\_option::sku + exchange\_option::item\_id + exchange\_option::variant\_id + exchange\_option::name + exchange\_option::value) | \_\_sync\_key   |
| rma::rma\_number                                                                                                                                              | rma\_number     |
| sku                                                                                                                                                           | sku             |
| item\_id                                                                                                                                                      | item\_id        |
| variant\_id                                                                                                                                                   | variant\_id     |
| name                                                                                                                                                          | name            |
| value                                                                                                                                                         | value           |

### **Transactions**

* Endpoint: [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)
* Update Method: UPSERT
* Table Name: \[`narvar.transactions`]

| JSON Element                            | Database Column            |
| --------------------------------------- | -------------------------- |
| MD5(rma::rma\_number + transaction::id) | \_\_sync\_key              |
| rma::rma\_number                        | rma\_number                |
| transaction::id                         | id                         |
| transaction::timestamp                  | timestamp                  |
| transaction::source                     | source                     |
| transaction::amount                     | amount                     |
| transaction::currency                   | currency                   |
| transaction::refund\_method             | refund\_method             |
| transaction::giftcard\_id               | giftcard\_id               |
| transaction::authorization              | auth                       |
| transaction::conversion\_rate\_to\_shop | conversion\_rate\_to\_shop |

### **Fee Breakdown**

* Endpoint: [Returns](https://speca.io/Narvar/narvar-shopify-rma-without-crc?key=fd47e878af0be31d3bab68df39075cc9#get-returns)
* Update Method: UPSERT
* Table Name: \[`narvar.fee_breakdown`]

| JSON Element                                                | Database Column               |
| ----------------------------------------------------------- | ----------------------------- |
| MD5(rma\_number + transaction::id + breakdown::description) | \_\_sync\_key                 |
| rma::rma\_number                                            | rma\_number                   |
| transaction::id                                             | transaction\_id               |
| breakdown::fee                                              | fee                           |
| breakdown::currency                                         | currency                      |
| breakdown::description                                      | description                   |
| breakdown::tax\_code                                        | tax\_code                     |
| breakdown::display\_with\_return\_method                    | display\_with\_return\_method |
| breakdown::formatted\_fee                                   | formatted\_fee                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/narvar/integration-specifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
