curl --request GET \
--url https://api.lbpay.example.com/v1/credit-line \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lbpay.example.com/v1/credit-line"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lbpay.example.com/v1/credit-line', 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.lbpay.example.com/v1/credit-line",
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.lbpay.example.com/v1/credit-line"
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.lbpay.example.com/v1/credit-line")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lbpay.example.com/v1/credit-line")
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{
"contractedLimit": {
"currency": "USD",
"amount": "1000.00"
},
"utilized": {
"currency": "USD",
"amount": "1000.00"
},
"reserved": {
"currency": "USD",
"amount": "1000.00"
},
"available": {
"currency": "USD",
"amount": "1000.00"
},
"status": "AVAILABLE",
"checkedAt": "2023-11-07T05:31:56Z",
"nextDueAt": "2023-11-07T05:31:56Z"
}{
"code": "QUOTE_EXPIRED",
"message": "<string>",
"requestId": "<string>",
"retryable": true,
"details": [
{
"field": "<string>",
"reason": "<string>"
}
]
}{
"code": "QUOTE_EXPIRED",
"message": "<string>",
"requestId": "<string>",
"retryable": true,
"details": [
{
"field": "<string>",
"reason": "<string>"
}
]
}Consultar linha de crédito
Limite, utilização, reserva, disponível e capacidade atual de antecipação. Não se aplica a remessas PREFUNDED.
curl --request GET \
--url https://api.lbpay.example.com/v1/credit-line \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lbpay.example.com/v1/credit-line"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lbpay.example.com/v1/credit-line', 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.lbpay.example.com/v1/credit-line",
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.lbpay.example.com/v1/credit-line"
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.lbpay.example.com/v1/credit-line")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lbpay.example.com/v1/credit-line")
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{
"contractedLimit": {
"currency": "USD",
"amount": "1000.00"
},
"utilized": {
"currency": "USD",
"amount": "1000.00"
},
"reserved": {
"currency": "USD",
"amount": "1000.00"
},
"available": {
"currency": "USD",
"amount": "1000.00"
},
"status": "AVAILABLE",
"checkedAt": "2023-11-07T05:31:56Z",
"nextDueAt": "2023-11-07T05:31:56Z"
}{
"code": "QUOTE_EXPIRED",
"message": "<string>",
"requestId": "<string>",
"retryable": true,
"details": [
{
"field": "<string>",
"reason": "<string>"
}
]
}{
"code": "QUOTE_EXPIRED",
"message": "<string>",
"requestId": "<string>",
"retryable": true,
"details": [
{
"field": "<string>",
"reason": "<string>"
}
]
}Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resposta
Linha de crédito
Linha de crédito da MSB, usada somente pelas remessas com funding CREDIT (antecipação do BRL). Limite consolidado. Não se aplica ao PREFUNDED: o saldo em USD nos EUA é consultado na USD Wallet (/v1/wallets).
Limite contratado.
Show child attributes
Show child attributes
Antecipações já feitas e ainda não liquidadas.
Show child attributes
Show child attributes
Reservado por remessas criadas cujo funding ainda não foi confirmado.
Show child attributes
Show child attributes
contractedLimit − utilized − reserved.
Show child attributes
Show child attributes
Capacidade de antecipar agora. Pode ser LIMITED ou UNAVAILABLE mesmo com limite disponível, quando a capacidade operacional de antecipação está reduzida; nesse caso o withdrawal com CREDIT é recusado.
AVAILABLE, LIMITED, UNAVAILABLE Próximo vencimento de liquidação.

