Method merchant find account
URL: POST - /partner/merchant/find-account
This method allows you to get information about the trading account.
Header parameters
| Parameter | Type | Description |
|---|---|---|
| client-id * | authorization | Unique Partner ID |
| client-secret * | authorization | Unique authentication key for VIA API |
Request parameters
| Parameter | Type | Description |
|---|---|---|
| merchantId | string | VIA Merchant ID |
| account | object | Data 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
| Parameter | Type | Description |
|---|---|---|
| data | object | Response 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"
}
}
}