Settlement Status

Merchants can call the Settlement Status API to fetch the current status of the Settlement using settlementId received from the webhook.

Host Details

EnvironmentValue
UAThttps://api-preprod.phonepe.com/apis/pg-sandbox
PRODhttps://api.phonepe.com/apis/pg

API Endpoint

/settlements/v1/{settlementId}/status

Complete Host URL

Http Method: GET

EnvironmentValue
UAThttps://api-preprod.phonepe.com/apis/pg-sandbox/settlements/v1/{settlementId}/status
PRODhttps://api.phonepe.com/apis/pg/settlements/v1/{settlementId}/status

Request Details

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <access_token>

Note: access_token can be generated using the Auth Token API. Refer here

Path Parameter Details

Parameter NameDescription
settlementIdsettlement ID received in the Webhook response.

Sample Response

{
  "settlementId" : "abca-defa-kadi-dald",
  "state" : INITIATED,
  "utr" : "UTR100291",
  "amount" : 100,
  "merchantId" : "merchantId",
  "lastAttemptErrorCode": "",
  "lastAttemptErrorDescription" : "",
  "lastUpdatedAt" : 121211331
}

Response Parameters

Parameter NameTypeDescription
settlementIdStringSettlement Id generated by PhonePe
stateStringCurrent State of the settlement
● INITIATED
● PROCESSED
● ATTEMPT_FAILED
utrStringUTR reference of the settlement
amountLongSettlement Amount
merchantIdStringMID of the merchant for which the settlement is initiated.
lastAttemptErrorCodeStringWill be present only if the state is ATTEMPT_FAILED.
– The Error Code for the failure
lastAttemptErrorDescriptionStringWill be present only if the state is ATTEMPT_FAILED.
– The Error description for the failure
lastUpdatedAtDateTimeEpoch Timestamp of the last status updated (in milliseconds)