Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
EXEC sp_OASetProperty @http, 'BasicAuth', 1
EXEC sp_OASetProperty @http, 'Login', '{{secretId}}'
EXEC sp_OASetProperty @http, 'Password', '{{secretPassword}}'
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://domain.com/api/statements/', @sbResponseBody
IF @success = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "count": "<integer>",
-- "next": "<string>",
-- "previous": "<string>",
-- "results": [
-- {
-- "id": "<uuid>",
-- "link": "<string>",
-- "account": {
-- "id": "<uuid>",
-- "name": "<string>",
-- "category": "minim amet pariatur",
-- "currency": "<string>"
-- },
-- "collected_at": "<dateTime>",
-- "account_number": "<string>",
-- "client_number": "<string>",
-- "RFC": "<string>",
-- "CLABE": "<string>",
-- "period_start_date": "<date>",
-- "period_end_date": "<date>",
-- "cut_date": "<string>",
-- "final_balance": "<number>",
-- "previous_balance": "<number>",
-- "total_inflow_amount": "<number>",
-- "total_outflow_amount": "<number>",
-- "total_inflow_transactions": "<number>",
-- "total_outflow_transactions": "<number>",
-- "transactions": [
-- {
-- "collected_at": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "accounting_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "value_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "reference": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "observations": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "additional_data": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "balance": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "status": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "type": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "currency": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "description": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "internal_identification": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "account": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- {
-- "collected_at": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "accounting_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "value_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "reference": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "observations": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "additional_data": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "balance": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "status": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "type": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "currency": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "description": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "internal_identification": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "account": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- }
-- ],
-- "pdf": "<binary>"
-- },
-- {
-- "id": "<uuid>",
-- "link": "<string>",
-- "account": {
-- "id": "<uuid>",
-- "name": "<string>",
-- "category": "veniam occaecat",
-- "currency": "<string>"
-- },
-- "collected_at": "<dateTime>",
-- "account_number": "<string>",
-- "client_number": "<string>",
-- "RFC": "<string>",
-- "CLABE": "<string>",
-- "period_start_date": "<date>",
-- "period_end_date": "<date>",
-- "cut_date": "<string>",
-- "final_balance": "<number>",
-- "previous_balance": "<number>",
-- "total_inflow_amount": "<number>",
-- "total_outflow_amount": "<number>",
-- "total_inflow_transactions": "<number>",
-- "total_outflow_transactions": "<number>",
-- "transactions": [
-- {
-- "collected_at": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "accounting_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "value_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "reference": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "observations": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "additional_data": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "balance": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "status": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "type": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "currency": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "description": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "internal_identification": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "account": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- },
-- {
-- "collected_at": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "accounting_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "value_date": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "reference": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "observations": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "additional_data": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "balance": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "status": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "type": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "currency": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "description": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "internal_identification": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- },
-- "account": {
-- "value": "<Error: Too many levels of nesting to fake this schema>"
-- }
-- }
-- ],
-- "pdf": "<binary>"
-- }
-- ]
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @id nvarchar(4000)
DECLARE @link nvarchar(4000)
DECLARE @Id nvarchar(4000)
DECLARE @Name nvarchar(4000)
DECLARE @Category nvarchar(4000)
DECLARE @v_Currency nvarchar(4000)
DECLARE @collected_at nvarchar(4000)
DECLARE @account_number nvarchar(4000)
DECLARE @client_number nvarchar(4000)
DECLARE @RFC nvarchar(4000)
DECLARE @CLABE nvarchar(4000)
DECLARE @period_start_date nvarchar(4000)
DECLARE @period_end_date nvarchar(4000)
DECLARE @cut_date nvarchar(4000)
DECLARE @final_balance nvarchar(4000)
DECLARE @previous_balance nvarchar(4000)
DECLARE @total_inflow_amount nvarchar(4000)
DECLARE @total_outflow_amount nvarchar(4000)
DECLARE @total_inflow_transactions nvarchar(4000)
DECLARE @total_outflow_transactions nvarchar(4000)
DECLARE @pdf nvarchar(4000)
DECLARE @j int
DECLARE @count_j int
DECLARE @Value nvarchar(4000)
DECLARE @accounting_dateValue nvarchar(4000)
DECLARE @value_dateValue nvarchar(4000)
DECLARE @referenceValue nvarchar(4000)
DECLARE @observationsValue nvarchar(4000)
DECLARE @additional_dataValue nvarchar(4000)
DECLARE @balanceValue nvarchar(4000)
DECLARE @statusValue nvarchar(4000)
DECLARE @typeValue nvarchar(4000)
DECLARE @currencyValue nvarchar(4000)
DECLARE @descriptionValue nvarchar(4000)
DECLARE @internal_identificationValue nvarchar(4000)
DECLARE @accountValue nvarchar(4000)
DECLARE @count nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @count OUT, 'count'
DECLARE @v_next nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_next OUT, 'next'
DECLARE @previous nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @previous OUT, 'previous'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'results'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'results[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @link OUT, 'results[i].link'
EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'results[i].account.id'
EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'results[i].account.name'
EXEC sp_OAMethod @jResp, 'StringOf', @Category OUT, 'results[i].account.category'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Currency OUT, 'results[i].account.currency'
EXEC sp_OAMethod @jResp, 'StringOf', @collected_at OUT, 'results[i].collected_at'
EXEC sp_OAMethod @jResp, 'StringOf', @account_number OUT, 'results[i].account_number'
EXEC sp_OAMethod @jResp, 'StringOf', @client_number OUT, 'results[i].client_number'
EXEC sp_OAMethod @jResp, 'StringOf', @RFC OUT, 'results[i].RFC'
EXEC sp_OAMethod @jResp, 'StringOf', @CLABE OUT, 'results[i].CLABE'
EXEC sp_OAMethod @jResp, 'StringOf', @period_start_date OUT, 'results[i].period_start_date'
EXEC sp_OAMethod @jResp, 'StringOf', @period_end_date OUT, 'results[i].period_end_date'
EXEC sp_OAMethod @jResp, 'StringOf', @cut_date OUT, 'results[i].cut_date'
EXEC sp_OAMethod @jResp, 'StringOf', @final_balance OUT, 'results[i].final_balance'
EXEC sp_OAMethod @jResp, 'StringOf', @previous_balance OUT, 'results[i].previous_balance'
EXEC sp_OAMethod @jResp, 'StringOf', @total_inflow_amount OUT, 'results[i].total_inflow_amount'
EXEC sp_OAMethod @jResp, 'StringOf', @total_outflow_amount OUT, 'results[i].total_outflow_amount'
EXEC sp_OAMethod @jResp, 'StringOf', @total_inflow_transactions OUT, 'results[i].total_inflow_transactions'
EXEC sp_OAMethod @jResp, 'StringOf', @total_outflow_transactions OUT, 'results[i].total_outflow_transactions'
EXEC sp_OAMethod @jResp, 'StringOf', @pdf OUT, 'results[i].pdf'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].transactions'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'results[i].transactions[j].collected_at.value'
EXEC sp_OAMethod @jResp, 'StringOf', @accounting_dateValue OUT, 'results[i].transactions[j].accounting_date.value'
EXEC sp_OAMethod @jResp, 'StringOf', @value_dateValue OUT, 'results[i].transactions[j].value_date.value'
EXEC sp_OAMethod @jResp, 'StringOf', @referenceValue OUT, 'results[i].transactions[j].reference.value'
EXEC sp_OAMethod @jResp, 'StringOf', @observationsValue OUT, 'results[i].transactions[j].observations.value'
EXEC sp_OAMethod @jResp, 'StringOf', @additional_dataValue OUT, 'results[i].transactions[j].additional_data.value'
EXEC sp_OAMethod @jResp, 'StringOf', @balanceValue OUT, 'results[i].transactions[j].balance.value'
EXEC sp_OAMethod @jResp, 'StringOf', @statusValue OUT, 'results[i].transactions[j].status.value'
EXEC sp_OAMethod @jResp, 'StringOf', @typeValue OUT, 'results[i].transactions[j].type.value'
EXEC sp_OAMethod @jResp, 'StringOf', @currencyValue OUT, 'results[i].transactions[j].currency.value'
EXEC sp_OAMethod @jResp, 'StringOf', @descriptionValue OUT, 'results[i].transactions[j].description.value'
EXEC sp_OAMethod @jResp, 'StringOf', @internal_identificationValue OUT, 'results[i].transactions[j].internal_identification.value'
EXEC sp_OAMethod @jResp, 'StringOf', @accountValue OUT, 'results[i].transactions[j].account.value'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X GET
-u '{{secretId}}:{{secretPassword}}'
https://domain.com/api/statements/
Postman Collection Item JSON
{
"name": "List",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{baseUrl}}/api/statements/",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"statements",
""
]
},
"description": "Get a paginated list of all existing statements in your Belvo account. We return up to 100 results per page."
},
"response": [
{
"name": "Ok",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/api/statements",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"statements"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n\t\"count\": \"<integer>\",\n\t\"next\": \"<string>\",\n\t\"previous\": \"<string>\",\n\t\"results\": [\n\t\t{\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"link\": \"<string>\",\n\t\t\t\"account\": {\n\t\t\t\t\"id\": \"<uuid>\",\n\t\t\t\t\"name\": \"<string>\",\n\t\t\t\t\"category\": \"minim amet pariatur\",\n\t\t\t\t\"currency\": \"<string>\"\n\t\t\t},\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"account_number\": \"<string>\",\n\t\t\t\"client_number\": \"<string>\",\n\t\t\t\"RFC\": \"<string>\",\n\t\t\t\"CLABE\": \"<string>\",\n\t\t\t\"period_start_date\": \"<date>\",\n\t\t\t\"period_end_date\": \"<date>\",\n\t\t\t\"cut_date\": \"<string>\",\n\t\t\t\"final_balance\": \"<number>\",\n\t\t\t\"previous_balance\": \"<number>\",\n\t\t\t\"total_inflow_amount\": \"<number>\",\n\t\t\t\"total_outflow_amount\": \"<number>\",\n\t\t\t\"total_inflow_transactions\": \"<number>\",\n\t\t\t\"total_outflow_transactions\": \"<number>\",\n\t\t\t\"transactions\": [\n\t\t\t\t{\n\t\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"accounting_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"value_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"reference\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"observations\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"additional_data\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"balance\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"account\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"accounting_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"value_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"reference\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"observations\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"additional_data\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"balance\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"account\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"pdf\": \"<binary>\"\n\t\t},\n\t\t{\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"link\": \"<string>\",\n\t\t\t\"account\": {\n\t\t\t\t\"id\": \"<uuid>\",\n\t\t\t\t\"name\": \"<string>\",\n\t\t\t\t\"category\": \"veniam occaecat\",\n\t\t\t\t\"currency\": \"<string>\"\n\t\t\t},\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"account_number\": \"<string>\",\n\t\t\t\"client_number\": \"<string>\",\n\t\t\t\"RFC\": \"<string>\",\n\t\t\t\"CLABE\": \"<string>\",\n\t\t\t\"period_start_date\": \"<date>\",\n\t\t\t\"period_end_date\": \"<date>\",\n\t\t\t\"cut_date\": \"<string>\",\n\t\t\t\"final_balance\": \"<number>\",\n\t\t\t\"previous_balance\": \"<number>\",\n\t\t\t\"total_inflow_amount\": \"<number>\",\n\t\t\t\"total_outflow_amount\": \"<number>\",\n\t\t\t\"total_inflow_transactions\": \"<number>\",\n\t\t\t\"total_outflow_transactions\": \"<number>\",\n\t\t\t\"transactions\": [\n\t\t\t\t{\n\t\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"accounting_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"value_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"reference\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"observations\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"additional_data\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"balance\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"account\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"accounting_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"value_date\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"reference\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"observations\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"additional_data\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"balance\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"currency\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t},\n\t\t\t\t\t\"account\": {\n\t\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"pdf\": \"<binary>\"\n\t\t}\n\t]\n}"
},
{
"name": "Unauthorized",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/api/statements",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"statements"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "[\n\t{\n\t\t\"code\": \"<string>\",\n\t\t\"message\": \"<string>\",\n\t\t\"request_id\": \"<string>\"\n\t},\n\t{\n\t\t\"code\": \"<string>\",\n\t\t\"message\": \"<string>\",\n\t\t\"request_id\": \"<string>\"\n\t}\n]"
}
]
}