canonical: https://jentic.com/apis/sehatierp.com/sehatierp

# Sehatierp Sehati CRM API

The Sehati CRM API looks up customers of the Sehati CRM system together with the point-of-sale transactions recorded against them. A single search accepts a phone number, customer name, transaction number, or a start and end date range, and returns each matching customer with a total transaction count, every transaction with its number, timestamp, and total, and the line items with quantity, price, and product. It is a lookup interface for customer purchase history rather than a full CRM management surface.

## For AI agents

Find Sehati CRM customers by phone, name, transaction number, or date range and read their point-of-sale transaction history with line items and products.

## Scope

Does not create or edit customers, record new sales, or manage leads and deals. Use for looking up Sehati customers and their point-of-sale transaction history only.

## Capabilities

- Find a customer's purchase history by phone number
- Look up the customer and line items behind a specific transaction number such as an invoice code
- Pull every point-of-sale transaction between a start date and an end date
- Read each transaction's line items with quantity, price, and the product sold
- Count how many transactions a customer has made from the totalTransaction field

## Use cases

### AI customer-service agent with purchase lookup

A support agent answering a customer call needs that customer's recent purchases in front of it. Through Jentic the agent searches for 'find a customer's transactions by phone', loads the Sehati CRM search operation, and calls it with the phone number while the JWT bearer token is injected by your own Jentic One instance. It reads back each transaction number, date, total, and the products bought.

Example prompt: Call POST `/customers/careplus-transactions` with phone set to 08123270117 and summarise the customer's transactions and products

### Invoice verification

Staff resolving a disputed receipt need to confirm what was sold on a given invoice. The Sehati CRM search accepts a trxNo such as INV011130226004 and returns the customer who made it along with the transaction total and each line item's qty, price, and product. That is enough to confirm the items and amount without opening the point-of-sale system.

Example prompt: Call POST `/customers/careplus-transactions` with trxNo set to INV011130226004 and return the customer name, transaction total, and line items

### Date-range sales review

A clinic or retail manager reviewing a quarter wants the customers who bought during that period. Passing startDate and endDate in YYYY-MM-DD form returns every matching customer with their transactions in that window. The result can be summed by product to see what sold, or sorted by totalTransaction to find repeat customers.

Example prompt: Call POST `/customers/careplus-transactions` with startDate 2026-01-01 and endDate 2026-03-31 and rank customers by totalTransaction

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/customers/careplus-transactions` | Search customers and their transactions |

## Key resources

- **Customers with transactions** — Customer records returned with customerId, customerName, phone, totalTransaction, and a transactions array
- **Transactions and items** — Point-of-sale transactions with trxNo, createdAt, total, and line items carrying qty, price, and product

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 43 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 74 / 100
  - AI-Readiness & Agent Experience: 19 / 100
  - Agent Usability: 94 / 100
  - Security: 75 / 100
  - AI Discoverability: 50 / 100
- **View full report:** https://jentic.com/apis/sehatierp.com/sehatierp/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring Sehati CRM by hand means obtaining a JWT, sending it as a bearer token, and shaping a POST body with at least one of its five filters. Through Jentic you install once, import Sehati CRM from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** The Sehati CRM API exposes one operation, a read-style search sent as a POST with its filters in the request body. A rule can allow that search operation for your agent, but because the customer filters travel in the body, it bounds which operation runs rather than which customer is looked up.
- **Credential handling:** Your Sehati CRM bearer token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'find a customer's transactions by phone' or 'look up an invoice', and Jentic returns the Sehati CRM search operation with its request schema so the agent fills in the right filter.

## Related APIs

- **Zoho CRM** — Full CRM with contacts, leads, deals, and custom modules
- **Square** — Point-of-sale payments, orders, and customer directory

## FAQ

### What authentication does the Sehati CRM API use?

The Sehati CRM API authenticates with a JWT bearer token sent in the `Authorization` header, per its OpenAPI spec, and the transaction search returns 401 when the token is missing or invalid. Through Jentic the token is stored by your own instance and injected at call time, so it never appears in the agent's context.

### Can I search Sehati CRM transactions without a filter?

No. The search operation requires at least one of phone, trxNo, customerName, startDate, or endDate in the request body, and returns a 400 error when none is given. Dates use the YYYY-MM-DD format, and a phone or name search returns every transaction recorded for the matching customers.

### What are the rate limits for the Sehati CRM API?

The OpenAPI spec does not specify rate limits. The server listed in the spec is a test host, apitestcrm.sehatierp.com, so confirm the production host and any limits with Sehati at https://sehatierp.com before relying on it.

### Is there a Sehati CRM MCP server?

You don't need an MCP server to give your agent Sehati CRM. Jentic connects it directly from the API Directory: import it, store your bearer token once, and your agent calls the customer transaction search when it needs it.

### How do I look up a customer's purchases in Sehati CRM through Jentic?

Search Jentic for 'find a customer's transactions by phone', load the POST `/customers/careplus-transactions` operation, and execute it with a phone or customerName in the body. The response lists each matching customer with their transactions and line items. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the Sehati CRM API?

Yes. Allow just POST `/customers/careplus-transactions` in your rule and the agent can look up customer purchase history and nothing else, with every call logged. Because the phone, name, and date filters ride in the request body, the rule decides which operation runs, not which customer is searched.
