Chilkat Online Tools

PowerBuilder / Belvo API Docs / Retrieve

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JarrResp
integer li_RespStatusCode
oleobject loo_Date_from
oleobject loo_Date_to
oleobject loo_Json
string ls_Link
string ls_Collected_at
string ls_Invoice_identification
string ls_Invoice_date
string ls_Status
string ls_Invoice_type
string ls_V_type
string ls_Sender_id
string ls_Sender_name
string ls_Receiver_id
string ls_Receiver_name
string ls_Cancelation_status
string ls_Cancelation_update_date
string ls_Certification_date
string ls_Certification_authority
string ls_Payment_type
string ls_Payment_type_description
string ls_Payment_method
string ls_Payment_method_description
string ls_Usage
string ls_Version
string ls_Place_of_issue
string ls_V_currency
string ls_Subtotal_amount
string ls_Exchange_rate
string ls_Tax_amount
string ls_Discount_amount
string ls_Total_amount
string ls_Days
string ls_V_Type
string ls_Amount
string ls_Version
string ls_Collected_at
string ls_Payment_date
string ls_Xml
string ls_Code
string ls_Message
integer j
integer li_Count_j
string ls_Description
string ls_Product_identification
string ls_Quantity
string ls_Unit_code
string ls_Unit_description
string ls_Unit_amount
string ls_Pre_tax_amount
string ls_Tax_percentage
integer k
integer li_Count_k
string ls_Tax
string ls_Retained_tax_amount
string ls_Date
string ls_Amount
string ls_Operation_number
string ls_Beneficiary_rfc
string ls_Beneficiary_account_number
string ls_Payer_rfc
string ls_Payer_account_number
string ls_Payer_bank_name
string ls_Partiality_number
string ls_Previous_balance
string ls_Amount_paid
string ls_Outstanding_balance
integer i
integer li_Count_i

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

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.BasicAuth = 1
loo_Http.Login = "{{secretId}}"
loo_Http.Password = "{{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.

// {
//   "date_from": "2020-01-01",
//   "date_to": "2020-02-01",
//   "link": "d4617561-1c01-4b2f-83b6-a594f7b3bc57",
//   "type": "OUTFLOW",
//   "attach_xml": false,
//   "save_data": true
// }

loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")

loo_Json.UpdateString("date_from","2020-01-01")
loo_Json.UpdateString("date_to","2020-02-01")
loo_Json.UpdateString("link","d4617561-1c01-4b2f-83b6-a594f7b3bc57")
loo_Json.UpdateString("type","OUTFLOW")
loo_Json.UpdateBool("attach_xml",0)
loo_Json.UpdateBool("save_data",1)

loo_Http.SetRequestHeader("Content-Type","application/json")

loo_Resp = loo_Http.PostJson3("https://domain.com/api/invoices/","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_Json
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JarrResp = create oleobject
// Use "Chilkat_9_5_0.JsonArray" for versions of Chilkat < 10.0.0
li_rc = loo_JarrResp.ConnectToNewObject("Chilkat.JsonArray")

loo_JarrResp.LoadSb(loo_SbResponseBody)
loo_JarrResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JarrResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_Json
    destroy loo_SbResponseBody
    destroy loo_JarrResp
    return
end if

destroy loo_Resp

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

// [
//   {
//     "link": "<string>",
//     "collected_at": "<dateTime>",
//     "invoice_identification": "<string>",
//     "invoice_date": "<date>",
//     "status": "<string>",
//     "invoice_type": "<string>",
//     "type": "incididunt exercitation anim dolore",
//     "sender_id": "<string>",
//     "sender_name": "<string>",
//     "receiver_id": "<string>",
//     "receiver_name": "<string>",
//     "cancelation_status": "<string>",
//     "cancelation_update_date": "<date>",
//     "certification_date": "<date>",
//     "certification_authority": "<string>",
//     "payment_type": "<string>",
//     "payment_type_description": "<string>",
//     "payment_method": "<string>",
//     "payment_method_description": "<string>",
//     "usage": "<string>",
//     "version": "<string>",
//     "place_of_issue": "<string>",
//     "invoice_details": [
//       {
//         "description": "<string>",
//         "product_identification": "<string>",
//         "quantity": "<integer>",
//         "unit_code": "<string>",
//         "unit_description": "<string>",
//         "unit_amount": "<number>",
//         "pre_tax_amount": "<number>",
//         "tax_percentage": "<number>",
//         "tax_amount": "<number>",
//         "total_amount": "<number>",
//         "retained_taxes": [
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           },
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           }
//         ],
//         "collected_at": "<dateTime>"
//       },
//       {
//         "description": "<string>",
//         "product_identification": "<string>",
//         "quantity": "<integer>",
//         "unit_code": "<string>",
//         "unit_description": "<string>",
//         "unit_amount": "<number>",
//         "pre_tax_amount": "<number>",
//         "tax_percentage": "<number>",
//         "tax_amount": "<number>",
//         "total_amount": "<number>",
//         "retained_taxes": [
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           },
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           }
//         ],
//         "collected_at": "<dateTime>"
//       }
//     ],
//     "currency": "<string>",
//     "subtotal_amount": "<number>",
//     "exchange_rate": "<number>",
//     "tax_amount": "<number>",
//     "discount_amount": "<number>",
//     "total_amount": "<number>",
//     "payments": [
//       {
//         "date": "<string>",
//         "payment_type": "<string>",
//         "currency": "<string>",
//         "exchange_rate": "<string>",
//         "amount": "<float>",
//         "operation_number": "<string>",
//         "beneficiary_rfc": "<string>",
//         "beneficiary_account_number": "<string>",
//         "payer_rfc": "<string>",
//         "payer_account_number": "<string>",
//         "payer_bank_name": "<string>",
//         "related_documents": [
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           },
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           }
//         ]
//       },
//       {
//         "date": "<string>",
//         "payment_type": "<string>",
//         "currency": "<string>",
//         "exchange_rate": "<string>",
//         "amount": "<float>",
//         "operation_number": "<string>",
//         "beneficiary_rfc": "<string>",
//         "beneficiary_account_number": "<string>",
//         "payer_rfc": "<string>",
//         "payer_account_number": "<string>",
//         "payer_bank_name": "<string>",
//         "related_documents": [
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           },
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           }
//         ]
//       }
//     ],
//     "payroll": {
//       "days": "<number>",
//       "type": "<string>",
//       "amount": "<number>",
//       "version": "<string>",
//       "date_from": "<date>",
//       "date_to": "<date>",
//       "collected_at": "<dateTime>",
//       "payment_date": "<date>"
//     },
//     "xml": "<string>",
//     "warnings": {
//       "code": "<string>",
//       "message": "<string>"
//     }
//   },
//   {
//     "link": "<string>",
//     "collected_at": "<dateTime>",
//     "invoice_identification": "<string>",
//     "invoice_date": "<date>",
//     "status": "<string>",
//     "invoice_type": "<string>",
//     "type": "non in do qui",
//     "sender_id": "<string>",
//     "sender_name": "<string>",
//     "receiver_id": "<string>",
//     "receiver_name": "<string>",
//     "cancelation_status": "<string>",
//     "cancelation_update_date": "<date>",
//     "certification_date": "<date>",
//     "certification_authority": "<string>",
//     "payment_type": "<string>",
//     "payment_type_description": "<string>",
//     "payment_method": "<string>",
//     "payment_method_description": "<string>",
//     "usage": "<string>",
//     "version": "<string>",
//     "place_of_issue": "<string>",
//     "invoice_details": [
//       {
//         "description": "<string>",
//         "product_identification": "<string>",
//         "quantity": "<integer>",
//         "unit_code": "<string>",
//         "unit_description": "<string>",
//         "unit_amount": "<number>",
//         "pre_tax_amount": "<number>",
//         "tax_percentage": "<number>",
//         "tax_amount": "<number>",
//         "total_amount": "<number>",
//         "retained_taxes": [
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           },
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           }
//         ],
//         "collected_at": "<dateTime>"
//       },
//       {
//         "description": "<string>",
//         "product_identification": "<string>",
//         "quantity": "<integer>",
//         "unit_code": "<string>",
//         "unit_description": "<string>",
//         "unit_amount": "<number>",
//         "pre_tax_amount": "<number>",
//         "tax_percentage": "<number>",
//         "tax_amount": "<number>",
//         "total_amount": "<number>",
//         "retained_taxes": [
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           },
//           {
//             "collected_at": "<dateTime>",
//             "tax": "<string>",
//             "tax_percentage": "<number>",
//             "retained_tax_amount": "<number>"
//           }
//         ],
//         "collected_at": "<dateTime>"
//       }
//     ],
//     "currency": "<string>",
//     "subtotal_amount": "<number>",
//     "exchange_rate": "<number>",
//     "tax_amount": "<number>",
//     "discount_amount": "<number>",
//     "total_amount": "<number>",
//     "payments": [
//       {
//         "date": "<string>",
//         "payment_type": "<string>",
//         "currency": "<string>",
//         "exchange_rate": "<string>",
//         "amount": "<float>",
//         "operation_number": "<string>",
//         "beneficiary_rfc": "<string>",
//         "beneficiary_account_number": "<string>",
//         "payer_rfc": "<string>",
//         "payer_account_number": "<string>",
//         "payer_bank_name": "<string>",
//         "related_documents": [
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           },
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           }
//         ]
//       },
//       {
//         "date": "<string>",
//         "payment_type": "<string>",
//         "currency": "<string>",
//         "exchange_rate": "<string>",
//         "amount": "<float>",
//         "operation_number": "<string>",
//         "beneficiary_rfc": "<string>",
//         "beneficiary_account_number": "<string>",
//         "payer_rfc": "<string>",
//         "payer_account_number": "<string>",
//         "payer_bank_name": "<string>",
//         "related_documents": [
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           },
//           {
//             "invoice_identification": "<string>",
//             "currency": "<string>",
//             "payment_method": "<string>",
//             "partiality_number": "<integer>",
//             "previous_balance": "<float>",
//             "amount_paid": "<float>",
//             "outstanding_balance": "<float>"
//           }
//         ]
//       }
//     ],
//     "payroll": {
//       "days": "<number>",
//       "type": "<string>",
//       "amount": "<number>",
//       "version": "<string>",
//       "date_from": "<date>",
//       "date_to": "<date>",
//       "collected_at": "<dateTime>",
//       "payment_date": "<date>"
//     },
//     "xml": "<string>",
//     "warnings": {
//       "code": "<string>",
//       "message": "<string>"
//     }
//   }
// ]

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

loo_Date_from = create oleobject
// Use "Chilkat_9_5_0.DtObj" for versions of Chilkat < 10.0.0
li_rc = loo_Date_from.ConnectToNewObject("Chilkat.DtObj")

loo_Date_to = create oleobject
// Use "Chilkat_9_5_0.DtObj" for versions of Chilkat < 10.0.0
li_rc = loo_Date_to.ConnectToNewObject("Chilkat.DtObj")

i = 0
li_Count_i = loo_JarrResp.Size
do while i < li_Count_i
    loo_Json = loo_JarrResp.ObjectAt(i)
    ls_Link = loo_Json.StringOf("link")
    ls_Collected_at = loo_Json.StringOf("collected_at")
    ls_Invoice_identification = loo_Json.StringOf("invoice_identification")
    ls_Invoice_date = loo_Json.StringOf("invoice_date")
    ls_Status = loo_Json.StringOf("status")
    ls_Invoice_type = loo_Json.StringOf("invoice_type")
    ls_V_type = loo_Json.StringOf("type")
    ls_Sender_id = loo_Json.StringOf("sender_id")
    ls_Sender_name = loo_Json.StringOf("sender_name")
    ls_Receiver_id = loo_Json.StringOf("receiver_id")
    ls_Receiver_name = loo_Json.StringOf("receiver_name")
    ls_Cancelation_status = loo_Json.StringOf("cancelation_status")
    ls_Cancelation_update_date = loo_Json.StringOf("cancelation_update_date")
    ls_Certification_date = loo_Json.StringOf("certification_date")
    ls_Certification_authority = loo_Json.StringOf("certification_authority")
    ls_Payment_type = loo_Json.StringOf("payment_type")
    ls_Payment_type_description = loo_Json.StringOf("payment_type_description")
    ls_Payment_method = loo_Json.StringOf("payment_method")
    ls_Payment_method_description = loo_Json.StringOf("payment_method_description")
    ls_Usage = loo_Json.StringOf("usage")
    ls_Version = loo_Json.StringOf("version")
    ls_Place_of_issue = loo_Json.StringOf("place_of_issue")
    ls_V_currency = loo_Json.StringOf("currency")
    ls_Subtotal_amount = loo_Json.StringOf("subtotal_amount")
    ls_Exchange_rate = loo_Json.StringOf("exchange_rate")
    ls_Tax_amount = loo_Json.StringOf("tax_amount")
    ls_Discount_amount = loo_Json.StringOf("discount_amount")
    ls_Total_amount = loo_Json.StringOf("total_amount")
    ls_Days = loo_Json.StringOf("payroll.days")
    ls_V_Type = loo_Json.StringOf("payroll.type")
    ls_Amount = loo_Json.StringOf("payroll.amount")
    ls_Version = loo_Json.StringOf("payroll.version")
    loo_Json.DtOf("payroll.date_from",0,loo_Date_from)
    loo_Json.DtOf("payroll.date_to",0,loo_Date_to)
    ls_Collected_at = loo_Json.StringOf("payroll.collected_at")
    ls_Payment_date = loo_Json.StringOf("payroll.payment_date")
    ls_Xml = loo_Json.StringOf("xml")
    ls_Code = loo_Json.StringOf("warnings.code")
    ls_Message = loo_Json.StringOf("warnings.message")
    j = 0
    li_Count_j = loo_Json.SizeOfArray("invoice_details")
    do while j < li_Count_j
        loo_Json.J = j
        ls_Description = loo_Json.StringOf("invoice_details[j].description")
        ls_Product_identification = loo_Json.StringOf("invoice_details[j].product_identification")
        ls_Quantity = loo_Json.StringOf("invoice_details[j].quantity")
        ls_Unit_code = loo_Json.StringOf("invoice_details[j].unit_code")
        ls_Unit_description = loo_Json.StringOf("invoice_details[j].unit_description")
        ls_Unit_amount = loo_Json.StringOf("invoice_details[j].unit_amount")
        ls_Pre_tax_amount = loo_Json.StringOf("invoice_details[j].pre_tax_amount")
        ls_Tax_percentage = loo_Json.StringOf("invoice_details[j].tax_percentage")
        ls_Tax_amount = loo_Json.StringOf("invoice_details[j].tax_amount")
        ls_Total_amount = loo_Json.StringOf("invoice_details[j].total_amount")
        ls_Collected_at = loo_Json.StringOf("invoice_details[j].collected_at")
        k = 0
        li_Count_k = loo_Json.SizeOfArray("invoice_details[j].retained_taxes")
        do while k < li_Count_k
            loo_Json.K = k
            ls_Collected_at = loo_Json.StringOf("invoice_details[j].retained_taxes[k].collected_at")
            ls_Tax = loo_Json.StringOf("invoice_details[j].retained_taxes[k].tax")
            ls_Tax_percentage = loo_Json.StringOf("invoice_details[j].retained_taxes[k].tax_percentage")
            ls_Retained_tax_amount = loo_Json.StringOf("invoice_details[j].retained_taxes[k].retained_tax_amount")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_Json.SizeOfArray("payments")
    do while j < li_Count_j
        loo_Json.J = j
        ls_Date = loo_Json.StringOf("payments[j].date")
        ls_Payment_type = loo_Json.StringOf("payments[j].payment_type")
        ls_V_currency = loo_Json.StringOf("payments[j].currency")
        ls_Exchange_rate = loo_Json.StringOf("payments[j].exchange_rate")
        ls_Amount = loo_Json.StringOf("payments[j].amount")
        ls_Operation_number = loo_Json.StringOf("payments[j].operation_number")
        ls_Beneficiary_rfc = loo_Json.StringOf("payments[j].beneficiary_rfc")
        ls_Beneficiary_account_number = loo_Json.StringOf("payments[j].beneficiary_account_number")
        ls_Payer_rfc = loo_Json.StringOf("payments[j].payer_rfc")
        ls_Payer_account_number = loo_Json.StringOf("payments[j].payer_account_number")
        ls_Payer_bank_name = loo_Json.StringOf("payments[j].payer_bank_name")
        k = 0
        li_Count_k = loo_Json.SizeOfArray("payments[j].related_documents")
        do while k < li_Count_k
            loo_Json.K = k
            ls_Invoice_identification = loo_Json.StringOf("payments[j].related_documents[k].invoice_identification")
            ls_V_currency = loo_Json.StringOf("payments[j].related_documents[k].currency")
            ls_Payment_method = loo_Json.StringOf("payments[j].related_documents[k].payment_method")
            ls_Partiality_number = loo_Json.StringOf("payments[j].related_documents[k].partiality_number")
            ls_Previous_balance = loo_Json.StringOf("payments[j].related_documents[k].previous_balance")
            ls_Amount_paid = loo_Json.StringOf("payments[j].related_documents[k].amount_paid")
            ls_Outstanding_balance = loo_Json.StringOf("payments[j].related_documents[k].outstanding_balance")
            k = k + 1
        loop
        j = j + 1
    loop
    destroy loo_Json
    i = i + 1
loop


destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JarrResp
destroy loo_Date_from
destroy loo_Date_to

Curl Command

curl -X POST
	-u '{{secretId}}:{{secretPassword}}'
	-H "Content-Type: application/json"
	-d '{
    "date_from": "2020-01-01",
    "date_to": "2020-02-01",
    "link": "d4617561-1c01-4b2f-83b6-a594f7b3bc57",
    "type": "OUTFLOW",
    "attach_xml": false,
    "save_data": true
}'
https://domain.com/api/invoices/

Postman Collection Item JSON

{
  "name": "Retrieve",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"date_from\": \"2020-01-01\",\n    \"date_to\": \"2020-02-01\",\n    \"link\": \"d4617561-1c01-4b2f-83b6-a594f7b3bc57\",\n    \"type\": \"OUTFLOW\",\n    \"attach_xml\": false,\n    \"save_data\": true\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/api/invoices/",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "invoices",
        ""
      ]
    },
    "description": "Retrieve invoice information from a specific fiscal link.\n\nℹ️ You can ask for up to **one** year (365 days) of invoices per request. If you need invoices for more than one year, just make another request.\n"
  },
  "response": [
    {
      "name": "Ok (when save_data=false)",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "[\n\t{\n\t\t\"link\": \"<string>\",\n\t\t\"collected_at\": \"<dateTime>\",\n\t\t\"invoice_identification\": \"<string>\",\n\t\t\"invoice_date\": \"<date>\",\n\t\t\"status\": \"<string>\",\n\t\t\"invoice_type\": \"<string>\",\n\t\t\"type\": \"incididunt exercitation anim dolore\",\n\t\t\"sender_id\": \"<string>\",\n\t\t\"sender_name\": \"<string>\",\n\t\t\"receiver_id\": \"<string>\",\n\t\t\"receiver_name\": \"<string>\",\n\t\t\"cancelation_status\": \"<string>\",\n\t\t\"cancelation_update_date\": \"<date>\",\n\t\t\"certification_date\": \"<date>\",\n\t\t\"certification_authority\": \"<string>\",\n\t\t\"payment_type\": \"<string>\",\n\t\t\"payment_type_description\": \"<string>\",\n\t\t\"payment_method\": \"<string>\",\n\t\t\"payment_method_description\": \"<string>\",\n\t\t\"usage\": \"<string>\",\n\t\t\"version\": \"<string>\",\n\t\t\"place_of_issue\": \"<string>\",\n\t\t\"invoice_details\": [\n\t\t\t{\n\t\t\t\t\"description\": \"<string>\",\n\t\t\t\t\"product_identification\": \"<string>\",\n\t\t\t\t\"quantity\": \"<integer>\",\n\t\t\t\t\"unit_code\": \"<string>\",\n\t\t\t\t\"unit_description\": \"<string>\",\n\t\t\t\t\"unit_amount\": \"<number>\",\n\t\t\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"tax_amount\": \"<number>\",\n\t\t\t\t\"total_amount\": \"<number>\",\n\t\t\t\t\"retained_taxes\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\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{\n\t\t\t\t\"description\": \"<string>\",\n\t\t\t\t\"product_identification\": \"<string>\",\n\t\t\t\t\"quantity\": \"<integer>\",\n\t\t\t\t\"unit_code\": \"<string>\",\n\t\t\t\t\"unit_description\": \"<string>\",\n\t\t\t\t\"unit_amount\": \"<number>\",\n\t\t\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"tax_amount\": \"<number>\",\n\t\t\t\t\"total_amount\": \"<number>\",\n\t\t\t\t\"retained_taxes\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\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],\n\t\t\"currency\": \"<string>\",\n\t\t\"subtotal_amount\": \"<number>\",\n\t\t\"exchange_rate\": \"<number>\",\n\t\t\"tax_amount\": \"<number>\",\n\t\t\"discount_amount\": \"<number>\",\n\t\t\"total_amount\": \"<number>\",\n\t\t\"payments\": [\n\t\t\t{\n\t\t\t\t\"date\": \"<string>\",\n\t\t\t\t\"payment_type\": \"<string>\",\n\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\"exchange_rate\": \"<string>\",\n\t\t\t\t\"amount\": \"<float>\",\n\t\t\t\t\"operation_number\": \"<string>\",\n\t\t\t\t\"beneficiary_rfc\": \"<string>\",\n\t\t\t\t\"beneficiary_account_number\": \"<string>\",\n\t\t\t\t\"payer_rfc\": \"<string>\",\n\t\t\t\t\"payer_account_number\": \"<string>\",\n\t\t\t\t\"payer_bank_name\": \"<string>\",\n\t\t\t\t\"related_documents\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"date\": \"<string>\",\n\t\t\t\t\"payment_type\": \"<string>\",\n\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\"exchange_rate\": \"<string>\",\n\t\t\t\t\"amount\": \"<float>\",\n\t\t\t\t\"operation_number\": \"<string>\",\n\t\t\t\t\"beneficiary_rfc\": \"<string>\",\n\t\t\t\t\"beneficiary_account_number\": \"<string>\",\n\t\t\t\t\"payer_rfc\": \"<string>\",\n\t\t\t\t\"payer_account_number\": \"<string>\",\n\t\t\t\t\"payer_bank_name\": \"<string>\",\n\t\t\t\t\"related_documents\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"payroll\": {\n\t\t\t\"days\": \"<number>\",\n\t\t\t\"type\": \"<string>\",\n\t\t\t\"amount\": \"<number>\",\n\t\t\t\"version\": \"<string>\",\n\t\t\t\"date_from\": \"<date>\",\n\t\t\t\"date_to\": \"<date>\",\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"payment_date\": \"<date>\"\n\t\t},\n\t\t\"xml\": \"<string>\",\n\t\t\"warnings\": {\n\t\t\t\"code\": \"<string>\",\n\t\t\t\"message\": \"<string>\"\n\t\t}\n\t},\n\t{\n\t\t\"link\": \"<string>\",\n\t\t\"collected_at\": \"<dateTime>\",\n\t\t\"invoice_identification\": \"<string>\",\n\t\t\"invoice_date\": \"<date>\",\n\t\t\"status\": \"<string>\",\n\t\t\"invoice_type\": \"<string>\",\n\t\t\"type\": \"non in do qui\",\n\t\t\"sender_id\": \"<string>\",\n\t\t\"sender_name\": \"<string>\",\n\t\t\"receiver_id\": \"<string>\",\n\t\t\"receiver_name\": \"<string>\",\n\t\t\"cancelation_status\": \"<string>\",\n\t\t\"cancelation_update_date\": \"<date>\",\n\t\t\"certification_date\": \"<date>\",\n\t\t\"certification_authority\": \"<string>\",\n\t\t\"payment_type\": \"<string>\",\n\t\t\"payment_type_description\": \"<string>\",\n\t\t\"payment_method\": \"<string>\",\n\t\t\"payment_method_description\": \"<string>\",\n\t\t\"usage\": \"<string>\",\n\t\t\"version\": \"<string>\",\n\t\t\"place_of_issue\": \"<string>\",\n\t\t\"invoice_details\": [\n\t\t\t{\n\t\t\t\t\"description\": \"<string>\",\n\t\t\t\t\"product_identification\": \"<string>\",\n\t\t\t\t\"quantity\": \"<integer>\",\n\t\t\t\t\"unit_code\": \"<string>\",\n\t\t\t\t\"unit_description\": \"<string>\",\n\t\t\t\t\"unit_amount\": \"<number>\",\n\t\t\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"tax_amount\": \"<number>\",\n\t\t\t\t\"total_amount\": \"<number>\",\n\t\t\t\t\"retained_taxes\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\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{\n\t\t\t\t\"description\": \"<string>\",\n\t\t\t\t\"product_identification\": \"<string>\",\n\t\t\t\t\"quantity\": \"<integer>\",\n\t\t\t\t\"unit_code\": \"<string>\",\n\t\t\t\t\"unit_description\": \"<string>\",\n\t\t\t\t\"unit_amount\": \"<number>\",\n\t\t\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"tax_amount\": \"<number>\",\n\t\t\t\t\"total_amount\": \"<number>\",\n\t\t\t\t\"retained_taxes\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\t\t\"retained_tax_amount\": \"<number>\"\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],\n\t\t\"currency\": \"<string>\",\n\t\t\"subtotal_amount\": \"<number>\",\n\t\t\"exchange_rate\": \"<number>\",\n\t\t\"tax_amount\": \"<number>\",\n\t\t\"discount_amount\": \"<number>\",\n\t\t\"total_amount\": \"<number>\",\n\t\t\"payments\": [\n\t\t\t{\n\t\t\t\t\"date\": \"<string>\",\n\t\t\t\t\"payment_type\": \"<string>\",\n\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\"exchange_rate\": \"<string>\",\n\t\t\t\t\"amount\": \"<float>\",\n\t\t\t\t\"operation_number\": \"<string>\",\n\t\t\t\t\"beneficiary_rfc\": \"<string>\",\n\t\t\t\t\"beneficiary_account_number\": \"<string>\",\n\t\t\t\t\"payer_rfc\": \"<string>\",\n\t\t\t\t\"payer_account_number\": \"<string>\",\n\t\t\t\t\"payer_bank_name\": \"<string>\",\n\t\t\t\t\"related_documents\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"date\": \"<string>\",\n\t\t\t\t\"payment_type\": \"<string>\",\n\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\"exchange_rate\": \"<string>\",\n\t\t\t\t\"amount\": \"<float>\",\n\t\t\t\t\"operation_number\": \"<string>\",\n\t\t\t\t\"beneficiary_rfc\": \"<string>\",\n\t\t\t\t\"beneficiary_account_number\": \"<string>\",\n\t\t\t\t\"payer_rfc\": \"<string>\",\n\t\t\t\t\"payer_account_number\": \"<string>\",\n\t\t\t\t\"payer_bank_name\": \"<string>\",\n\t\t\t\t\"related_documents\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"invoice_identification\": \"<string>\",\n\t\t\t\t\t\t\"currency\": \"<string>\",\n\t\t\t\t\t\t\"payment_method\": \"<string>\",\n\t\t\t\t\t\t\"partiality_number\": \"<integer>\",\n\t\t\t\t\t\t\"previous_balance\": \"<float>\",\n\t\t\t\t\t\t\"amount_paid\": \"<float>\",\n\t\t\t\t\t\t\"outstanding_balance\": \"<float>\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"payroll\": {\n\t\t\t\"days\": \"<number>\",\n\t\t\t\"type\": \"<string>\",\n\t\t\t\"amount\": \"<number>\",\n\t\t\t\"version\": \"<string>\",\n\t\t\t\"date_from\": \"<date>\",\n\t\t\t\"date_to\": \"<date>\",\n\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\"payment_date\": \"<date>\"\n\t\t},\n\t\t\"xml\": \"<string>\",\n\t\t\"warnings\": {\n\t\t\t\"code\": \"<string>\",\n\t\t\t\"message\": \"<string>\"\n\t\t}\n\t}\n]"
    },
    {
      "name": "Created (when save_data=true)",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "[\n\t{\n\t\t\"description\": \"<string>\",\n\t\t\"product_identification\": \"<string>\",\n\t\t\"quantity\": \"<integer>\",\n\t\t\"unit_code\": \"<string>\",\n\t\t\"unit_description\": \"<string>\",\n\t\t\"unit_amount\": \"<number>\",\n\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\"tax_percentage\": \"<number>\",\n\t\t\"tax_amount\": \"<number>\",\n\t\t\"total_amount\": \"<number>\",\n\t\t\"retained_taxes\": [\n\t\t\t{\n\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t}\n\t\t],\n\t\t\"collected_at\": \"<dateTime>\"\n\t},\n\t{\n\t\t\"description\": \"<string>\",\n\t\t\"product_identification\": \"<string>\",\n\t\t\"quantity\": \"<integer>\",\n\t\t\"unit_code\": \"<string>\",\n\t\t\"unit_description\": \"<string>\",\n\t\t\"unit_amount\": \"<number>\",\n\t\t\"pre_tax_amount\": \"<number>\",\n\t\t\"tax_percentage\": \"<number>\",\n\t\t\"tax_amount\": \"<number>\",\n\t\t\"total_amount\": \"<number>\",\n\t\t\"retained_taxes\": [\n\t\t\t{\n\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"collected_at\": \"<dateTime>\",\n\t\t\t\t\"tax\": \"<string>\",\n\t\t\t\t\"tax_percentage\": \"<number>\",\n\t\t\t\t\"retained_tax_amount\": \"<number>\"\n\t\t\t}\n\t\t],\n\t\t\"collected_at\": \"<dateTime>\"\n\t}\n]"
    },
    {
      "name": "Bad request error",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "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": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "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": "Unexpected Error",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"date_from\": \"<date>\",\n    \"date_to\": \"<date>\",\n    \"link\": \"<uuid>\",\n    \"type\": \"<string>\",\n    \"attach_xml\": false,\n    \"encryption_key\": \"<string>\",\n    \"save_data\": true\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/invoices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "invoices"
          ]
        }
      },
      "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]"
    }
  ]
}