Back to Collection Items
IncludeFile "CkJsonObject.pb"
IncludeFile "CkStringBuilder.pb"
IncludeFile "CkHttp.pb"
IncludeFile "CkHttpResponse.pb"
Procedure ChilkatExample()
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
http.i = CkHttp::ckCreate()
If http.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
success.i
CkHttp::setCkBasicAuth(http, 1)
CkHttp::setCkLogin(http, "{{secretId}}")
CkHttp::setCkPassword(http, "{{secretPassword}}")
queryParams.i = CkJsonObject::ckCreate()
If queryParams.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
CkJsonObject::ckUpdateInt(queryParams,"page",1)
resp.i = CkHttp::ckQuickRequestParams(http,"GET","https://domain.com/api/transactions/",queryParams)
If CkHttp::ckLastMethodSuccess(http) = 0
Debug CkHttp::ckLastErrorText(http)
CkHttp::ckDispose(http)
CkJsonObject::ckDispose(queryParams)
ProcedureReturn
EndIf
sbResponseBody.i = CkStringBuilder::ckCreate()
If sbResponseBody.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
CkHttpResponse::ckGetBodySb(resp,sbResponseBody)
jResp.i = CkJsonObject::ckCreate()
If jResp.i = 0
Debug "Failed to create object."
ProcedureReturn
EndIf
CkJsonObject::ckLoadSb(jResp,sbResponseBody)
CkJsonObject::setCkEmitCompact(jResp, 0)
Debug "Response Body:"
Debug CkJsonObject::ckEmit(jResp)
respStatusCode.i = CkHttpResponse::ckStatusCode(resp)
Debug "Response Status Code = " + Str(respStatusCode)
If respStatusCode >= 400
Debug "Response Header:"
Debug CkHttpResponse::ckHeader(resp)
Debug "Failed."
CkHttpResponse::ckDispose(resp)
CkHttp::ckDispose(http)
CkJsonObject::ckDispose(queryParams)
CkStringBuilder::ckDispose(sbResponseBody)
CkJsonObject::ckDispose(jResp)
ProcedureReturn
EndIf
CkHttpResponse::ckDispose(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
id.s
Id.s
Value.s
InstitutionValue.s
Collected_atValue.s
CategoryValue.s
TypeValue.s
NameValue.s
NumberValue.s
BalanceValue.s
CurrencyValue.s
Bank_product_idValue.s
Internal_identificationValue.s
Public_identification_nameValue.s
Public_identification_valueValue.s
Last_accessed_atValue.s
Credit_dataValue.s
Loan_dataValue.s
Funds_dataValue.s
Gig_payment_dataValue.s
collected_at.s
value_date.s
accounting_date.s
amount.s
balance.s
v_currency.s
description.s
observations.s
category.s
reference.s
v_type.s
status.s
Pickup_at.s
Dropoff_at.s
Request_at.s
Pickup_address.s
Dropoff_address.s
Pickup_latitude.s
Pickup_longitude.s
Dropoff_latitude.s
Dropoff_longitude.s
Distance.s
Payment_method.s
Vehicle_type.s
Merchant_type.s
Collected_at.s
Bill_name.s
j.i
count_j.i
value.s
count.s = CkJsonObject::ckStringOf(jResp,"count")
v_next.s = CkJsonObject::ckStringOf(jResp,"next")
previous.s = CkJsonObject::ckStringOf(jResp,"previous")
i.i = 0
count_i.i = CkJsonObject::ckSizeOfArray(jResp,"results")
While i < count_i
CkJsonObject::setCkI(jResp, i)
id = CkJsonObject::ckStringOf(jResp,"results[i].id")
Id = CkJsonObject::ckStringOf(jResp,"results[i].account.id")
Value = CkJsonObject::ckStringOf(jResp,"results[i].account.link.value")
InstitutionValue = CkJsonObject::ckStringOf(jResp,"results[i].account.institution.value")
Collected_atValue = CkJsonObject::ckStringOf(jResp,"results[i].account.collected_at.value")
CategoryValue = CkJsonObject::ckStringOf(jResp,"results[i].account.category.value")
TypeValue = CkJsonObject::ckStringOf(jResp,"results[i].account.type.value")
NameValue = CkJsonObject::ckStringOf(jResp,"results[i].account.name.value")
NumberValue = CkJsonObject::ckStringOf(jResp,"results[i].account.number.value")
BalanceValue = CkJsonObject::ckStringOf(jResp,"results[i].account.balance.value")
CurrencyValue = CkJsonObject::ckStringOf(jResp,"results[i].account.currency.value")
Bank_product_idValue = CkJsonObject::ckStringOf(jResp,"results[i].account.bank_product_id.value")
Internal_identificationValue = CkJsonObject::ckStringOf(jResp,"results[i].account.internal_identification.value")
Public_identification_nameValue = CkJsonObject::ckStringOf(jResp,"results[i].account.public_identification_name.value")
Public_identification_valueValue = CkJsonObject::ckStringOf(jResp,"results[i].account.public_identification_value.value")
Last_accessed_atValue = CkJsonObject::ckStringOf(jResp,"results[i].account.last_accessed_at.value")
Credit_dataValue = CkJsonObject::ckStringOf(jResp,"results[i].account.credit_data.value")
Loan_dataValue = CkJsonObject::ckStringOf(jResp,"results[i].account.loan_data.value")
Funds_dataValue = CkJsonObject::ckStringOf(jResp,"results[i].account.funds_data.value")
Gig_payment_dataValue = CkJsonObject::ckStringOf(jResp,"results[i].account.gig_payment_data.value")
collected_at = CkJsonObject::ckStringOf(jResp,"results[i].collected_at")
value_date = CkJsonObject::ckStringOf(jResp,"results[i].value_date")
accounting_date = CkJsonObject::ckStringOf(jResp,"results[i].accounting_date")
amount = CkJsonObject::ckStringOf(jResp,"results[i].amount")
balance = CkJsonObject::ckStringOf(jResp,"results[i].balance")
v_currency = CkJsonObject::ckStringOf(jResp,"results[i].currency")
description = CkJsonObject::ckStringOf(jResp,"results[i].description")
observations = CkJsonObject::ckStringOf(jResp,"results[i].observations")
category = CkJsonObject::ckStringOf(jResp,"results[i].category")
reference = CkJsonObject::ckStringOf(jResp,"results[i].reference")
v_type = CkJsonObject::ckStringOf(jResp,"results[i].type")
status = CkJsonObject::ckStringOf(jResp,"results[i].status")
Pickup_at = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.pickup_at")
Dropoff_at = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.dropoff_at")
Request_at = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.request_at")
Pickup_address = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.pickup_address")
Dropoff_address = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.dropoff_address")
Pickup_latitude = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.pickup_latitude")
Pickup_longitude = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.pickup_longitude")
Dropoff_latitude = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.dropoff_latitude")
Dropoff_longitude = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.dropoff_longitude")
Distance = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.distance")
Payment_method = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.payment_method")
Vehicle_type = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.vehicle_type")
Merchant_type = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.merchant_type")
Collected_at = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.collected_at")
Bill_name = CkJsonObject::ckStringOf(jResp,"results[i].credit_card_data.bill_name")
j = 0
count_j = CkJsonObject::ckSizeOfArray(jResp,"results[i].gig_data.breakdown")
While j < count_j
CkJsonObject::setCkJ(jResp, j)
value = CkJsonObject::ckStringOf(jResp,"results[i].gig_data.breakdown[j].value")
j = j + 1
Wend
i = i + 1
Wend
CkHttp::ckDispose(http)
CkJsonObject::ckDispose(queryParams)
CkStringBuilder::ckDispose(sbResponseBody)
CkJsonObject::ckDispose(jResp)
ProcedureReturn
EndProcedure
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]"
}
]
}