Chilkat Online Tools

unicodeC / Belvo API Docs / Resume

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkJsonArrayW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonArrayW jarrResp;
    int respStatusCode;
    HCkJsonObjectW json;
    const wchar_t *Value;
    const wchar_t *InstitutionValue;
    const wchar_t *Collected_atValue;
    const wchar_t *CategoryValue;
    const wchar_t *TypeValue;
    const wchar_t *NameValue;
    const wchar_t *NumberValue;
    const wchar_t *BalanceValue;
    const wchar_t *CurrencyValue;
    const wchar_t *Bank_product_idValue;
    const wchar_t *Internal_identificationValue;
    const wchar_t *Public_identification_nameValue;
    const wchar_t *Public_identification_valueValue;
    const wchar_t *Last_accessed_atValue;
    const wchar_t *Credit_dataValue;
    const wchar_t *Loan_dataValue;
    const wchar_t *Funds_dataValue;
    const wchar_t *Gig_payment_dataValue;
    const wchar_t *collected_at;
    const wchar_t *value_date;
    const wchar_t *accounting_date;
    const wchar_t *amount;
    const wchar_t *balance;
    const wchar_t *v_currency;
    const wchar_t *description;
    const wchar_t *observations;
    const wchar_t *category;
    const wchar_t *reference;
    const wchar_t *v_type;
    const wchar_t *status;
    const wchar_t *Pickup_at;
    const wchar_t *Dropoff_at;
    const wchar_t *Request_at;
    const wchar_t *Pickup_address;
    const wchar_t *Dropoff_address;
    const wchar_t *Pickup_latitude;
    const wchar_t *Pickup_longitude;
    const wchar_t *Dropoff_latitude;
    const wchar_t *Dropoff_longitude;
    const wchar_t *Distance;
    const wchar_t *Payment_method;
    const wchar_t *Vehicle_type;
    const wchar_t *Merchant_type;
    const wchar_t *Collected_at;
    const wchar_t *Bill_name;
    int j;
    int count_j;
    const wchar_t *value;
    int i;
    int count_i;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttpW_Create();

    CkHttpW_putBasicAuth(http,TRUE);
    CkHttpW_putLogin(http,L"{{secretId}}");
    CkHttpW_putPassword(http,L"{{secretPassword}}");

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "session": "39cd6a88-8ee3-4e59-a861-b8a2187e0f4c",
    //   "token": "1234ab",
    //   "link": "683005d6-f45c-4adb-b289-f1a12f50f80c",
    //   "save_data": true
    // }

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"session",L"39cd6a88-8ee3-4e59-a861-b8a2187e0f4c");
    CkJsonObjectW_UpdateString(json,L"token",L"1234ab");
    CkJsonObjectW_UpdateString(json,L"link",L"683005d6-f45c-4adb-b289-f1a12f50f80c");
    CkJsonObjectW_UpdateBool(json,L"save_data",TRUE);

    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);

    resp = CkHttpW_PTextSb(http,L"PATCH",L"https://domain.com/api/transactions/",sbRequestBody,L"utf-8",L"application/json",FALSE,FALSE);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jarrResp = CkJsonArrayW_Create();
    CkJsonArrayW_LoadSb(jarrResp,sbResponseBody);
    CkJsonArrayW_putEmitCompact(jarrResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonArrayW_emit(jarrResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonArrayW_Dispose(jarrResp);
        return;
    }

    CkHttpResponseW_Dispose(resp);

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

    // [
    //   {
    //     "account": {
    //       "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": "in aliqua exercitation Ut ipsum",
    //     "status": "aliqua veniam in",
    //     "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>"
    //     }
    //   },
    //   {
    //     "account": {
    //       "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": "ad cupidatat nisi",
    //     "status": "eiusmod",
    //     "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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    i = 0;
    count_i = CkJsonArrayW_getSize(jarrResp);
    while (i < count_i) {
        json = CkJsonArrayW_ObjectAt(jarrResp,i);
        Value = CkJsonObjectW_stringOf(json,L"account.link.value");
        InstitutionValue = CkJsonObjectW_stringOf(json,L"account.institution.value");
        Collected_atValue = CkJsonObjectW_stringOf(json,L"account.collected_at.value");
        CategoryValue = CkJsonObjectW_stringOf(json,L"account.category.value");
        TypeValue = CkJsonObjectW_stringOf(json,L"account.type.value");
        NameValue = CkJsonObjectW_stringOf(json,L"account.name.value");
        NumberValue = CkJsonObjectW_stringOf(json,L"account.number.value");
        BalanceValue = CkJsonObjectW_stringOf(json,L"account.balance.value");
        CurrencyValue = CkJsonObjectW_stringOf(json,L"account.currency.value");
        Bank_product_idValue = CkJsonObjectW_stringOf(json,L"account.bank_product_id.value");
        Internal_identificationValue = CkJsonObjectW_stringOf(json,L"account.internal_identification.value");
        Public_identification_nameValue = CkJsonObjectW_stringOf(json,L"account.public_identification_name.value");
        Public_identification_valueValue = CkJsonObjectW_stringOf(json,L"account.public_identification_value.value");
        Last_accessed_atValue = CkJsonObjectW_stringOf(json,L"account.last_accessed_at.value");
        Credit_dataValue = CkJsonObjectW_stringOf(json,L"account.credit_data.value");
        Loan_dataValue = CkJsonObjectW_stringOf(json,L"account.loan_data.value");
        Funds_dataValue = CkJsonObjectW_stringOf(json,L"account.funds_data.value");
        Gig_payment_dataValue = CkJsonObjectW_stringOf(json,L"account.gig_payment_data.value");
        collected_at = CkJsonObjectW_stringOf(json,L"collected_at");
        value_date = CkJsonObjectW_stringOf(json,L"value_date");
        accounting_date = CkJsonObjectW_stringOf(json,L"accounting_date");
        amount = CkJsonObjectW_stringOf(json,L"amount");
        balance = CkJsonObjectW_stringOf(json,L"balance");
        v_currency = CkJsonObjectW_stringOf(json,L"currency");
        description = CkJsonObjectW_stringOf(json,L"description");
        observations = CkJsonObjectW_stringOf(json,L"observations");
        category = CkJsonObjectW_stringOf(json,L"category");
        reference = CkJsonObjectW_stringOf(json,L"reference");
        v_type = CkJsonObjectW_stringOf(json,L"type");
        status = CkJsonObjectW_stringOf(json,L"status");
        Pickup_at = CkJsonObjectW_stringOf(json,L"gig_data.pickup_at");
        Dropoff_at = CkJsonObjectW_stringOf(json,L"gig_data.dropoff_at");
        Request_at = CkJsonObjectW_stringOf(json,L"gig_data.request_at");
        Pickup_address = CkJsonObjectW_stringOf(json,L"gig_data.pickup_address");
        Dropoff_address = CkJsonObjectW_stringOf(json,L"gig_data.dropoff_address");
        Pickup_latitude = CkJsonObjectW_stringOf(json,L"gig_data.pickup_latitude");
        Pickup_longitude = CkJsonObjectW_stringOf(json,L"gig_data.pickup_longitude");
        Dropoff_latitude = CkJsonObjectW_stringOf(json,L"gig_data.dropoff_latitude");
        Dropoff_longitude = CkJsonObjectW_stringOf(json,L"gig_data.dropoff_longitude");
        Distance = CkJsonObjectW_stringOf(json,L"gig_data.distance");
        Payment_method = CkJsonObjectW_stringOf(json,L"gig_data.payment_method");
        Vehicle_type = CkJsonObjectW_stringOf(json,L"gig_data.vehicle_type");
        Merchant_type = CkJsonObjectW_stringOf(json,L"gig_data.merchant_type");
        Collected_at = CkJsonObjectW_stringOf(json,L"gig_data.collected_at");
        Bill_name = CkJsonObjectW_stringOf(json,L"credit_card_data.bill_name");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(json,L"gig_data.breakdown");
        while (j < count_j) {
            CkJsonObjectW_putJ(json,j);
            value = CkJsonObjectW_stringOf(json,L"gig_data.breakdown[j].value");
            j = j + 1;
        }

        CkJsonObjectW_Dispose(json);
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonArrayW_Dispose(jarrResp);

    }

Curl Command

curl -X PATCH
	-u '{{secretId}}:{{secretPassword}}'
	-H "Content-Type: application/json"
	-d '{
    "session": "39cd6a88-8ee3-4e59-a861-b8a2187e0f4c",
    "token": "1234ab",
    "link": "683005d6-f45c-4adb-b289-f1a12f50f80c",
    "save_data": true
}'
https://domain.com/api/transactions/

Postman Collection Item JSON

{
  "name": "Resume",
  "request": {
    "method": "PATCH",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"session\": \"39cd6a88-8ee3-4e59-a861-b8a2187e0f4c\",\n    \"token\": \"1234ab\",\n    \"link\": \"683005d6-f45c-4adb-b289-f1a12f50f80c\",\n    \"save_data\": true\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/api/transactions/",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "transactions",
        ""
      ]
    },
    "description": "Used to resume a Transaction retrieve session that was paused because an MFA token was required by the institution."
  },
  "response": [
    {
      "name": "Ok (when save_data=false)",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "[\n\t{\n\t\t\"account\": {\n\t\t\t\"link\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"institution\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"collected_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"category\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"number\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"balance\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"currency\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"bank_product_id\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"internal_identification\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_value\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"last_accessed_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"credit_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"loan_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"funds_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"gig_payment_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t}\n\t\t},\n\t\t\"collected_at\": \"<date>\",\n\t\t\"value_date\": \"<string>\",\n\t\t\"accounting_date\": \"<date>\",\n\t\t\"amount\": \"<number>\",\n\t\t\"balance\": \"<number>\",\n\t\t\"currency\": \"<string>\",\n\t\t\"description\": \"<string>\",\n\t\t\"observations\": \"<string>\",\n\t\t\"category\": \"<string>\",\n\t\t\"reference\": \"<string>\",\n\t\t\"type\": \"in aliqua exercitation Ut ipsum\",\n\t\t\"status\": \"aliqua veniam in\",\n\t\t\"gig_data\": {\n\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\"distance\": \"<number>\",\n\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\"breakdown\": [\n\t\t\t\t{\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{\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\": \"<dateTime>\"\n\t\t},\n\t\t\"credit_card_data\": {\n\t\t\t\"bill_name\": \"<string>\"\n\t\t}\n\t},\n\t{\n\t\t\"account\": {\n\t\t\t\"link\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"institution\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"collected_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"category\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"number\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"balance\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"currency\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"bank_product_id\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"internal_identification\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_value\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"last_accessed_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"credit_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"loan_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"funds_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"gig_payment_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t}\n\t\t},\n\t\t\"collected_at\": \"<date>\",\n\t\t\"value_date\": \"<string>\",\n\t\t\"accounting_date\": \"<date>\",\n\t\t\"amount\": \"<number>\",\n\t\t\"balance\": \"<number>\",\n\t\t\"currency\": \"<string>\",\n\t\t\"description\": \"<string>\",\n\t\t\"observations\": \"<string>\",\n\t\t\"category\": \"<string>\",\n\t\t\"reference\": \"<string>\",\n\t\t\"type\": \"ad cupidatat nisi\",\n\t\t\"status\": \"eiusmod\",\n\t\t\"gig_data\": {\n\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\"distance\": \"<number>\",\n\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\"breakdown\": [\n\t\t\t\t{\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{\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\": \"<dateTime>\"\n\t\t},\n\t\t\"credit_card_data\": {\n\t\t\t\"bill_name\": \"<string>\"\n\t\t}\n\t}\n]"
    },
    {
      "name": "Created (when save_data=true)",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "[\n\t{\n\t\t\"id\": \"<uuid>\",\n\t\t\"account\": {\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"link\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"institution\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"collected_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"category\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"number\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"balance\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"currency\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"bank_product_id\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"internal_identification\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_value\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"last_accessed_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"credit_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"loan_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"funds_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"gig_payment_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t}\n\t\t},\n\t\t\"collected_at\": \"<date>\",\n\t\t\"value_date\": \"<string>\",\n\t\t\"accounting_date\": \"<date>\",\n\t\t\"amount\": \"<number>\",\n\t\t\"balance\": \"<number>\",\n\t\t\"currency\": \"<string>\",\n\t\t\"description\": \"<string>\",\n\t\t\"observations\": \"<string>\",\n\t\t\"category\": \"<string>\",\n\t\t\"reference\": \"<string>\",\n\t\t\"type\": \"deserun\",\n\t\t\"status\": \"elit tempor aliquip\",\n\t\t\"gig_data\": {\n\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\"distance\": \"<number>\",\n\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\"breakdown\": [\n\t\t\t\t{\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{\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\": \"<dateTime>\"\n\t\t},\n\t\t\"credit_card_data\": {\n\t\t\t\"bill_name\": \"<string>\"\n\t\t}\n\t},\n\t{\n\t\t\"id\": \"<uuid>\",\n\t\t\"account\": {\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"link\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"institution\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"collected_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"category\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"type\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"number\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"balance\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"currency\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"bank_product_id\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"internal_identification\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_name\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"public_identification_value\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"last_accessed_at\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"credit_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"loan_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"funds_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t},\n\t\t\t\"gig_payment_data\": {\n\t\t\t\t\"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n\t\t\t}\n\t\t},\n\t\t\"collected_at\": \"<date>\",\n\t\t\"value_date\": \"<string>\",\n\t\t\"accounting_date\": \"<date>\",\n\t\t\"amount\": \"<number>\",\n\t\t\"balance\": \"<number>\",\n\t\t\"currency\": \"<string>\",\n\t\t\"description\": \"<string>\",\n\t\t\"observations\": \"<string>\",\n\t\t\"category\": \"<string>\",\n\t\t\"reference\": \"<string>\",\n\t\t\"type\": \"amet eiusmod\",\n\t\t\"status\": \"amet exercitation\",\n\t\t\"gig_data\": {\n\t\t\t\"pickup_at\": \"<dateTime>\",\n\t\t\t\"dropoff_at\": \"<dateTime>\",\n\t\t\t\"request_at\": \"<dateTime>\",\n\t\t\t\"pickup_address\": \"<string>\",\n\t\t\t\"dropoff_address\": \"<string>\",\n\t\t\t\"pickup_latitude\": \"<number>\",\n\t\t\t\"pickup_longitude\": \"<number>\",\n\t\t\t\"dropoff_latitude\": \"<number>\",\n\t\t\t\"dropoff_longitude\": \"<number>\",\n\t\t\t\"distance\": \"<number>\",\n\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\"vehicle_type\": \"<string>\",\n\t\t\t\"merchant_type\": \"<string>\",\n\t\t\t\"breakdown\": [\n\t\t\t\t{\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{\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\": \"<dateTime>\"\n\t\t},\n\t\t\"credit_card_data\": {\n\t\t\t\"bill_name\": \"<string>\"\n\t\t}\n\t}\n]"
    },
    {
      "name": "Bad request error",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_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]"
    },
    {
      "name": "Unauthorized",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "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]"
    },
    {
      "name": "Request Timeout",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "Request Timeout",
      "code": 408,
      "_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]"
    },
    {
      "name": "MFA Token Required",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "Precondition Required",
      "code": 428,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n\t\"code\": \"<string>\",\n\t\"message\": \"<string>\",\n\t\"request_id\": \"<uuid>\",\n\t\"session\": \"<uuid>\",\n\t\"expiry\": \"<integer>\",\n\t\"link\": \"<uuid>\",\n\t\"token_generation_data\": {\n\t\t\"instructions\": \"<string>\",\n\t\t\"type\": \"<string>\",\n\t\t\"value\": \"<string>\"\n\t}\n}"
    },
    {
      "name": "Unexpected Error",
      "originalRequest": {
        "method": "PATCH",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/transactions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "transactions"
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_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]"
    }
  ]
}