Consultar o fluxo de caixa
GET
/api/seller/external/v1/finance/report/cash-flow
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/finance/report/cash-flow?granularity=architecto&period=architecto&month=architecto" \ --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/cash-flow");
const params = { "granularity": "architecto", "period": "architecto", "month": "architecto",};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/cash-flow';$response = $client->get( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'query' => [ 'granularity' => 'architecto', 'period' => 'architecto', 'month' => 'architecto', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/finance/report/cash-flow'params = { 'granularity': 'architecto', 'period': 'architecto', 'month': 'architecto',}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()Fluxo de caixa do Financeiro: realizado (baixas) + previsto (em aberto pela expectativa), com saldo encadeado.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”granularity
Month (padrão) | week | day. week/day cobrem só o mês de month.
string
Month (padrão) | week | day. week/day cobrem só o mês de month.
period
Só com granularity=month: current_month | last_month | last_3m | last_6m | last_12m | next_3m | next_6m | ytd | current_year (padrão) | last_year | year:YYYY.
string
Só com granularity=month: current_month | last_month | last_3m | last_6m | last_12m | next_3m | next_6m | ytd | current_year (padrão) | last_year | year:YYYY.
month
YYYY-MM, com granularity=week|day. Padrão: mês corrente.
string
YYYY-MM, com granularity=week|day. Padrão: mês corrente.
