Public
Receive a receipt
Send a receipt to the specified client's email

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\" : \"ticket\",
    \"version\" : 3,
    \"public_key\" : \"${PUBLIC_KEY}\", 
    \"order_id\" : \"order_id_1\",
    \"email\" : \"email@gmail.com\"
}"
# 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'    => 'ticket',
'version'   => '3',
'order_id' => 'order_id_1',
'email'   => 'email@gmail.com'
));
HashMap<String, String> params = new HashMap<String, String>();
params.put("action", "ticket");
params.put("version", "3");
params.put("order_id", "order_id_1");
params.put("email", "email@gmail.com");

LiqPay liqpay = new LiqPay(PUBLIC_KEY, PRIVATE_KEY);
HashMap<String, Object> res = liqpay.api("request", params);		
System.out.println(res.get("status"));
from liqpay import LiqPay
liqpay = LiqPay(public_key, private_key)
res = liqpay.api("request", {
"action"    : "ticket",
"version"   : "3",
"order_id" : "order_id_1",
"email"   : "email@gmail.com"
})
liqpay = Liqpay::Liqpay.new(
:public_key  => 'public_key',
:private_key => 'private_key'
)
res = liqpay.api("request", {
:action    => "ticket",
:version   => "3",
:order_id => "order_id_1",
:email   => "email@gmail.com"
})
LiqPay = liqpay:init(PublicKey, PrivateKey),
Res = liqpay:api("request", [
{<<"action">>,    <<"ticket">>},
{<<"version">>,   <<"3">>},
{<<"order_id">>, <<"order_id_1">>},
{<<"email">>,   <<"email@gmail.com">>}
], LiqPay)
var LiqPay = require('liqpay');
var liqpay = new LiqPay(public_key, private_key);
liqpay.api("request", {
"action"    : "ticket",
"version"   : "3",
"order_id" : "order_id_1",
"email"   : "email@gmail.com"
}, function( json ){
console.log( json.status );
});
my $liqpay = Liqpay->new($public_key,$private_key);
my $res = $liqpay->api("request",
{
'action'    => 'ticket',
'version'   => '3',
'order_id' => 'order_id_1',
'email'   => 'email@gmail.com'
}
);
Init("my_public_key", "my_private_key")
Api("request", map[string]interface{}{
    "action": "ticket",
    "version": 3,
    "public_key": PublicKey,
    "order_id": "order_id_1",
    "email": "email@gmail.com",
})
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 ticket
email Required String Email for reciept sending
order_id Required String order_id of successful payment
payment_id Optional Number Payment id in LiqPay system
language Optional String Customer's language ru, uk, en
stamp Optional Boolean
Sign of receipt with stamp.
Possible values:
true - send receipt with print.
false - send receipt without printing.
Example response:
{
  "result": "ok"
}
Response parameters
Parameter Type Description
result String The result of a request ok or error