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
    -- 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/tax-status/', @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": "<uuid>",
    --       "collected_at": "<dateTime>",
    --       "place_and_date_of_issuance": "<string>",
    --       "official_name": "<string>",
    --       "id_cif": "<string>",
    --       "tax_payer_information": {
    --         "rfc": "<string>",
    --         "curp": "<string>",
    --         "name": "<string>",
    --         "first_last_name": "<string>",
    --         "second_last_name": "<string>",
    --         "start_operations_date": "<string>",
    --         "status_padron": "<string>",
    --         "last_status_change_date": "<string>",
    --         "commercial_name": "<string>",
    --         "social_name": "<string>",
    --         "email": "<string>",
    --         "phone": "<string>"
    --       },
    --       "address": {
    --         "postal_code": "<string>",
    --         "street_type": "<string>",
    --         "street": "<string>",
    --         "exterior_number": "<string>",
    --         "interior_number": "<string>",
    --         "suburb": "<string>",
    --         "locality": "<string>",
    --         "municipality": "<string>",
    --         "state": "<string>",
    --         "between_street": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       },
    --       "economic_activity": [
    --         {
    --           "economic_activity": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "order": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "percentage": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         {
    --           "economic_activity": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "order": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "percentage": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         }
    --       ],
    --       "regimens": [
    --         {
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "regimen": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         {
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "regimen": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         }
    --       ],
    --       "obligations": {
    --         "obligation": "<string>",
    --         "expiration": "<string>",
    --         "initial_date": "<string>",
    --         "end_date": "<string>"
    --       },
    --       "personal_information": "<object>",
    --       "digital_stamp": "<string>",
    --       "digital_stamp_chain": "<string>",
    --       "pdf": "<binary>"
    --     },
    --     {
    --       "id": "<uuid>",
    --       "link": "<uuid>",
    --       "collected_at": "<dateTime>",
    --       "place_and_date_of_issuance": "<string>",
    --       "official_name": "<string>",
    --       "id_cif": "<string>",
    --       "tax_payer_information": {
    --         "rfc": "<string>",
    --         "curp": "<string>",
    --         "name": "<string>",
    --         "first_last_name": "<string>",
    --         "second_last_name": "<string>",
    --         "start_operations_date": "<string>",
    --         "status_padron": "<string>",
    --         "last_status_change_date": "<string>",
    --         "commercial_name": "<string>",
    --         "social_name": "<string>",
    --         "email": "<string>",
    --         "phone": "<string>"
    --       },
    --       "address": {
    --         "postal_code": "<string>",
    --         "street_type": "<string>",
    --         "street": "<string>",
    --         "exterior_number": "<string>",
    --         "interior_number": "<string>",
    --         "suburb": "<string>",
    --         "locality": "<string>",
    --         "municipality": "<string>",
    --         "state": "<string>",
    --         "between_street": {
    --           "value": "<Error: Too many levels of nesting to fake this schema>"
    --         }
    --       },
    --       "economic_activity": [
    --         {
    --           "economic_activity": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "order": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "percentage": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         {
    --           "economic_activity": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "order": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "percentage": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         }
    --       ],
    --       "regimens": [
    --         {
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "regimen": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         },
    --         {
    --           "end_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "initial_date": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           },
    --           "regimen": {
    --             "value": "<Error: Too many levels of nesting to fake this schema>"
    --           }
    --         }
    --       ],
    --       "obligations": {
    --         "obligation": "<string>",
    --         "expiration": "<string>",
    --         "initial_date": "<string>",
    --         "end_date": "<string>"
    --       },
    --       "personal_information": "<object>",
    --       "digital_stamp": "<string>",
    --       "digital_stamp_chain": "<string>",
    --       "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 @collected_at nvarchar(4000)

    DECLARE @place_and_date_of_issuance nvarchar(4000)

    DECLARE @official_name nvarchar(4000)

    DECLARE @id_cif nvarchar(4000)

    DECLARE @Rfc nvarchar(4000)

    DECLARE @Curp nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @First_last_name nvarchar(4000)

    DECLARE @Second_last_name nvarchar(4000)

    DECLARE @Start_operations_date nvarchar(4000)

    DECLARE @Status_padron nvarchar(4000)

    DECLARE @Last_status_change_date nvarchar(4000)

    DECLARE @Commercial_name nvarchar(4000)

    DECLARE @Social_name nvarchar(4000)

    DECLARE @v_Email nvarchar(4000)

    DECLARE @Phone nvarchar(4000)

    DECLARE @Postal_code nvarchar(4000)

    DECLARE @Street_type nvarchar(4000)

    DECLARE @Street nvarchar(4000)

    DECLARE @Exterior_number nvarchar(4000)

    DECLARE @Interior_number nvarchar(4000)

    DECLARE @Suburb nvarchar(4000)

    DECLARE @Locality nvarchar(4000)

    DECLARE @Municipality nvarchar(4000)

    DECLARE @State nvarchar(4000)

    DECLARE @Value nvarchar(4000)

    DECLARE @Obligation nvarchar(4000)

    DECLARE @Expiration nvarchar(4000)

    DECLARE @Initial_date nvarchar(4000)

    DECLARE @End_date nvarchar(4000)

    DECLARE @personal_information nvarchar(4000)

    DECLARE @digital_stamp nvarchar(4000)

    DECLARE @digital_stamp_chain nvarchar(4000)

    DECLARE @pdf nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @economic_activityValue nvarchar(4000)

    DECLARE @end_dateValue nvarchar(4000)

    DECLARE @initial_dateValue nvarchar(4000)

    DECLARE @orderValue nvarchar(4000)

    DECLARE @percentageValue nvarchar(4000)

    DECLARE @regimenValue 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', @collected_at OUT, 'results[i].collected_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @place_and_date_of_issuance OUT, 'results[i].place_and_date_of_issuance'
        EXEC sp_OAMethod @jResp, 'StringOf', @official_name OUT, 'results[i].official_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @id_cif OUT, 'results[i].id_cif'
        EXEC sp_OAMethod @jResp, 'StringOf', @Rfc OUT, 'results[i].tax_payer_information.rfc'
        EXEC sp_OAMethod @jResp, 'StringOf', @Curp OUT, 'results[i].tax_payer_information.curp'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'results[i].tax_payer_information.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @First_last_name OUT, 'results[i].tax_payer_information.first_last_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Second_last_name OUT, 'results[i].tax_payer_information.second_last_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Start_operations_date OUT, 'results[i].tax_payer_information.start_operations_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @Status_padron OUT, 'results[i].tax_payer_information.status_padron'
        EXEC sp_OAMethod @jResp, 'StringOf', @Last_status_change_date OUT, 'results[i].tax_payer_information.last_status_change_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @Commercial_name OUT, 'results[i].tax_payer_information.commercial_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Social_name OUT, 'results[i].tax_payer_information.social_name'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'results[i].tax_payer_information.email'
        EXEC sp_OAMethod @jResp, 'StringOf', @Phone OUT, 'results[i].tax_payer_information.phone'
        EXEC sp_OAMethod @jResp, 'StringOf', @Postal_code OUT, 'results[i].address.postal_code'
        EXEC sp_OAMethod @jResp, 'StringOf', @Street_type OUT, 'results[i].address.street_type'
        EXEC sp_OAMethod @jResp, 'StringOf', @Street OUT, 'results[i].address.street'
        EXEC sp_OAMethod @jResp, 'StringOf', @Exterior_number OUT, 'results[i].address.exterior_number'
        EXEC sp_OAMethod @jResp, 'StringOf', @Interior_number OUT, 'results[i].address.interior_number'
        EXEC sp_OAMethod @jResp, 'StringOf', @Suburb OUT, 'results[i].address.suburb'
        EXEC sp_OAMethod @jResp, 'StringOf', @Locality OUT, 'results[i].address.locality'
        EXEC sp_OAMethod @jResp, 'StringOf', @Municipality OUT, 'results[i].address.municipality'
        EXEC sp_OAMethod @jResp, 'StringOf', @State OUT, 'results[i].address.state'
        EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'results[i].address.between_street.value'
        EXEC sp_OAMethod @jResp, 'StringOf', @Obligation OUT, 'results[i].obligations.obligation'
        EXEC sp_OAMethod @jResp, 'StringOf', @Expiration OUT, 'results[i].obligations.expiration'
        EXEC sp_OAMethod @jResp, 'StringOf', @Initial_date OUT, 'results[i].obligations.initial_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @End_date OUT, 'results[i].obligations.end_date'
        EXEC sp_OAMethod @jResp, 'StringOf', @personal_information OUT, 'results[i].personal_information'
        EXEC sp_OAMethod @jResp, 'StringOf', @digital_stamp OUT, 'results[i].digital_stamp'
        EXEC sp_OAMethod @jResp, 'StringOf', @digital_stamp_chain OUT, 'results[i].digital_stamp_chain'
        EXEC sp_OAMethod @jResp, 'StringOf', @pdf OUT, 'results[i].pdf'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].economic_activity'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @economic_activityValue OUT, 'results[i].economic_activity[j].economic_activity.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @end_dateValue OUT, 'results[i].economic_activity[j].end_date.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @initial_dateValue OUT, 'results[i].economic_activity[j].initial_date.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @orderValue OUT, 'results[i].economic_activity[j].order.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @percentageValue OUT, 'results[i].economic_activity[j].percentage.value'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].regimens'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @end_dateValue OUT, 'results[i].regimens[j].end_date.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @initial_dateValue OUT, 'results[i].regimens[j].initial_date.value'
            EXEC sp_OAMethod @jResp, 'StringOf', @regimenValue OUT, 'results[i].regimens[j].regimen.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/tax-status/

Postman Collection Item JSON

{
  "name": "List",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/api/tax-status/",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "tax-status",
        ""
      ]
    },
    "description": "Get a paginated list of all existing tax status 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/tax-status",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "tax-status"
          ]
        }
      },
      "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\": \"<uuid>\",\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"place_and_date_of_issuance\": \"<string>\",\n\t\t\t\"official_name\": \"<string>\",\n\t\t\t\"id_cif\": \"<string>\",\n\t\t\t\"tax_payer_information\": {\n\t\t\t\t\"rfc\": \"<string>\",\n\t\t\t\t\"curp\": \"<string>\",\n\t\t\t\t\"name\": \"<string>\",\n\t\t\t\t\"first_last_name\": \"<string>\",\n\t\t\t\t\"second_last_name\": \"<string>\",\n\t\t\t\t\"start_operations_date\": \"<string>\",\n\t\t\t\t\"status_padron\": \"<string>\",\n\t\t\t\t\"last_status_change_date\": \"<string>\",\n\t\t\t\t\"commercial_name\": \"<string>\",\n\t\t\t\t\"social_name\": \"<string>\",\n\t\t\t\t\"email\": \"<string>\",\n\t\t\t\t\"phone\": \"<string>\"\n\t\t\t},\n\t\t\t\"address\": {\n\t\t\t\t\"postal_code\": \"<string>\",\n\t\t\t\t\"street_type\": \"<string>\",\n\t\t\t\t\"street\": \"<string>\",\n\t\t\t\t\"exterior_number\": \"<string>\",\n\t\t\t\t\"interior_number\": \"<string>\",\n\t\t\t\t\"suburb\": \"<string>\",\n\t\t\t\t\"locality\": \"<string>\",\n\t\t\t\t\"municipality\": \"<string>\",\n\t\t\t\t\"state\": \"<string>\",\n\t\t\t\t\"between_street\": {\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\"economic_activity\": [\n\t\t\t\t{\n\t\t\t\t\t\"economic_activity\": {\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\"end_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\"initial_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\"order\": {\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\"percentage\": {\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\"economic_activity\": {\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\"end_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\"initial_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\"order\": {\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\"percentage\": {\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\"regimens\": [\n\t\t\t\t{\n\t\t\t\t\t\"end_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\"initial_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\"regimen\": {\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\"end_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\"initial_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\"regimen\": {\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\"obligations\": {\n\t\t\t\t\"obligation\": \"<string>\",\n\t\t\t\t\"expiration\": \"<string>\",\n\t\t\t\t\"initial_date\": \"<string>\",\n\t\t\t\t\"end_date\": \"<string>\"\n\t\t\t},\n\t\t\t\"personal_information\": \"<object>\",\n\t\t\t\"digital_stamp\": \"<string>\",\n\t\t\t\"digital_stamp_chain\": \"<string>\",\n\t\t\t\"pdf\": \"<binary>\"\n\t\t},\n\t\t{\n\t\t\t\"id\": \"<uuid>\",\n\t\t\t\"link\": \"<uuid>\",\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"place_and_date_of_issuance\": \"<string>\",\n\t\t\t\"official_name\": \"<string>\",\n\t\t\t\"id_cif\": \"<string>\",\n\t\t\t\"tax_payer_information\": {\n\t\t\t\t\"rfc\": \"<string>\",\n\t\t\t\t\"curp\": \"<string>\",\n\t\t\t\t\"name\": \"<string>\",\n\t\t\t\t\"first_last_name\": \"<string>\",\n\t\t\t\t\"second_last_name\": \"<string>\",\n\t\t\t\t\"start_operations_date\": \"<string>\",\n\t\t\t\t\"status_padron\": \"<string>\",\n\t\t\t\t\"last_status_change_date\": \"<string>\",\n\t\t\t\t\"commercial_name\": \"<string>\",\n\t\t\t\t\"social_name\": \"<string>\",\n\t\t\t\t\"email\": \"<string>\",\n\t\t\t\t\"phone\": \"<string>\"\n\t\t\t},\n\t\t\t\"address\": {\n\t\t\t\t\"postal_code\": \"<string>\",\n\t\t\t\t\"street_type\": \"<string>\",\n\t\t\t\t\"street\": \"<string>\",\n\t\t\t\t\"exterior_number\": \"<string>\",\n\t\t\t\t\"interior_number\": \"<string>\",\n\t\t\t\t\"suburb\": \"<string>\",\n\t\t\t\t\"locality\": \"<string>\",\n\t\t\t\t\"municipality\": \"<string>\",\n\t\t\t\t\"state\": \"<string>\",\n\t\t\t\t\"between_street\": {\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\"economic_activity\": [\n\t\t\t\t{\n\t\t\t\t\t\"economic_activity\": {\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\"end_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\"initial_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\"order\": {\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\"percentage\": {\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\"economic_activity\": {\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\"end_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\"initial_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\"order\": {\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\"percentage\": {\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\"regimens\": [\n\t\t\t\t{\n\t\t\t\t\t\"end_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\"initial_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\"regimen\": {\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\"end_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\"initial_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\"regimen\": {\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\"obligations\": {\n\t\t\t\t\"obligation\": \"<string>\",\n\t\t\t\t\"expiration\": \"<string>\",\n\t\t\t\t\"initial_date\": \"<string>\",\n\t\t\t\t\"end_date\": \"<string>\"\n\t\t\t},\n\t\t\t\"personal_information\": \"<object>\",\n\t\t\t\"digital_stamp\": \"<string>\",\n\t\t\t\"digital_stamp_chain\": \"<string>\",\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/tax-status",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "tax-status"
          ]
        }
      },
      "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]"
    }
  ]
}