Consultar o extrato de uma conta
GET
/api/seller/external/v1/finance/report/statement
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/finance/report/statement?bank_account_id=architecto&from=architecto&to=architecto&include_reversed=" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/finance/report/statement");
const params = { "bank_account_id": "architecto", "from": "architecto", "to": "architecto", "include_reversed": "0",};Object.keys(params) .forEach(key => url.searchParams.append(key, params[key]));
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/finance/report/statement';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'bank_account_id' => 'architecto', 'from' => 'architecto', 'to' => 'architecto', 'include_reversed' => '0', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/finance/report/statement'params = { 'bank_account_id': 'architecto', 'from': 'architecto', 'to': 'architecto', 'include_reversed': '0',}headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers, params=params)response.json()Extrato de uma conta bancária ou caixa: saldo inicial, movimentos com saldo acumulado e saldo final.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”bank_account_id
Conta do Seller. Padrão: a primeira ativa.
string
Conta do Seller. Padrão: a primeira ativa.
from
Date YYYY-MM-DD. Padrão: dia 1 do mês corrente.
string
Date YYYY-MM-DD. Padrão: dia 1 do mês corrente.
to
Date YYYY-MM-DD. Padrão: hoje (fuso do Seller).
string
Date YYYY-MM-DD. Padrão: hoje (fuso do Seller).
include_reversed
1 = lista também os estornados (riscados, sem mexer no saldo). Padrão: não.
boolean
1 = lista também os estornados (riscados, sem mexer no saldo). Padrão: não.
