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

Retrieve Distance Between Two Indian PIN Codes.

Integrate PIN code distance lookup into your business applications using the RPACPC PIN to PIN Distance API. Submit origin and destination PIN codes to retrieve the distance returned by the API, helping support logistics, delivery planning, and location-based business workflows.

Sample verification Dummy data
1 You send
Verifying
2 You get back
✓
VERIFIEDverified successfully
482 ms
Origin PIN Code 110001
Destination PIN Code 400001
Distance (KM) EXAMPLE_DISTANCE
API overview

Simplify PIN to PIN Distance.

The RPACPC PIN to PIN Distance API accepts two Indian postal PIN codes and returns the distance between them in kilometres.

The API response includes the submitted origin and destination PIN codes and a distance_Km field containing the distance value returned by the service.

This API can be integrated into logistics platforms, delivery applications, transportation systems, and other business applications that use PIN code-based distance information.

Key Information Available

Access essential PIN to PIN Distance details.

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

01
PIN Code Details

Origin and destination PIN codes returned by the API.

from_Pin_code
to_Pin_code
02
Distance Information

Distance value returned by the API, expressed in kilometres.

distance_Km
03
Response Status

Overall API response status, status code and response message.

status
status_code
message
04
Billing & Error Details

Billable indicator and error information returned by the API.

billable
error
05
Request & Transaction Details

Client request identifier, transaction identifier and request/response timestamps.

request_id
sequence_id
request_time
response_time
The supplied response returns the distance as a string. Confirm the distance calculation methodology before describing the result as road distance, driving distance, or straight-line distance
How It Works

Simple API-based verification process.

Step 01

Provide the Origin PIN Code

Submit the starting postal PIN code using pincode_from.

Step 02

Provide the Destination PIN Code

Submit the destination postal PIN code using pincode_to.

Step 03

Include Request and Consent Details

Supply the required request identifier and consent information.

Step 04

Retrieve the Distance Result

Receive the origin and destination PIN codes along with the calculated distance in kilometres.

Step 05

Integrate the Response

Use the returned distance information in your business application or operational workflow.

API Request

Step 1 Submit PIN to PIN Distance details.

Request parameters
Parameter Type Description
request_id String Client-provided identifier for the request
consent String Consent value supplied with the request
consent_text String Consent declaration included in the request
pincode_from String Origin PIN code
pincode_to String Destination PIN code
The PIN codes above are illustrative examples. Replace them with the required origin and destination PIN codes. Use the approved consent wording for your integration.
Sample request REQUEST
{
  "request_id": "REQ-PIN-10001",
  "consent": "Y",
  "consent_text": "I hereby declare my consent for fetching information via RPACPC API",
  "pincode_from": "110001",
  "pincode_to": "400001"
}
API response

Step 2Receive structured PIN to PIN Distance information.

Key response fields
Field Description
status Overall API response status
status_code API response status code
message Message describing the API response
billable Indicates whether the API response is billable
error Error information, or null if no error is returned
data.from_Pin_code Origin PIN code returned by the API
data.to_Pin_code Destination PIN code returned by the API
data.distance_Km Distance between the PIN codes in kilometres
request_id Client-provided request identifier
sequence_id Transaction identifier returned by the API
request_time Timestamp when the request was made
response_time Timestamp when the API response was returned
200 · Sample responseRESPONSE
{
  "status": "SUCCESS",
  "status_code": "200",
  "message": "Data fetch successfully",
  "billable": "Y",
  "error": null,
  "data": {
    "from_Pin_code": "110001",
    "to_Pin_code": "400001",
    "distance_Km": "EXAMPLE_DISTANCE"
  },
  "request_id": "REQ-PIN-10001",
  "sequence_id": "SEQ-PIN-10001",
  "request_time": "2026-10-19T10:00:00.000Z",
  "response_time": "2026-10-19T10:00:01.000Z"
}

The response values are illustrative. EXAMPLE_DISTANCE is a placeholder, not a calculated distance. The actual distance depends on the API result for the submitted PIN codes.

Use cases

PIN to PIN Distance across business workflows.

Logistics and Transportation

Incorporate PIN code distance information into logistics and transportation workflows.

Delivery Planning

Use the returned distance as one of the inputs for delivery planning and operational decisions.

E-Commerce Applications

Integrate PIN code distance lookup into order processing and delivery-related workflows.

Serviceability Workflows

Use the API response as supporting information in systems that evaluate service locations based on origin and destination PIN codes.

Business Location Analysis

Incorporate PIN code distance information into internal tools that process location-based business data.

FAQ

Frequently asked questions

Common questions about the PIN to PIN Distance API — what it returns, how fast it is, and how to integrate.

Still have a question? Talk to an expert
What does the PIN to PIN Distance API do?
It accepts two PIN codes and returns a distance value in kilometres.
Which parameters are required?
The supplied request includes pincode_from and pincode_to, along with request and consent fields.
Is the distance returned in kilometres?
Yes. The response field is named distance_Km, indicating that the value is expressed in kilometres.
Does the API return road distance or straight-line distance?
The supplied example does not establish the distance calculation methodology. Confirm this with the RPACPC team before relying on the result for routing or travel estimates.
Can I use this API for delivery planning?
The returned distance can be used as an input to delivery-related workflows. Suitability for route planning depends on the underlying distance methodology and the requirements of your application.
What happens if a PIN code is invalid or unsupported?
The supplied response does not show invalid-input behavior. Confirm the expected error response and PIN code validation rules in the API documentation.
How can I access the API?
Contact the RPACPC team for the endpoint, authentication requirements, access details, and integration guidance.
Blog

Government ID Check API: How Does It Help Banks, FinTechs, and NBFCs Streamline KYC?

Government ID Check API helps banks, FinTechs, and NBFCs streamline KYC with faster identity verification and reduced manual work.

Read More
Government ID Check API: How Does It Help Banks, FinTechs, and NBFCs Streamline KYC?

India's verification infrastructure is already here.

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