Date Range Based Settlement IDs


The Date Range Based Settlement IDs API allows merchants to fetch a list of settlement IDs by providing a specific time window using from and to timestamps. This helps in tracking all settlements processed within a given range.

EnvironmentHTTP
Header
API
SandboxGEThttps://api-preprod.phonepe.com/apis/pg-sandbox/settlements/v1/range?from=1723107864177&to=1723107864187&limit=10&offset=0
ProductionGEThttps://api.phonepe.com/apis/pg/settlements/v1/range?from=1723107864177&to=1723107864187&limit=10&offset=0
Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <access_token>

⚠️ For Partner Integrations!


It is mandatory to include the X-MERCHANT-ID header with the MerchantID of the end merchant.

Query Parameter Details
Parameter NameDescription
fromfrom timestamp in Epoch millisecondsNot Null, older than 6 months is not accepted
toto timestamp in Epoch millisecondsNot Null, older than 6 months is not accepted
limitnumber of records that be fetched in the single API call.
Note: Max supported limit is 40
Default to 10
offsetoffset for paginationDefault to 0
Sample Response
{
  "settlements": [
    {
      "state": "PROCESSED",
      "settlementId": "abca-defa-kadi-dald",
      "utr": "UTR0001",
      "date": 1723107864177
    },
    {
      "state": "PROCESSED",
      "settlementId": "abca-defa-kadi-daal",
      "utr": "UTR0002",
      "date": 1635769200000
    }
  ],
  "hasNext" : true
}
Response Parameters
Parameter NameTypeDescription
settlementIdStringSettlement Id generated by PhonePe
stateStringCurrent State of the settlement
INITIATED
PROCESSED
ATTEMPT_FAILED
utrStringUTR reference of the settlement
dateEpochTimestamp
hasNextBooleanTrue: If more records are present
Is this article helpful?