Skip to main content
POST
/
analytics
/
data_extraction
/
email_parsing
cURL
curl --request POST \
  --url https://api.insightai.in/analytics/data_extraction/email_parsing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email_content": "<string>"
}'
{
  "reference_number": "<string>",
  "transaction_entity": "<string>",
  "amount": 123,
  "currency": "<string>",
  "date_of_transaction": "2023-12-25",
  "chargeback_reason": "<string>",
  "customer_information": {
    "customer_name": "<string>",
    "customer_email": "<string>",
    "customer_phone": "<string>"
  },
  "additional_notes": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The email content containing chargeback information to be analyzed.

email_content
string
required

The email content containing chargeback-related information to be analyzed.

Response

Chargeback details extracted from the email content.

reference_number
string

Unique identifier for the transaction.

transaction_entity
string

Name of the merchant, bank, or gateway involved in the transaction.

amount
number

Transaction amount.

currency
string

Currency of the transaction (e.g., USD, INR).

date_of_transaction
string<date>

Date when the transaction occurred.

chargeback_reason
string

Reason for the chargeback, if available.

customer_information
object
additional_notes
string

Any extra information or instructions extracted from the email.

I