Private
Information about partner
Receiving information about partner in LiqPay

Forming a request to API for self-integration:
Example of using SDK:
#!/bin/bash
PUBLIC_KEY='your_public_key'
PRIVATE_KEY='your_private_key'
API_URL='https://www.liqpay.ua/api/request'
JSON="{ 
	\"action\" : \"agent_info_user\",
    \"version\" : 3,
    \"public_key\" : \"${PUBLIC_KEY}\", 
    \"phone\" : \"380950000001\"
}"
# DATA is base64_encode result from JSON string
DATA=$(echo -n ${JSON} | base64)
# SIGNATURE is base64 encode result from sha1 binary hash from concatenate string ${PRIVATE_KEY}${DATA}${PRIVATE_KEY}
SIGNATURE=$(echo -n "${PRIVATE_KEY}${DATA}${PRIVATE_KEY}" | openssl dgst -binary -sha1 | base64)
# REQ is json response from liqpay
REQ=$(curl --silent -XPOST ${API_URL} --data-urlencode data="${DATA}" --data-urlencode signature="${SIGNATURE}")
echo "Result: ${REQ}"
$liqpay = new LiqPay($public_key, $private_key);
$res = $liqpay->api("request", array(
'action'         => 'agent_info_user',
'version'        => '3',
'phone'          => '380950000001'
));
HashMap<String, String> params = new HashMap<String, String>();
params.put("action", "agent_info_user");
params.put("version", "3");
params.put("phone", "380950000001");

LiqPay liqpay = new LiqPay(PUBLIC_KEY, PRIVATE_KEY);
HashMap<String, Object> res = liqpay.api("request", params);    
System.out.println(res.get("result"));
from liqpay import LiqPay

liqpay = LiqPay(public_key, private_key)
res = liqpay.api("request", {
"action"         : "agent_info_user",
"version"        : "3",
"phone"          : "380950000001"
})
liqpay = Liqpay::Liqpay.new(
:public_key  => 'public_key',
:private_key => 'private_key'
)
res = liqpay.api("request", {
:action         => "agent_info_user",
:version        => "3", 
:phone          => "380950000001"
})
LiqPay = liqpay:init(PublicKey, PrivateKey),
Res = liqpay:api("request", [
{<<"action">>, <<"agent_info_user">>},
{<<"version">>, <<"3">>}, 
{<<"phone">>, <<"380950000001">>}
], LiqPay).
var LiqPay = require('liqpay');
var liqpay = new LiqPay(public_key, private_key);
liqpay.api("request", {
"action"         : "agent_info_user",
"version"        : "3",
"phone"          : "380950000001"
}, function( json ){
console.log( json.result );
});
my $liqpay = Liqpay->new($public_key,$private_key);
my $res = $liqpay->api("request",
{
'action'         => 'agent_info_user',
'version'        => '3',  
'phone'          => '380950000001'
}
);
Init("my_public_key", "my_private_key")
Api("request", map[string]interface{}{
    "action": "agent_info_user",
    "version": 3,
    "public_key": PublicKey,
    "phone": "380950000001",
})
Options for generating data:
Main
Parameter Required Type Description
version Required Number Version API. Current value - 3
public_key Required String Public key - the store identifier. You can get the key in the store settings
action Required String agent_info_user
phone Required String Shop phone number
Example response:
{
  "result" : "ok",
  "data"   : [{
  "public_key": "i000000000",
  "email": "test@gmail.com",
  "name": "Shop",
  "url": "http://test.com",
  "description": "site description",
  "logo": null,
  "create_date": 1491294687862,
  "update_date": 1491294687862,
  "role": "undefined",
  "blocked": false
  }]    
}
Response parameters
Parameter Type Description
blocked String Company block status
create_date String Date of payment creation
description String Payment description
email String The sender's email
logo String Company's logo
name String Company name
public_key String Shop public key
result String The result of a request ok or error
role String The role of the user in the store who requested information
update_date String Date of information update on the company
url String URL of company