Fetch Saved Instruments Token API

Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.

anchor image
Copied !

Host

EnvironmentHttp MethodAPI Host URL
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox
ProductionPOSThttps://api.phonepe.com/apis/pg

Endpoint

/payments/v2/sdk/init – Endpoint is common for sandbox and production.

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>

Request Parameters

Parameter NameTypeDescription
amountLongTransaction amount in paise, minimum value 1

Sample Request

{ "amount": 1000 }

Sample Response

{ “savedInstrumentsToken”: “<token>”, “expireAfter”: <token-expires-after> }

Response Parameters

Parameter NameTypeDescription
savedInstrumentsTokenStringPass this to the PhonePe SDK via the merchant app.
expireAfterLongTTL of savedInstrumentsToken in seconds

Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.

anchor image
Copied !

Host

EnvironmentHttp MethodAPI Host URL
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox
ProductionPOSThttps://api.phonepe.com/apis/pg

Endpoint

/payments/v2/sdk/init – Endpoint is common for sandbox and production.

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>

Request Parameters

Parameter NameTypeDescription
amountLongTransaction amount in paise, minimum value 1

Sample Request

{ "amount": 1000 }

Sample Response

{ “savedInstrumentsToken”: “<token>”, “expireAfter”: <token-expires-after> }

Response Parameters

Parameter NameTypeDescription
savedInstrumentsTokenStringPass this to the PhonePe SDK via the merchant app.
expireAfterLongTTL of savedInstrumentsToken in seconds

Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.

anchor image
Copied !

Host

EnvironmentHttp MethodAPI Host URL
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox
ProductionPOSThttps://api.phonepe.com/apis/pg

Endpoint

/payments/v2/sdk/init – Endpoint is common for sandbox and production.

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>

Request Parameters

Parameter NameTypeDescription
amountLongTransaction amount in paise, minimum value 1

Sample Request

{ "amount": 1000 }

Sample Response

{ “savedInstrumentsToken”: “<token>”, “expireAfter”: <token-expires-after> }

Response Parameters

Parameter NameTypeDescription
savedInstrumentsTokenStringPass this to the PhonePe SDK via the merchant app.
expireAfterLongTTL of savedInstrumentsToken in seconds

Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.

anchor image
Copied !

Host

EnvironmentHttp MethodAPI Host URL
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox
ProductionPOSThttps://api.phonepe.com/apis/pg

Endpoint

/payments/v2/sdk/init – Endpoint is common for sandbox and production.

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>

Request Parameters

Parameter NameTypeDescription
amountLongTransaction amount in paise, minimum value 1

Sample Request

{ "amount": 1000 }

Sample Response

{ “savedInstrumentsToken”: “<token>”, “expireAfter”: <token-expires-after> }

Response Parameters

Parameter NameTypeDescription
savedInstrumentsTokenStringPass this to the PhonePe SDK via the merchant app.
expireAfterLongTTL of savedInstrumentsToken in seconds