Skip to content
Developer API

Build on ConsultProREST API for Healthcare Billing

Integrate ConsultPro's billing, visit, and payment data into your own systems. Automate workflows, sync with your EHR, or build custom dashboards.

API Highlights

A developer-friendly API designed for reliability, security, and ease of integration.

RESTful JSON API

Clean, predictable endpoints following REST conventions. JSON request and response bodies with consistent error formats.

JWT Authentication

Industry-standard JWT tokens with short-lived access tokens and long-lived refresh tokens for secure, seamless integration.

Rate Limiting

Per-plan rate limits protect the platform while giving you generous quotas. Professional plans get 100 requests per minute.

Webhook Support

Subscribe to real-time events for visits, billing, and payments. Receive POST callbacks when data changes in ConsultPro.

Sandbox Environment

Test your integrations against a sandbox with mock data. No risk to production, full API parity for confident development.

Tenant Isolation

API tokens are scoped to your tenant. Cross-tenant data access is impossible by design, enforced at every query layer.

Available Endpoints

7 endpoint groups covering the full billing lifecycle from visits through TDS compliance.

Visits

Create, read, update, and manage visit lifecycle

  • GET /api/visits
  • POST /api/visits
  • PATCH /api/visits/:id
  • PATCH /api/visits/:id/status

Billing

Create, approve, reject, and list billing entries

  • GET /api/billing
  • POST /api/billing
  • PATCH /api/billing/:id/approve
  • PATCH /api/billing/:id/reject

Payments

Record, confirm, and list payment transactions

  • GET /api/payments
  • POST /api/payments
  • PATCH /api/payments/:id/status

TDS

Deductions, payments, certificates, and summaries

  • GET /api/tds
  • POST /api/tds/deductions
  • POST /api/tds/payments
  • GET /api/tds?quarter=Q4&fy=2025-2026

Consultants

List, map, and unmap hospital-consultant relationships

  • GET /api/consultants
  • POST /api/hospital-consultants/assign
  • DELETE /api/hospital-consultants/:id

Reports

Monthly, quarterly, and annual billing reports

  • GET /api/reports/monthly
  • GET /api/reports/quarterly
  • GET /api/reports/annual

Webhooks

Subscribe to visit, billing, and payment events

  • visit.created
  • billing.approved
  • payment.recorded
  • tds.deducted

Code Examples

Get started in minutes with these curl examples. Replace $TOKEN with your JWT token.

List visits

Retrieve paginated visits for your tenant with optional filters.

curl -s -H "Authorization: Bearer $TOKEN" \
  "https://api.consultpro.in.net/api/visits?page=1&limit=20&status=COMPLETED"

Create billing

Generate a billing entry from a completed visit.

curl -s -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"visitId": "vis_abc123", "amount": 15000, "description": "OPD consultation"}' \
  "https://api.consultpro.in.net/api/billing"

Get TDS summary

Fetch quarterly TDS deduction summary for filing.

curl -s -H "Authorization: Bearer $TOKEN" \
  "https://api.consultpro.in.net/api/tds?quarter=Q4&fy=2025-2026"

Authentication

ConsultPro uses JWT tokens for API authentication. Obtain a token by sending your credentials to the login endpoint, then include it in the Authorization header of every request.

  • JWT tokens via POST /api/auth/login
  • Refresh tokens for long-lived sessions without re-authentication
  • Tokens are scoped to your tenant with role-based permissions
  • API keys for server-to-server integration coming soon
terminal
# Get access token
curl -s -X POST \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","password":"..."}' \
  https://api.consultpro.in.net/api/auth/login

# Response
{
  "access_token": "eyJhbGciOi...",
  "refresh_token": "dGhpcyBpcy...",
  "user": { "id": "usr_123", ... }
}

# Use token in requests
curl -H "Authorization: Bearer eyJhbGciOi..." \
  https://api.consultpro.in.net/api/visits

Rate Limits & Quotas

Generous limits for every plan. Need more? Enterprise plans offer unlimited API access.

PlanRequests / minWebhooksSandbox
Starter30 / min----
ProfessionalPopular100 / min
EnterpriseUnlimited

Get API Access Today

API access is included with every Professional and Enterprise plan. Start building your integration with a 14-day free trial.

Full API documentation is available inside the app after sign-up.

256-bit encryption
Data stored in India
GST-compliant invoicing
14-day free trial, no card