Private
Information about company
Receiving information about company 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_merchant\",
    \"version\" : 3,
    \"public_key\" : \"${PUBLIC_KEY}\", 
    \"merchant_public_key\" : \"i3111000000\"
}"
# 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_merchant',
'version'             => '3',
'merchant_public_key' => 'i3111000000'
));
HashMap<String, String> params = new HashMap<String, String>();
params.put("action", "agent_info_merchant");
params.put("version", "3");
params.put("merchant_public_key", "i3111000000");

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_merchant",
"version"             : "3",
"merchant_public_key" : "i3111000000"
})
liqpay = Liqpay::Liqpay.new(
:public_key  => 'public_key',
:private_key => 'private_key'
)
res = liqpay.api("request", {
:action              => "agent_info_merchant",
:version             => "3", 
:merchant_public_key => "i3111000000"
})
LiqPay = liqpay:init(PublicKey, PrivateKey),
Res = liqpay:api("request", [
{<<"action">>,              <<"agent_info_merchant">>},
{<<"version">>,             <<"3">>}, 
{<<"merchant_public_key">>, <<"i3111000000">>}
], LiqPay).
var LiqPay = require('liqpay');
var liqpay = new LiqPay(public_key, private_key);
liqpay.api("request", {
"action"              : "agent_info_merchant",
"version"             : "3",
"merchant_public_key" : "i3111000000"
}, function( json ){
console.log( json.result );
});
my $liqpay = Liqpay->new($public_key,$private_key);
my $res = $liqpay->api("request",
{
'action'              => 'agent_info_merchant',
'version'             => '3',  
'merchant_public_key' => 'i3111000000'
}
);
Init("my_public_key", "my_private_key")
Api("request", map[string]interface{}{
    "action": "agent_info_merchant",
    "version": 3,
    "public_key": PublicKey,
    "merchant_public_key": "i3111000000",
})
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_merchant
merchant_public_key Required String Public_key of agent shop
Example response:
{
  "result": "ok",
  "public_key": "i000000000",
  "email": "test@gmail.com",
  "name": "Site name",
  "url": "site123.site.com",
  "description": "site description",
  "logo": null,
  "phone": "380950000001",
  "refund_way": "card",
  "refund_number": "4731180000000001",
  "mfo": null,
  "okpo": null,
  "company_name": null,
  "create_date": 1501764124764,
  "update_date": 1501764124764,
  "blocked": false
}
Response parameters
Parameter Type Description
blocked String Company block status
company_name String Full company name
create_date String Date of payment creation
description String Payment description
email String The sender's email
logo String Company's logo
mfo String Company accounts MFI
name String Company name
okpo String Company accounts OKPO
phone String Company phone number
public_key String Shop public key
refund_number String The number of the card / account / terminal of the company where the compensation was paid
refund_way String The way in which the refund takes place
result String The result of a request ok or error
status String Possible meaning: activated - the store is activated with refund, wait_accept - the store is activated without refund
update_date String Date of information update on the company
url String URL of company