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.
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.
The API response may include the following information, depending on the response received:
Origin and destination PIN codes returned by the API.
Distance value returned by the API, expressed in kilometres.
Overall API response status, status code and response message.
Billable indicator and error information returned by the API.
Client request identifier, transaction identifier and request/response timestamps.
Submit the starting postal PIN code using pincode_from.
Submit the destination postal PIN code using pincode_to.
Supply the required request identifier and consent information.
Receive the origin and destination PIN codes along with the calculated distance in kilometres.
Use the returned distance information in your business application or operational workflow.
| 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 |
{
"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"
}
| 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 |
{
"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.
Incorporate PIN code distance information into logistics and transportation workflows.
Use the returned distance as one of the inputs for delivery planning and operational decisions.
Integrate PIN code distance lookup into order processing and delivery-related workflows.
Use the API response as supporting information in systems that evaluate service locations based on origin and destination PIN codes.
Incorporate PIN code distance information into internal tools that process location-based business data.
Common questions about the PIN to PIN Distance API — what it returns, how fast it is, and how to integrate.
Learn how a Vehicle Verification API for Loan Processing helps lenders verify vehicle details, reduce risks, and speed up loan approvals.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.