We’re excited to launch our latest product to simplify your business processes. Know More →
GST RPACPC GST SuitePublic GST, e-Invoice & e-Way Bill

Authenticate and Manage Sessions for E-Invoice API Integration.

Establish an authenticated session for RPACPC E-Invoice API operations using an OTP-based authentication workflow. Request an OTP, exchange it for an authentication token, and refresh the token to continue the session.

Sample verification Dummy data
1 You send
Checking
2 You get back
✓
ACTIVEValid & registered
482 ms
Status Code1
Authentication Token30431124-5cbd-4045-9840-4ebb18d70265
SEKIaxLuJcsqILZuYQX828ITxXlrRUM1ebdEIaqEXnlaK+xK/U7ZuM5xAayg7RB7mWp
API overview

Simplify E-Invoice Authentication API.

The RPACPC E-Invoice Authentication API provides a three-step workflow for authentication and token management.

The workflow begins with an OTP request using a username. The OTP is then submitted to obtain an authentication token and associated session information. When token refresh is required, the refresh endpoint is called using the username to continue the session.

Key Information Available

Access essential E-Invoice Authentication API details.

The API response may include the following information, depending on the response received:

01
OTP Authentication

Initiate the authentication process using the configured username and submit the received OTP for token generation.

username
otp
02
Authentication Token

Authentication token and associated session information returned by the token-generation endpoint.

auth_token
expiry
sek
03
Token Refresh

Username-based refresh request to continue the authentication session according to the supported workflow.

username
04
Response Status

Status information returned by the authentication and OTP request endpoints.

status_cd
05
Request Tracking

Identifiers used to track authentication requests and transactions.

request_id
sequence_id
06
Transaction Timestamps

Request and response timestamps for monitoring API transaction timing.

request_time
response_time
How It Works

Simple API-based verification process.

Step 01

Request OTP

Submit the configured username to the OTP Request API to initiate the E-Invoice authentication workflow.

Step 02

Generate Authentication Token

Submit the username and received OTP to the Authentication Token API to obtain the authentication token, expiry value, SEK, and transaction details.

Step 03

Refresh the Authentication Token

Call the Refresh Token API with the username when a token refresh is required, following the supported session workflow.

Step 04

Integrate with E-Invoice APIs

Use the returned authentication details according to the requirements of supported E-Invoice operations, such as Search IRN, Generate IRN, and Cancel IRN.

API Request

Step 1 Submit E-Invoice Authentication details.

Request parameters
Parameter Type Description
username String Username used for authentication.
otp String OTP received during the authentication process.
The response includes a status code and request-tracking information. The supplied example does not include the OTP itself, so the OTP delivery method and destination should be documented separately if relevant.
Sample request REQUEST
{
  "username": "YOUR_USERNAME"
}
API response

Step 2Receive structured E-Invoice Authentication API information.

Key response fields
Parameter Type Description
status_cd String Status code returned by the OTP request API.
request_id String Identifier associated with the API request.
sequence_id String Sequence identifier for transaction tracking.
request_time String Timestamp when the request was made.
response_time String Timestamp when the response was returned.
200 · Sample responseRESPONSE
{
  "status_cd": {
    "status_cd": "1",
    "auth_token": "30431124-5cbd-4045-9840-4ebb18d70265",
    "expiry": 360,
    "sek": "IaxLuJcsqILZuYQX828ITxXlrRUM1ebdEIaqEXnlaK+xK/U7ZuM5xAayg7RB7mWp"
  },
  "request_id": "SAMPLE-REQUEST-ID",
  "sequence_id": "SAMPLE-SEQUENCE-ID",
  "request_time": "2026-01-09T18:23:32.731Z",
  "response_time": "2026-01-09T18:23:33.259Z"
}

Confirm the unit and interpretation of expiry, and the intended use of sek, against the integration specification. The sample alone does not establish their complete semantics.

Use cases

E-Invoice Authentication API across business workflows.

E-Invoice API Authentication

Establish the authentication workflow required before invoking supported E-Invoice operations.

Token Management

Obtain authentication details and refresh the token as required by the supported session workflow.

Automated E-Invoice Integration

Incorporate the authentication steps into an application that communicates with RPACPC E-Invoice services.

Session Continuity

Use the refresh endpoint to continue the authentication session according to the documented refresh process.

Centralized API Integration

Manage authentication as a distinct step in the integration with Search IRN, Generate IRN, and Cancel IRN APIs, subject to each endpoint's authentication requirements.

FAQ

Frequently asked questions

Common questions about the E-Invoice Authentication API — what it returns, how fast it is, and how to integrate.

Still have a question? Talk to an expert
What is the purpose of the E-Invoice Authentication API?
It provides a workflow to request an OTP, obtain authentication details, and refresh the token to continue the session.
How many steps are involved in the authentication workflow?
The supplied workflow has three steps: OTP request, authentication token generation, and token refresh.
What is returned by the token-generation endpoint?
The supplied response includes an authentication token, an expiry value, a SEK value, and request-tracking metadata.
What does the expiry value mean?
The example returns 360. Its unit and exact meaning should be confirmed in the API specification before implementation.
What is the purpose of the SEK field?
The response contains a sek field. Its exact role and usage should be documented using the official integration specification.
Does the Refresh Token API require an OTP?
The supplied refresh request contains only the username. Confirm whether additional session conditions or credentials are required by the service.
Does token refresh always preserve the same session?
The supplied workflow describes refresh as continuing the same session. Confirm the exact token replacement and session-continuity behavior against the actual refresh response.
How can I access the E-Invoice APIs?
Contact the RPACPC team for access requirements, authentication instructions, and API integration details.
Blog

Vehicle Verification API for Loan Processing: How Can Lenders Verify Vehicle Details Accurately?

Learn how a Vehicle Verification API for Loan Processing helps lenders verify vehicle details, reduce risks, and speed up loan approvals.

Read More
Vehicle Verification API for Loan Processing: How Can Lenders Verify Vehicle Details Accurately?

India's verification infrastructure is already here.

Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.