Skip to main content

Method merchant find account

URL: POST - /partner/merchant/find-account

This method allows you to get information about the trading account.

Header parameters

ParameterTypeDescription
client-id *authorizationUnique Partner ID
client-secret *authorizationUnique authentication key for VIA API

Request parameters

ParameterTypeDescription
merchantIdstringVIA Merchant ID
accountobjectData object regarding merchant services.
The parameters and their values of the accounts object are determined depending on the merchant's service for which the payment is made.
For example:
A phone number is sent to pay for the mobile operator's service.

Request sample

curl POST '/partner/merchant/find-account' \
--header 'client-id: system' \
--header 'client-secret: system123'
--data '{
"merchantId": "mrt_qwegFC1lHGaAzJIRphv4LdU10zX",
"account": {
"phone": "970000000"
}
}'

Response parameters

ParameterTypeDescription
dataobjectResponse data object

Example response if successful

{
"data": {
"name": "John Doe",
"passport": "AA7777777",
"invoice": "88888888888888",
"issueDate": "06.06.2023",
"amount": "660 000,00",
"balance": "1,00"
}
}

Example response in case of error

{
"status": {
"code": "1234",
"message": "Error while executing the request"
},
"error": {
"path": "URL Path",
"message": {
"uz": "Error message in Uzbek",
"ru": "Error message in Russian",
"en": "Error message in English"
}
}
}