CRMchat APIBeta
Telegram APIPayments

payments.getSavedInfo

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/payments.getSavedInfo

Get saved payment information

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

Get saved payment information

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/payments.getSavedInfo" \  -H "Content-Type: application/json" \  -d '{    "params": {}  }'
{  "result": {    "_": "payments.savedInfo",    "hasSavedCredentials": true,    "savedInfo": {      "_": "paymentRequestedInfo",      "name": "string",      "phone": "string",      "email": "string",      "shippingAddress": {        "_": "postAddress",        "streetLine1": "string",        "streetLine2": "string",        "city": "string",        "state": "string",        "countryIso2": "string",        "postCode": "string"      }    }  }}