# Anvyl

## Snapshot

| Features                        | Details                                           |
| ------------------------------- | ------------------------------------------------- |
| Release Status                  | Released                                          |
| Source API Version              | v1                                                |
| Table Selection                 | Yes                                               |
| Column Selection                | Yes                                               |
| Edit Integration                | Yes                                               |
| Replication Type Selection      | No                                                |
| Authentication Parameters       | <p>Team ID</p><p>Access Token</p>                 |
| Replication Type                | <p>Key Based Replication,<br>Full Replication</p> |
| Replication Key                 | Updated\_at                                       |
| Suggested Replication Frequency | 1 hour                                            |

## **Tables/APIs Supported**

| Order\_Collections |
| ------------------ |
| Milestone\_Orders  |
| Orders             |
| Order\_Items       |

## Integrate Anvyl with Daton

1. Sign in to Daton
2. Select Anvyl from Integrations page
3. Provide Integration Name Replication Frequency and History. Integration name would be used in creating tables for the integration and cannot be changed later
4. In the next step you will be asked to enter Anvyl Team ID and API key
5. Post successful authentication you will be prompted to choose required tables from the list
6. Then select all required fields
7. Submit the integration

## Workflow

1. Integrations would be in Pending state initially and will be moved to Active state as soon as the first job loads data successfully on to the configured warehouse
2. Users would be able to edit/pause/re-activate/delete integration anytime
3. Users can view job status and process logs from the integration details page by clicking on the integration name from the active list

## Anvyl Data

### Order Collections <a href="#billable-items" id="billable-items"></a>

Purpose: This API gives all the the meta data about different order collections present in it. Order collections are grouped orders according to split shipments, assemblies, or etc.

Source API Documentation: <https://developer.anvyl.com/reference/getv1teamsteamidordercollections>

Replication: Full Replication

Replication Key: N/A

**Fields**

| Name             | Data Type |
| ---------------- | --------- |
| id               | NUMERIC   |
| type             | STRING    |
| name             | STRING    |
| purchase\_orders | RECORD    |
| team             | RECORD    |

### Milestone Orders <a href="#billable-items" id="billable-items"></a>

Purpose: This API is used to fetch the list of milestones associated with an order using pagination

Source API Documentation: <https://developer.anvyl.com/reference/getv1teamsteamidpurchaseordersorderidmilestones>

Replication: Key-Based Replication

**Fields**

| Name        | Data Type |
| ----------- | --------- |
| created\_at | TIMESTAMP |
| updated\_at | TIMESTAMP |
| id          | NUMERIC   |
| type        | STRING    |
| status      | STRING    |

### Orders <a href="#billable-items" id="billable-items"></a>

Purpose: This API retrieves the all existing purchase orders by using pagination

Source API Documentation: <https://developer.anvyl.com/reference/getv1teamsteamidpurchaseorders>

Replication: Key-Based Replication

Replication Key: updated\_at

**Fields**

| Name                   | Data Type |
| ---------------------- | --------- |
| created\_at            | TIMESTAMP |
| updated\_at            | TIMESTAMP |
| id                     | NUMERIC   |
| status                 | STRING    |
| currency               | STRING    |
| incoterms              | STRING    |
| note                   | STRING    |
| team                   | RECORD    |
| order\_number          | STRING    |
| payment\_terms         | STRING    |
| supplier               | RECORD    |
| shipping\_method       | STRING    |
| issued\_at             | DATE      |
| last\_issued\_at       | DATE      |
| ships\_on              | DATE      |
| delivered\_on          | DATE      |
| ships\_to              | RECORD    |
| seller\_address\_line1 | STRING    |
| seller\_city           | STRING    |
| seller\_country        | STRING    |
| seller\_postal\_code   | STRING    |
| seller\_state          | STRING    |
| seller\_address\_line2 | STRING    |
| name                   | STRING    |

### Order Items <a href="#billable-items" id="billable-items"></a>

Purpose: This API gets associated order items using pagination

Source API Documentation: <https://developer.anvyl.com/reference/getv1teamsteamidpurchaseordersorderidorderitems>

Replication: Key Based Replication

**Fields**

| Name                | Data Type |
| ------------------- | --------- |
| id                  | NUMERIC   |
| part                | RECORD    |
| name                | STRING    |
| quantity            | STRING    |
| unit\_price\_micros | STRING    |
| unit\_of\_measure   | STRING    |
