Chilkat Online Tools

SQL Server / Belvo API Docs / List

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
    DECLARE @iTmp0 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 @queryParams int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @queryParams OUT

    EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'page', 1

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://domain.com/api/transactions/', @queryParams
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        RETURN
      END

    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 @resp, 'GetBodySb', @success OUT, @sbResponseBody

    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 @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "count": "<integer>",
    --   "next": "<string>",
    --   "previous": "<string>",
    --   "results": [
    --     {
    --       "id": "<uuid>",
    --       "account": {
    --         "id": "<uuid>",
    --         "link": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "institution": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "collected_at": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "category": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "type": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "name": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "number": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "balance": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "currency": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "bank_product_id": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "internal_identification": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "public_identification_name": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "public_identification_value": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "last_accessed_at": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "credit_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "loan_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "funds_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "gig_payment_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       },
    --       "collected_at": "<date>",
    --       "value_date": "<string>",
    --       "accounting_date": "<date>",
    --       "amount": "<number>",
    --       "balance": "<number>",
    --       "currency": "<string>",
    --       "description": "<string>",
    --       "observations": "<string>",
    --       "category": "<string>",
    --       "reference": "<string>",
    --       "type": "ipsum quis",
    --       "status": "nostrud",
    --       "gig_data": {
    --         "pickup_at": "<dateTime>",
    --         "dropoff_at": "<dateTime>",
    --         "request_at": "<dateTime>",
    --         "pickup_address": "<string>",
    --         "dropoff_address": "<string>",
    --         "pickup_latitude": "<number>",
    --         "pickup_longitude": "<number>",
    --         "dropoff_latitude": "<number>",
    --         "dropoff_longitude": "<number>",
    --         "distance": "<number>",
    --         "payment_method": "<string>",
    --         "vehicle_type": "<string>",
    --         "merchant_type": "<string>",
    --         "breakdown": [
    --           {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         ],
    --         "collected_at": "<dateTime>"
    --       },
    --       "credit_card_data": {
    --         "bill_name": "<string>"
    --       }
    --     },
    --     {
    --       "id": "<uuid>",
    --       "account": {
    --         "id": "<uuid>",
    --         "link": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "institution": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "collected_at": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "category": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "type": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "name": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "number": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "balance": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "currency": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "bank_product_id": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "internal_identification": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "public_identification_name": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "public_identification_value": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "last_accessed_at": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "credit_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "loan_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "funds_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         },
    --         "gig_payment_data": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       },
    --       "collected_at": "<date>",
    --       "value_date": "<string>",
    --       "accounting_date": "<date>",
    --       "amount": "<number>",
    --       "balance": "<number>",
    --       "currency": "<string>",
    --       "description": "<string>",
    --       "observations": "<string>",
    --       "category": "<string>",
    --       "reference": "<string>",
    --       "type": "labore sunt ad",
    --       "status": "commodo",
    --       "gig_data": {
    --         "pickup_at": "<dateTime>",
    --         "dropoff_at": "<dateTime>",
    --         "request_at": "<dateTime>",
    --         "pickup_address": "<string>",
    --         "dropoff_address": "<string>",
    --         "pickup_latitude": "<number>",
    --         "pickup_longitude": "<number>",
    --         "dropoff_latitude": "<number>",
    --         "dropoff_longitude": "<number>",
    --         "distance": "<number>",
    --         "payment_method": "<string>",
    --         "vehicle_type": "<string>",
    --         "merchant_type": "<string>",
    --         "breakdown": [
    --           {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         ],
    --         "collected_at": "<dateTime>"
    --       },
    --       "credit_card_data": {
    --         "bill_name": "<string>"
    --       }
    --     }
    --   ]
    -- }

    -- 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 @Id nvarchar(4000)

    DECLARE @Value nvarchar(4000)

    DECLARE @InstitutionValue nvarchar(4000)

    DECLARE @Collected_atValue nvarchar(4000)

    DECLARE @CategoryValue nvarchar(4000)

    DECLARE @TypeValue nvarchar(4000)

    DECLARE @NameValue nvarchar(4000)

    DECLARE @NumberValue nvarchar(4000)

    DECLARE @BalanceValue nvarchar(4000)

    DECLARE @CurrencyValue nvarchar(4000)

    DECLARE @Bank_product_idValue nvarchar(4000)

    DECLARE @Internal_identificationValue nvarchar(4000)

    DECLARE @Public_identification_nameValue nvarchar(4000)

    DECLARE @Public_identification_valueValue nvarchar(4000)

    DECLARE @Last_accessed_atValue nvarchar(4000)

    DECLARE @Credit_dataValue nvarchar(4000)

    DECLARE @Loan_dataValue nvarchar(4000)

    DECLARE @Funds_dataValue nvarchar(4000)

    DECLARE @Gig_payment_dataValue nvarchar(4000)

    DECLARE @collected_at nvarchar(4000)

    DECLARE @value_date nvarchar(4000)

    DECLARE @accounting_date nvarchar(4000)

    DECLARE @amount nvarchar(4000)

    DECLARE @balance nvarchar(4000)

    DECLARE @v_currency nvarchar(4000)

    DECLARE @description nvarchar(4000)

    DECLARE @observations nvarchar(4000)

    DECLARE @category nvarchar(4000)

    DECLARE @reference nvarchar(4000)

    DECLARE @v_type nvarchar(4000)

    DECLARE @status nvarchar(4000)

    DECLARE @Pickup_at nvarchar(4000)

    DECLARE @Dropoff_at nvarchar(4000)

    DECLARE @Request_at nvarchar(4000)

    DECLARE @Pickup_address nvarchar(4000)

    DECLARE @Dropoff_address nvarchar(4000)

    DECLARE @Pickup_latitude nvarchar(4000)

    DECLARE @Pickup_longitude nvarchar(4000)

    DECLARE @Dropoff_latitude nvarchar(4000)

    DECLARE @Dropoff_longitude nvarchar(4000)

    DECLARE @Distance nvarchar(4000)

    DECLARE @Payment_method nvarchar(4000)

    DECLARE @Vehicle_type nvarchar(4000)

    DECLARE @Merchant_type nvarchar(4000)

    DECLARE @Collected_at nvarchar(4000)

    DECLARE @Bill_name nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @value 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', @Id OUT, 'results[i].account.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'results[i].account.link.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @InstitutionValue OUT, 'results[i].account.institution.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Collected_atValue OUT, 'results[i].account.collected_at.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @CategoryValue OUT, 'results[i].account.category.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @TypeValue OUT, 'results[i].account.type.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @NameValue OUT, 'results[i].account.name.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @NumberValue OUT, 'results[i].account.number.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @BalanceValue OUT, 'results[i].account.balance.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @CurrencyValue OUT, 'results[i].account.currency.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Bank_product_idValue OUT, 'results[i].account.bank_product_id.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Internal_identificationValue OUT, 'results[i].account.internal_identification.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Public_identification_nameValue OUT, 'results[i].account.public_identification_name.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Public_identification_valueValue OUT, 'results[i].account.public_identification_value.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Last_accessed_atValue OUT, 'results[i].account.last_accessed_at.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Credit_dataValue OUT, 'results[i].account.credit_data.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Loan_dataValue OUT, 'results[i].account.loan_data.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Funds_dataValue OUT, 'results[i].account.funds_data.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Gig_payment_dataValue OUT, 'results[i].account.gig_payment_data.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @collected_at OUT, 'results[i].collected_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @value_date OUT, 'results[i].value_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @accounting_date OUT, 'results[i].accounting_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @amount OUT, 'results[i].amount'
        EXEC sp_OAMethod @jResp, 'StringOf', @balance OUT, 'results[i].balance'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_currency OUT, 'results[i].currency'
        EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'results[i].description'
        EXEC sp_OAMethod @jResp, 'StringOf', @observations OUT, 'results[i].observations'
        EXEC sp_OAMethod @jResp, 'StringOf', @category OUT, 'results[i].category'
        EXEC sp_OAMethod @jResp, 'StringOf', @reference OUT, 'results[i].reference'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'results[i].type'
        EXEC sp_OAMethod @jResp, 'StringOf', @status OUT, 'results[i].status'
        EXEC sp_OAMethod @jResp, 'StringOf', @Pickup_at OUT, 'results[i].gig_data.pickup_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Dropoff_at OUT, 'results[i].gig_data.dropoff_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Request_at OUT, 'results[i].gig_data.request_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Pickup_address OUT, 'results[i].gig_data.pickup_address'
        EXEC sp_OAMethod @jResp, 'StringOf', @Dropoff_address OUT, 'results[i].gig_data.dropoff_address'
        EXEC sp_OAMethod @jResp, 'StringOf', @Pickup_latitude OUT, 'results[i].gig_data.pickup_latitude'
        EXEC sp_OAMethod @jResp, 'StringOf', @Pickup_longitude OUT, 'results[i].gig_data.pickup_longitude'
        EXEC sp_OAMethod @jResp, 'StringOf', @Dropoff_latitude OUT, 'results[i].gig_data.dropoff_latitude'
        EXEC sp_OAMethod @jResp, 'StringOf', @Dropoff_longitude OUT, 'results[i].gig_data.dropoff_longitude'
        EXEC sp_OAMethod @jResp, 'StringOf', @Distance OUT, 'results[i].gig_data.distance'
        EXEC sp_OAMethod @jResp, 'StringOf', @Payment_method OUT, 'results[i].gig_data.payment_method'
        EXEC sp_OAMethod @jResp, 'StringOf', @Vehicle_type OUT, 'results[i].gig_data.vehicle_type'
        EXEC sp_OAMethod @jResp, 'StringOf', @Merchant_type OUT, 'results[i].gig_data.merchant_type'
        EXEC sp_OAMethod @jResp, 'StringOf', @Collected_at OUT, 'results[i].gig_data.collected_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Bill_name OUT, 'results[i].credit_card_data.bill_name'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].gig_data.breakdown'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @value OUT, 'results[i].gig_data.breakdown[j].value'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @queryParams
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -G -d "page=1"
	-u '{{secretId}}:{{secretPassword}}'
https://domain.com/api/transactions/

Postman Collection Item JSON

{
  "name": "List",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/api/transactions/?page=1",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "transactions",
        ""
      ],
      "query": [
        {
          "key": "page",
          "value": "1",
          "description": "A page number within the paginated result set."
        }
      ]
    },
    "description": "Get a paginated list of all existing transactions 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/transactions?page=<integer>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ],
          "query": [
            {
              "key": "page",
              "value": "<integer>"
            }
          ]
        }
      },
      "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\"account\": {\n\t\t\t\t\"id\": \"<uuid>\",\n\t\t\t\t\"link\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"institution\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"category\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"type\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"name\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"number\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"balance\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"currency\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"bank_product_id\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"public_identification_name\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"public_identification_value\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"last_accessed_at\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"credit_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"loan_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"funds_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"gig_payment_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"collected_at\": \"<date>\",\n\t\t\t\"value_date\": \"<string>\",\n\t\t\t\"accounting_date\": \"<date>\",\n\t\t\t\"amount\": \"<number>\",\n\t\t\t\"balance\": \"<number>\",\n\t\t\t\"currency\": \"<string>\",\n\t\t\t\"description\": \"<string>\",\n\t\t\t\"observations\": \"<string>\",\n\t\t\t\"category\": \"<string>\",\n\t\t\t\"reference\": \"<string>\",\n\t\t\t\"type\": \"ipsum quis\",\n\t\t\t\"status\": \"nostrud\",\n\t\t\t\"gig_data\": {\n\t\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\t\"distance\": \"<number>\",\n\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\t\"breakdown\": [\n\t\t\t\t\t{\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{\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\"collected_at\": \"<dateTime>\"\n\t\t\t},\n\t\t\t\"credit_card_data\": {\n\t\t\t\t\"bill_name\": \"<string>\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"account\": {\n\t\t\t\t\"id\": \"<uuid>\",\n\t\t\t\t\"link\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"institution\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"collected_at\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"category\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"type\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"name\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"number\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"balance\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"currency\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"bank_product_id\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"internal_identification\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"public_identification_name\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"public_identification_value\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"last_accessed_at\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"credit_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"loan_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"funds_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t},\n\t\t\t\t\"gig_payment_data\": {\n\t\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"collected_at\": \"<date>\",\n\t\t\t\"value_date\": \"<string>\",\n\t\t\t\"accounting_date\": \"<date>\",\n\t\t\t\"amount\": \"<number>\",\n\t\t\t\"balance\": \"<number>\",\n\t\t\t\"currency\": \"<string>\",\n\t\t\t\"description\": \"<string>\",\n\t\t\t\"observations\": \"<string>\",\n\t\t\t\"category\": \"<string>\",\n\t\t\t\"reference\": \"<string>\",\n\t\t\t\"type\": \"labore sunt ad\",\n\t\t\t\"status\": \"commodo\",\n\t\t\t\"gig_data\": {\n\t\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\t\"distance\": \"<number>\",\n\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\t\"breakdown\": [\n\t\t\t\t\t{\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{\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\"collected_at\": \"<dateTime>\"\n\t\t\t},\n\t\t\t\"credit_card_data\": {\n\t\t\t\t\"bill_name\": \"<string>\"\n\t\t\t}\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/transactions?page=<integer>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ],
          "query": [
            {
              "key": "page",
              "value": "<integer>"
            }
          ]
        }
      },
      "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]"
    }
  ]
}