Chilkat Online Tools

Foxpro / New FreshBooks / List Invoices

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode

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

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("include[]","audit_logs")

* Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"
loHttp.SetRequestHeader("Content-Type","application/json")

loResp = loHttp.QuickRequestParams("GET","https://api.freshbooks.com/accounting/account/{{accountId}}/invoices/invoices",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loQueryParams
    CANCEL
ENDIF

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0

? "Response Body:"
? loJResp.Emit()

lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
    ? "Response Header:"
    ? loResp.Header
    ? "Failed."
    RELEASE loResp
    RELEASE loHttp
    RELEASE loQueryParams
    RELEASE loSbResponseBody
    RELEASE loJResp
    CANCEL
ENDIF

RELEASE loResp

RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp

Curl Command

curl -G -d "include[]=audit_logs"
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
https://api.freshbooks.com/accounting/account/{{accountId}}/invoices/invoices

Postman Collection Item JSON

{
  "name": "List Invoices",
  "event": [
    {
      "listen": "test",
      "script": {
        "exec": [
          "let jsonData = JSON.parse(responseBody);",
          "pm.environment.set(\"invoiceId\", jsonData.response.result.invoices[0].id)"
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
      }
    ],
    "url": {
      "raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/invoices/invoices?include[]=audit_logs",
      "protocol": "https",
      "host": [
        "api",
        "freshbooks",
        "com"
      ],
      "path": [
        "accounting",
        "account",
        "{{accountId}}",
        "invoices",
        "invoices"
      ],
      "query": [
        {
          "key": "include[]",
          "value": "audit_logs",
          "description": "show invoice view/send/payment history"
        },
        {
          "key": "include[]",
          "value": "client_audits",
          "description": "show the client-visible invoice history",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "comments",
          "description": "comments made on invoice",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "contacts",
          "description": "list of client contacts",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "lines",
          "description": "invoice lines",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "owner",
          "description": "owner info",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "latest_journal_entry",
          "description": "journal entry info",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "allowed_gateways",
          "description": "list of allowed gateways",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "late_fee",
          "description": "late fee info",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "presentation",
          "description": "presentation type",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "late_reminders",
          "description": "late reminders",
          "disabled": true
        },
        {
          "key": "include[]",
          "value": "system",
          "description": "invoice-owner's system",
          "disabled": true
        }
      ]
    }
  },
  "response": [
    {
      "name": "List Invoices",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/invoices/invoices",
          "protocol": "https",
          "host": [
            "api",
            "freshbooks",
            "com"
          ],
          "path": [
            "accounting",
            "account",
            "{{accountId}}",
            "invoices",
            "invoices"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "nginx"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "X-NewRelic-App-Data",
          "value": "PxQBWV5TCBABVlVSAwEOVlcTGhE1AwE2QgNWEVlbQFtcCxYnRA9QFg1ZWU4DFVdfRgFPCkNFR0gNX0BcCwUGEQoLVhRXUVdXQEcVUR1RHVNXBwJQVlENBAdWUVsDBgVRSBwHH0ADVQACBl5SAQAGAFYDX1VUQx8EBVpEBDs="
        },
        {
          "key": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "key": "Expires",
          "value": "Tue, 24 Apr 2018 18:08:26 GMT"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Via",
          "value": "1.1 google"
        },
        {
          "key": "Via",
          "value": "1.1 varnish"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Date",
          "value": "Wed, 24 Apr 2019 18:08:26 GMT"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Served-By",
          "value": "cache-mdw17369-MDW"
        },
        {
          "key": "X-Cache",
          "value": "MISS"
        },
        {
          "key": "X-Cache-Hits",
          "value": "0"
        },
        {
          "key": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Country",
          "value": "CA"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=31536000; includeSubDomains; preload"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"response\": {\n        \"result\": {\n            \"invoices\": [\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-24 14:06:53\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Nicolas\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 34420,\n                    \"invoice_number\": \"0000013\",\n                    \"invoiceid\": 34420,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-24 14:06:53\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:50:19\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"viewed\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29618,\n                    \"invoice_number\": \"0000012\",\n                    \"invoiceid\": 29618,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 3,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-23 17:59:12\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Waco\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:49:56\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Hermann-Jast\",\n                    \"customerid\": 32076,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Tarra\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29616,\n                    \"invoice_number\": \"0000011\",\n                    \"invoiceid\": 29616,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Arblaster\",\n                    \"notes\": \"\",\n                    \"organization\": \"Hermann-Jast\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"05 Haas Trail\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-22 10:49:56\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"San Jose\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:43:37\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Witting, McDermott and Gutmann\",\n                    \"customerid\": 32078,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Beaufort\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29610,\n                    \"invoice_number\": \"0000010\",\n                    \"invoiceid\": 29610,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Michelin\",\n                    \"notes\": \"\",\n                    \"organization\": \"Witting, McDermott and Gutmann\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"California\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"5 Kings Pass\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-22 10:43:37\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Richmond\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-22\",\n                    \"created_at\": \"2019-04-22 10:37:33\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Blick, Dickinson and Morar\",\n                    \"customerid\": 32082,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-22\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Elbert\",\n                    \"fulfillment_date\": \"2019-04-22\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29604,\n                    \"invoice_number\": \"0000009\",\n                    \"invoiceid\": 29604,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Vatcher\",\n                    \"notes\": \"\",\n                    \"organization\": \"Blick, Dickinson and Morar\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Virginia\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": false,\n                    \"status\": 2,\n                    \"street\": \"9 Park Meadow Street\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-23 17:39:29\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 16:45:43\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Nicolas\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 28006,\n                    \"invoice_number\": \"0000008\",\n                    \"invoiceid\": 28006,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-24 13:47:39\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Houston\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 16:40:49\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Prosacco Group\",\n                    \"customerid\": 32080,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"Fanny pack with palm trees\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Myrta\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 28002,\n                    \"invoice_number\": \"0000007\",\n                    \"invoiceid\": 28002,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Westhofer\",\n                    \"notes\": \"\",\n                    \"organization\": \"Prosacco Group\",\n                    \"outstanding\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": false,\n                    \"status\": 1,\n                    \"street\": \"70347 Ramsey Plaza\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-20 16:41:17\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 04:11:41\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": \"2019-04-20\",\n                    \"gmail\": false,\n                    \"id\": 27478,\n                    \"invoice_number\": \"0000006\",\n                    \"invoiceid\": 27478,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 378,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-20 04:11:41\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-19 13:40:18\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 26398,\n                    \"invoice_number\": \"0000005\",\n                    \"invoiceid\": 26398,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"3290.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"10.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"partial\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 14:05:33\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"6900.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-19 13:37:39\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Nicolas\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 26384,\n                    \"invoice_number\": \"0000004\",\n                    \"invoiceid\": 26384,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"6900.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-24 13:47:39\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Houston\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-19\",\n                    \"created_at\": \"2019-04-19 12:52:16\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Prosacco Group\",\n                    \"customerid\": 32080,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"Fanny pack with palm trees\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-19\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Myrta\",\n                    \"fulfillment_date\": \"2019-04-19\",\n                    \"generation_date\": \"2019-04-19\",\n                    \"gmail\": false,\n                    \"id\": 26250,\n                    \"invoice_number\": \"0000003\",\n                    \"invoiceid\": 26250,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Westhofer\",\n                    \"notes\": \"\",\n                    \"organization\": \"Prosacco Group\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 376,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"paid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 4,\n                    \"street\": \"70347 Ramsey Plaza\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 13:28:17\",\n                    \"v3_status\": \"paid\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"8000.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-18 09:53:46\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 24068,\n                    \"invoice_number\": \"0000002\",\n                    \"invoiceid\": 24068,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"8000.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"paid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 4,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 13:59:30\",\n                    \"v3_status\": \"paid\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"1065.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-18\",\n                    \"created_at\": \"2019-04-18 09:38:49\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"it's a computer hardware version 1\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-05-18\",\n                    \"due_offset_days\": 30,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-18\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 24042,\n                    \"invoice_number\": \"0000001\",\n                    \"invoiceid\": 24042,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"1065.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": false,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-18 09:40:07\",\n                    \"v3_status\": \"sent\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                }\n            ],\n            \"page\": 1,\n            \"pages\": 1,\n            \"per_page\": 15,\n            \"total\": 13\n        }\n    }\n}"
    },
    {
      "name": "List Invoices",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/invoices/invoices",
          "protocol": "https",
          "host": [
            "api",
            "freshbooks",
            "com"
          ],
          "path": [
            "accounting",
            "account",
            "{{accountId}}",
            "invoices",
            "invoices"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "nginx"
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        },
        {
          "key": "X-NewRelic-App-Data",
          "value": "PxQBWV5TCBABVlVSAwEOVlcTGhE1AwE2QgNWEVlbQFtcCxYnRA9QFg1ZWU4DFVdfRgFPCkNFR0gNX0BcCwUGEQoLVhRXUVdXQEcVUR1RHVNWAwZSUloMBwlVVFUAAANeSBwHH0BSUVADAAxSXABWVwUBCQRUQx8EBVpEBDs="
        },
        {
          "key": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "key": "Expires",
          "value": "Tue, 24 Apr 2018 18:05:04 GMT"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Via",
          "value": "1.1 google"
        },
        {
          "key": "Via",
          "value": "1.1 varnish"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Date",
          "value": "Wed, 24 Apr 2019 18:05:05 GMT"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Served-By",
          "value": "cache-mdw17369-MDW"
        },
        {
          "key": "X-Cache",
          "value": "MISS"
        },
        {
          "key": "X-Cache-Hits",
          "value": "0"
        },
        {
          "key": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Country",
          "value": "CA"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=31536000; includeSubDomains; preload"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"response\": {\n        \"result\": {\n            \"invoices\": [\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:50:19\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"viewed\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29618,\n                    \"invoice_number\": \"0000012\",\n                    \"invoiceid\": 29618,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 3,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-23 17:59:12\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Waco\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:49:56\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Hermann-Jast\",\n                    \"customerid\": 32076,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Tarra\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29616,\n                    \"invoice_number\": \"0000011\",\n                    \"invoiceid\": 29616,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Arblaster\",\n                    \"notes\": \"\",\n                    \"organization\": \"Hermann-Jast\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"05 Haas Trail\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-22 10:49:56\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"San Jose\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-22 10:43:37\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Witting, McDermott and Gutmann\",\n                    \"customerid\": 32078,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Beaufort\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29610,\n                    \"invoice_number\": \"0000010\",\n                    \"invoiceid\": 29610,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Michelin\",\n                    \"notes\": \"\",\n                    \"organization\": \"Witting, McDermott and Gutmann\",\n                    \"outstanding\": {\n                        \"amount\": \"180.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"California\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"5 Kings Pass\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-22 10:43:37\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Richmond\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-22\",\n                    \"created_at\": \"2019-04-22 10:37:33\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Blick, Dickinson and Morar\",\n                    \"customerid\": 32082,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-22\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Elbert\",\n                    \"fulfillment_date\": \"2019-04-22\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 29604,\n                    \"invoice_number\": \"0000009\",\n                    \"invoiceid\": 29604,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Vatcher\",\n                    \"notes\": \"\",\n                    \"organization\": \"Blick, Dickinson and Morar\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Virginia\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": false,\n                    \"status\": 2,\n                    \"street\": \"9 Park Meadow Street\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-23 17:39:29\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 16:45:43\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Nicolas\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 28006,\n                    \"invoice_number\": \"0000008\",\n                    \"invoiceid\": 28006,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-24 13:47:39\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Houston\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 16:40:49\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Prosacco Group\",\n                    \"customerid\": 32080,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"Fanny pack with palm trees\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Myrta\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 28002,\n                    \"invoice_number\": \"0000007\",\n                    \"invoiceid\": 28002,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Westhofer\",\n                    \"notes\": \"\",\n                    \"organization\": \"Prosacco Group\",\n                    \"outstanding\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": false,\n                    \"status\": 1,\n                    \"street\": \"70347 Ramsey Plaza\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-20 16:41:17\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-20 04:11:41\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": \"2019-04-20\",\n                    \"gmail\": false,\n                    \"id\": 27478,\n                    \"invoice_number\": \"0000006\",\n                    \"invoiceid\": 27478,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 378,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-20 04:11:41\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"3300.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-19 13:40:18\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 26398,\n                    \"invoice_number\": \"0000005\",\n                    \"invoiceid\": 26398,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"3290.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"10.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"partial\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 14:05:33\",\n                    \"v3_status\": \"overdue\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"6900.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-19 13:37:39\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"draft\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Nicolas\",\n                    \"fulfillment_date\": null,\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 26384,\n                    \"invoice_number\": \"0000004\",\n                    \"invoiceid\": 26384,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"6900.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 31004,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 31004,\n                    \"show_attachments\": true,\n                    \"status\": 1,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-24 13:47:39\",\n                    \"v3_status\": \"draft\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"Houston\",\n                    \"code\": \"\",\n                    \"country\": \"United States\",\n                    \"create_date\": \"2019-04-19\",\n                    \"created_at\": \"2019-04-19 12:52:16\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"Prosacco Group\",\n                    \"customerid\": 32080,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"Fanny pack with palm trees\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-19\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Myrta\",\n                    \"fulfillment_date\": \"2019-04-19\",\n                    \"generation_date\": \"2019-04-19\",\n                    \"gmail\": false,\n                    \"id\": 26250,\n                    \"invoice_number\": \"0000003\",\n                    \"invoiceid\": 26250,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"Westhofer\",\n                    \"notes\": \"\",\n                    \"organization\": \"Prosacco Group\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"50.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 376,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"paid\",\n                    \"po_number\": null,\n                    \"province\": \"Texas\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 4,\n                    \"street\": \"70347 Ramsey Plaza\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 13:28:17\",\n                    \"v3_status\": \"paid\",\n                    \"vat_name\": null,\n                    \"vat_number\": null,\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"8000.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-20\",\n                    \"created_at\": \"2019-04-18 09:53:46\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": \"2019-04-19\",\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-04-20\",\n                    \"due_offset_days\": 0,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-20\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 24068,\n                    \"invoice_number\": \"0000002\",\n                    \"invoiceid\": 24068,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"8000.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"paid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": true,\n                    \"status\": 4,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": \"\",\n                    \"updated\": \"2019-04-19 13:59:30\",\n                    \"v3_status\": \"paid\",\n                    \"vat_name\": \"\",\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                },\n                {\n                    \"accountid\": \"wkMd2g\",\n                    \"accounting_systemid\": \"wkMd2g\",\n                    \"address\": \"\",\n                    \"amount\": {\n                        \"amount\": \"1065.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"auto_bill\": false,\n                    \"autobill_status\": null,\n                    \"basecampid\": 0,\n                    \"city\": \"\",\n                    \"code\": \"\",\n                    \"country\": \"Canada\",\n                    \"create_date\": \"2019-04-18\",\n                    \"created_at\": \"2019-04-18 09:38:49\",\n                    \"currency_code\": \"USD\",\n                    \"current_organization\": \"first company\",\n                    \"customerid\": 31006,\n                    \"date_paid\": null,\n                    \"deposit_amount\": null,\n                    \"deposit_percentage\": null,\n                    \"deposit_status\": \"none\",\n                    \"description\": \"it's a computer hardware version 1\",\n                    \"discount_description\": null,\n                    \"discount_total\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"discount_value\": \"0\",\n                    \"display_status\": \"sent\",\n                    \"dispute_status\": null,\n                    \"due_date\": \"2019-05-18\",\n                    \"due_offset_days\": 30,\n                    \"estimateid\": 0,\n                    \"ext_archive\": 0,\n                    \"fname\": \"Client\",\n                    \"fulfillment_date\": \"2019-04-18\",\n                    \"generation_date\": null,\n                    \"gmail\": false,\n                    \"id\": 24042,\n                    \"invoice_number\": \"0000001\",\n                    \"invoiceid\": 24042,\n                    \"language\": \"en\",\n                    \"last_order_status\": null,\n                    \"lname\": \"one\",\n                    \"notes\": \"\",\n                    \"organization\": \"first company\",\n                    \"outstanding\": {\n                        \"amount\": \"1065.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"ownerid\": 1,\n                    \"paid\": {\n                        \"amount\": \"0.00\",\n                        \"code\": \"USD\"\n                    },\n                    \"parent\": 0,\n                    \"payment_details\": \"\",\n                    \"payment_status\": \"unpaid\",\n                    \"po_number\": null,\n                    \"province\": \"\",\n                    \"return_uri\": null,\n                    \"sentid\": 1,\n                    \"show_attachments\": false,\n                    \"status\": 2,\n                    \"street\": \"\",\n                    \"street2\": \"\",\n                    \"template\": \"clean-grouped\",\n                    \"terms\": null,\n                    \"updated\": \"2019-04-18 09:40:07\",\n                    \"v3_status\": \"sent\",\n                    \"vat_name\": null,\n                    \"vat_number\": \"\",\n                    \"vis_state\": 0\n                }\n            ],\n            \"page\": 1,\n            \"pages\": 1,\n            \"per_page\": 15,\n            \"total\": 12\n        }\n    }\n}"
    }
  ]
}