# Aftership

### Snapshot

| Features                        | Details               |
| ------------------------------- | --------------------- |
| Release Status                  | Released              |
| Source API Version              | v2                    |
| Table Selection                 | Yes                   |
| Column Selection                | Yes                   |
| Edit Integration                | Yes                   |
| Replication Type Selection      | No                    |
| Authentication Parameters       | Aftership API Key     |
| Replication Type                | Key based Replication |
| Replication Key                 | DATE                  |
| Suggested Replication Frequency | 24 hrs                |

| Tables/APIs Supported |           |
| --------------------- | --------- |
| Couriers              | Trackings |

### Integrate Aftership with Daton

1. Signin to Daton
2. Select Aftership 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. Provide your Aftership API Key.
5. After providing the API Key Daton will periodically extract data from Aftership.
6. Post successful authentication you will be prompted to choose from the list of available tables
7. Then select all required fields for each table
8. 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

### Aftership Data

**Couriers**

Purpose: Return a list of all couriers.

Source API Documentation  <https://developers.aftership.com/reference/couriers#get-couriers-all>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name                         | Target Datatype |
| ---------------------------- | --------------- |
| slug                         | STRING          |
| name                         | STRING          |
| phone                        | STRING          |
| other\_name                  | STRING          |
| web\_url                     | STRING          |
| required\_fields             | STRING          |
| optional\_fields             | STRING          |
| default\_language            | STRING          |
| support\_languages           | STRING          |
| service\_from\_country\_iso3 | STRING          |

**Trackings**

Purpose:Get tracking results of multiple trackings.

Source API Documentation <https://developers.aftership.com/reference/trackings#get-trackings>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name        | Target Datatype |
| ----------- | --------------- |
| order\_id   | STRING          |
| tag         | STRING          |
| title       | STRING          |
| checkpoints | RECORD          |


---

# Agent Instructions: 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:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/saas-integrations/aftership.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
