# Razorpay v1

### Snapshot

<table data-header-hidden><thead><tr><th width="373">Features</th><th>Details</th></tr></thead><tbody><tr><td>Features</td><td>Details</td></tr><tr><td>Release Status</td><td>Beta</td></tr><tr><td>Source API Version</td><td>v1</td></tr><tr><td>Table Selection</td><td>Yes</td></tr><tr><td>Column Selection</td><td>Yes</td></tr><tr><td>Edit Integration</td><td>Yes</td></tr><tr><td>Replication Type Selection</td><td>No</td></tr><tr><td>Authentication Parameters</td><td>API Key<br>API Secret</td></tr><tr><td>Replication Type</td><td>Key Based Replication</td></tr><tr><td>Replication Key</td><td>Date</td></tr><tr><td>Suggested Replication Frequency</td><td>24 hrs</td></tr></tbody></table>

| Tables/APIs Supported |             |
| --------------------- | ----------- |
| Payments              | Orders      |
| Refunds               | Settlements |

### Integrate RazorPay with Daton

1. Signin to Daton&#x20;
2. Select RazorPay 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&#x20;
4. Provide API Key and API Secret to authorize Daton to periodically extract data from RazorPay
5. Post successful authentication, you will be prompted to choose from the list of available tables
6. Then select all required fields for each table
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

### RazorPay Data

**Payments**

Purpose: Retrieve multiple payments

Source API Documentation  <https://docs.razorpay.com/docs/payments>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name               | Target Datatype |
| ------------------ | --------------- |
| id                 | STRING          |
| entity             | STRING          |
| amount             | NUMERIC         |
| currency           | STRING          |
| status             | STRING          |
| order\_id          | STRING          |
| invoice\_id        | STRING          |
| international      | BOOLEAN         |
| method             | STRING          |
| amount\_refunded   | NUMERIC         |
| refund\_status     | STRING          |
| captured           | BOOLEAN         |
| description        | STRING          |
| card\_id           | STRING          |
| bank               | STRING          |
| wallet             | STRING          |
| vpa                | STRING          |
| email              | STRING          |
| contact            | STRING          |
| error\_code        | STRING          |
| error\_description | STRING          |
| fee                | NUMERIC         |
| tax                | NUMERIC         |
| created\_at        | NUMERIC         |

**Orders**

Purpose: Retrieve Orders

Source API Documentation  <https://docs.razorpay.com/docs/orders>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name         | Target Datatype |
| ------------ | --------------- |
| id           | STRING          |
| entity       | STRING          |
| amount       | NUMERIC         |
| amount\_paid | NUMERIC         |
| amount\_due  | NUMERIC         |
| currency     | STRING          |
| receipt      | STRING          |
| offer\_id    | STRING          |
| status       | STRING          |
| attempts     | NUMERIC         |
| created\_at  | NUMERIC         |

**Refunds**

Purpose: Retrieve list of refunds

Source API Documentation  <https://docs.razorpay.com/docs/refunds>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name        | Target Datatype |
| ----------- | --------------- |
| id          | STRING          |
| entity      | STRING          |
| amount      | NUMERIC         |
| currency    | STRING          |
| payment\_id | STRING          |
| receipt     | STRING          |
| created\_at | NUMERIC         |

**Settlements**

Purpose: Retrieve list of settlements

Source API Documentation  <https://docs.razorpay.com/docs/settlements>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name        | Target Datatype |
| ----------- | --------------- |
| id          | STRING          |
| entity      | STRING          |
| amount      | NUMERIC         |
| status      | STRING          |
| fees        | NUMERIC         |
| tax         | NUMERIC         |
| utr         | STRING          |
| created\_at | NUMERIC         |
