Obter loja
curl --request GET \
--url https://api.liquerapay.com/me/store \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liquerapay.com/me/store"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liquerapay.com/me/store', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.liquerapay.com/me/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/me/store"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liquerapay.com/me/store")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/me/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "clx1a2b3c4d5e6f7g8h9i0j",
"name": "Minha Loja LTDA",
"balance": {
"available": 12500,
"pending": 3000,
"blocked": 0
}
},
"error": null,
"success": true
}{
"error": "UNAUTHORIZED",
"message": "Token inválido ou ausente",
"success": false
}{
"error": "FORBIDDEN",
"message": "Saques estão temporariamente bloqueados para este merchant",
"success": false
}Loja
Obter Loja
Retorna os dados e o saldo da sua loja.
id— identificador da loja (oiddo seu merchant).name— nome da loja. É derivado dos seus dados de cadastro (KYC), na ordem: nome fantasia → razão social → nome completo → nome do usuário. Pode sernullenquanto o cadastro não estiver completo.balance— saldo da loja em centavos:available(disponível para saque),pending(aguardando confirmação) eblocked(retido para análise/disputa).
GET
/
me
/
store
Obter loja
curl --request GET \
--url https://api.liquerapay.com/me/store \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.liquerapay.com/me/store"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.liquerapay.com/me/store', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.liquerapay.com/me/store",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.liquerapay.com/me/store"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liquerapay.com/me/store")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liquerapay.com/me/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "clx1a2b3c4d5e6f7g8h9i0j",
"name": "Minha Loja LTDA",
"balance": {
"available": 12500,
"pending": 3000,
"blocked": 0
}
},
"error": null,
"success": true
}{
"error": "UNAUTHORIZED",
"message": "Token inválido ou ausente",
"success": false
}{
"error": "FORBIDDEN",
"message": "Saques estão temporariamente bloqueados para este merchant",
"success": false
}Retorna os dados e o saldo da sua loja.
Exemplo de resposta:
{
"data": {
"id": "clx1a2b3c4d5e6f7g8h9i0j",
"name": "Minha Loja LTDA",
"balance": {
"available": 12500,
"pending": 3000,
"blocked": 0
}
},
"error": null,
"success": true
}
Os valores de
balance estão em centavos (12500 = R$ 125,00) — mesma
convenção de GET /me/balance.name pode vir null enquanto o cadastro (KYC) não estiver completo. Ver
Referência para a ordem de derivação do nome.Authorizations
Autentique suas requisições enviando o token no header
Authorization: Bearer <token>.
O token pode ser:
- Uma API key com prefixo
liq_, gerada em Dashboard Liquerapay → Configurações → API Keys. - Um JWT retornado pelo login do dashboard (uso interno).
Não há distinção de ambiente — toda chave vale para o único ambiente disponível (produção).