---
title: "Fetch E-Invoice API"
method: POST
path: "/?getEinvoice_api"
---

# Fetch E-Invoice API

`POST /?getEinvoice_api`

## Request body

- object
  - `appid` string, required — Merchant APP ID (Alphanumeric - Length of 32 chars)
  - `appkey` string, required — Merchant APP KEY (Alphanumeric - Length of 32 chars and special chars $@%#)
  - `epi` string, required — EPI is an end point identifier, Identify the device on valor infrastructure, it's a 10 digit number starts with 2
  - `txn_type` string, required — Transaction type should be as "getEinvoice"
  - `limit` integer — Max value set to 1000
  - `offset` integer — Offset for pagination. Default 0
  - `search_value` string — Phone, Amount, Invoice Number, Customer Name, Product Description, Email
  - `date_filter` string — Set the date filter.<table> <tbody><tr> <th>Date Filter</th> <th>Options</th> </tr> <tr> <td>Recent (Used by default if date filter is not passed)</td> <td>0</td> </tr> <tr> <td>Today</td> <td>1</td> </tr> <tr> <td>MTD</td> <td>2</td> </tr> <tr> <td>Yesterday</td> <td>3</td> </tr> <tr> <td>Last Month</td> <td>4</td> </tr> <tr> <td>Current Week</td> <td>5</td> </tr> <tr> <td>Last Week</td> <td>6</td> </tr> <tr> <td>Last 90 Days</td> <td>7</td> </tr> <tr> <td>Last 90Days Behind</td> <td>8</td> </tr> <tr> <td>All</td> <td>9</td> </tr> </tbody></table>
  - `selected_date` string — Set the Selected Date of fetch the transaction (Ex: YYYY-MM-DD)
  - `free_select` string — Email, Phone, ID, Amount, UID
  - `free_select_text` string — test@valorpaytech.com
  - `start_date_range` string, date — Set the start date of fetch the transaction (Ex: YYYY-MM-DD)
  - `end_date_range` string, date — Set the end date of fetch the transaction (Ex: YYYY-MM-DD)
  - `status` string — PAID, PENDING, EXPIRED, PROCESSING, CANCELLED, SALE(VOIDED
  - `filterKey` string — The filter key must be set to 0 if the status is 'PAID' or 'SALE(VOIDED)'

## Response `200`

200

- object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/valorpaytech/apis/ecommerce-api.md) · [All operations](https://skmtc.net/valorpaytech/apis/ecommerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/valorpaytech/ecommerce-api/revisions/c6468b606325/schema)
