PowerBuilder / New FreshBooks / Create Expense
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Account_name
string ls_Accountid
string ls_Accounting_systemid
string ls_Amount
string ls_Code
integer li_Attachmentid
integer li_Id
string ls_V_Jwt
string ls_Media_type
string ls_Background_jobid
string ls_Bank_name
integer li_Categoryid
integer li_Clientid
integer li_Compounded_tax
string ls_Date
integer li_Expenseid
integer li_Ext_invoiceid
integer li_Ext_systemid
integer li_From_bulk_import
integer li_Has_receipt
integer li_ExpenseId
integer li_Include_receipt
string ls_Invoiceid
integer li_Is_cogs
integer li_Isduplicate
string ls_Markup_percent
string ls_Notes
string ls_Profileid
integer li_Projectid
integer li_Staffid
integer li_Status
string ls_TaxAmount1Amount
string ls_TaxAmount1Code
string ls_TaxAmount2
string ls_TaxName1
string ls_TaxName2
string ls_TaxPercent1
string ls_TaxPercent2
string ls_Transactionid
string ls_Updated
string ls_Vendor
integer li_Vis_state
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
// Use this online tool to generate code from sample JSON: Generate Code to Create JSON
// The following JSON is sent in the request body.
// {
// "expense": {
// "transactionid": null,
// "status": null,
// "has_receipt": false,
// "always_remember": false,
// "is_cogs": true,
// "account_name": null,
// "include_receipt": false,
// "amount": {
// "amount": "79.73",
// "code": "USD"
// },
// "notes": "Purchased Gasoline for deliveries",
// "vendor": "Shell Gas Station",
// "date": "2019-04-24",
// "staffid": 1,
// "author_name": null,
// "taxName1": "other tax",
// "taxName2": null,
// "taxAmount1": {
// "amount": "9.17",
// "code": "USD"
// },
// "taxPercent1": 13,
// "taxPercent2": null,
// "markup_percent": 20,
// "invoiceid": null,
// "attachment": {
// "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA",
// "media_type": "image/png",
// "expenseid": null
// },
// "categoryid": "65679",
// "category_name": "",
// "clientid": 485558,
// "converse_projectid": 12345
// }
// }
loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")
loo_Json.UpdateNull("expense.transactionid")
loo_Json.UpdateNull("expense.status")
loo_Json.UpdateBool("expense.has_receipt",0)
loo_Json.UpdateBool("expense.always_remember",0)
loo_Json.UpdateBool("expense.is_cogs",1)
loo_Json.UpdateNull("expense.account_name")
loo_Json.UpdateBool("expense.include_receipt",0)
loo_Json.UpdateString("expense.amount.amount","79.73")
loo_Json.UpdateString("expense.amount.code","USD")
loo_Json.UpdateString("expense.notes","Purchased Gasoline for deliveries")
loo_Json.UpdateString("expense.vendor","Shell Gas Station")
loo_Json.UpdateString("expense.date","2019-04-24")
loo_Json.UpdateInt("expense.staffid",1)
loo_Json.UpdateNull("expense.author_name")
loo_Json.UpdateString("expense.taxName1","other tax")
loo_Json.UpdateNull("expense.taxName2")
loo_Json.UpdateString("expense.taxAmount1.amount","9.17")
loo_Json.UpdateString("expense.taxAmount1.code","USD")
loo_Json.UpdateInt("expense.taxPercent1",13)
loo_Json.UpdateNull("expense.taxPercent2")
loo_Json.UpdateInt("expense.markup_percent",20)
loo_Json.UpdateNull("expense.invoiceid")
loo_Json.UpdateString("expense.attachment.jwt","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA")
loo_Json.UpdateString("expense.attachment.media_type","image/png")
loo_Json.UpdateNull("expense.attachment.expenseid")
loo_Json.UpdateString("expense.categoryid","65679")
loo_Json.UpdateString("expense.category_name","")
loo_Json.UpdateInt("expense.clientid",485558)
loo_Json.UpdateInt("expense.converse_projectid",12345)
// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_Http.SetRequestHeader("Content-Type","application/json")
loo_Resp = loo_Http.PostJson3("https://api.freshbooks.com/accounting/account/{{accountId}}/expenses/expenses?include%5B%5D=attachment","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_Json
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
destroy loo_Resp
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "response": {
// "result": {
// "expense": {
// "account_name": "",
// "accountid": null,
// "accounting_systemid": "wkMd2g",
// "amount": {
// "amount": "79.73",
// "code": "USD"
// },
// "attachment": {
// "attachmentid": 8670,
// "id": 8670,
// "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA",
// "media_type": "image/png"
// },
// "background_jobid": null,
// "bank_name": "",
// "categoryid": 2003174,
// "clientid": 0,
// "compounded_tax": false,
// "date": "2019-04-24",
// "expenseid": 1825574,
// "ext_invoiceid": 0,
// "ext_systemid": 0,
// "from_bulk_import": false,
// "has_receipt": true,
// "id": 1825574,
// "include_receipt": false,
// "invoiceid": null,
// "is_cogs": false,
// "isduplicate": true,
// "markup_percent": "0",
// "notes": "Purchased Gasoline for deliveries",
// "profileid": null,
// "projectid": 0,
// "staffid": 1,
// "status": 0,
// "taxAmount1": {
// "amount": "9.17",
// "code": "USD"
// },
// "taxAmount2": null,
// "taxName1": "other tax",
// "taxName2": null,
// "taxPercent1": "13",
// "taxPercent2": null,
// "transactionid": null,
// "updated": "2019-04-24 11:33:35",
// "vendor": "Shell Gas Station",
// "vis_state": 0
// }
// }
// }
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
ls_Account_name = loo_JResp.StringOf("response.result.expense.account_name")
ls_Accountid = loo_JResp.StringOf("response.result.expense.accountid")
ls_Accounting_systemid = loo_JResp.StringOf("response.result.expense.accounting_systemid")
ls_Amount = loo_JResp.StringOf("response.result.expense.amount.amount")
ls_Code = loo_JResp.StringOf("response.result.expense.amount.code")
li_Attachmentid = loo_JResp.IntOf("response.result.expense.attachment.attachmentid")
li_Id = loo_JResp.IntOf("response.result.expense.attachment.id")
ls_V_Jwt = loo_JResp.StringOf("response.result.expense.attachment.jwt")
ls_Media_type = loo_JResp.StringOf("response.result.expense.attachment.media_type")
ls_Background_jobid = loo_JResp.StringOf("response.result.expense.background_jobid")
ls_Bank_name = loo_JResp.StringOf("response.result.expense.bank_name")
li_Categoryid = loo_JResp.IntOf("response.result.expense.categoryid")
li_Clientid = loo_JResp.IntOf("response.result.expense.clientid")
li_Compounded_tax = loo_JResp.BoolOf("response.result.expense.compounded_tax")
ls_Date = loo_JResp.StringOf("response.result.expense.date")
li_Expenseid = loo_JResp.IntOf("response.result.expense.expenseid")
li_Ext_invoiceid = loo_JResp.IntOf("response.result.expense.ext_invoiceid")
li_Ext_systemid = loo_JResp.IntOf("response.result.expense.ext_systemid")
li_From_bulk_import = loo_JResp.BoolOf("response.result.expense.from_bulk_import")
li_Has_receipt = loo_JResp.BoolOf("response.result.expense.has_receipt")
li_ExpenseId = loo_JResp.IntOf("response.result.expense.id")
li_Include_receipt = loo_JResp.BoolOf("response.result.expense.include_receipt")
ls_Invoiceid = loo_JResp.StringOf("response.result.expense.invoiceid")
li_Is_cogs = loo_JResp.BoolOf("response.result.expense.is_cogs")
li_Isduplicate = loo_JResp.BoolOf("response.result.expense.isduplicate")
ls_Markup_percent = loo_JResp.StringOf("response.result.expense.markup_percent")
ls_Notes = loo_JResp.StringOf("response.result.expense.notes")
ls_Profileid = loo_JResp.StringOf("response.result.expense.profileid")
li_Projectid = loo_JResp.IntOf("response.result.expense.projectid")
li_Staffid = loo_JResp.IntOf("response.result.expense.staffid")
li_Status = loo_JResp.IntOf("response.result.expense.status")
ls_TaxAmount1Amount = loo_JResp.StringOf("response.result.expense.taxAmount1.amount")
ls_TaxAmount1Code = loo_JResp.StringOf("response.result.expense.taxAmount1.code")
ls_TaxAmount2 = loo_JResp.StringOf("response.result.expense.taxAmount2")
ls_TaxName1 = loo_JResp.StringOf("response.result.expense.taxName1")
ls_TaxName2 = loo_JResp.StringOf("response.result.expense.taxName2")
ls_TaxPercent1 = loo_JResp.StringOf("response.result.expense.taxPercent1")
ls_TaxPercent2 = loo_JResp.StringOf("response.result.expense.taxPercent2")
ls_Transactionid = loo_JResp.StringOf("response.result.expense.transactionid")
ls_Updated = loo_JResp.StringOf("response.result.expense.updated")
ls_Vendor = loo_JResp.StringOf("response.result.expense.vendor")
li_Vis_state = loo_JResp.IntOf("response.result.expense.vis_state")
destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JResp
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-H "Content-Type: application/json"
-d '{
"expense": {
"transactionid": null,
"status": null,
"has_receipt": false,
"always_remember": false,
"is_cogs": true,
"account_name": null,
"include_receipt": false,
"amount": {
"amount": "79.73",
"code": "USD"
},
"notes": "Purchased Gasoline for deliveries",
"vendor": "Shell Gas Station",
"date": "2019-04-24",
"staffid": 1,
"author_name": null,
"taxName1": "other tax",
"taxName2": null,
"taxAmount1": {
"amount": "9.17",
"code": "USD"
},
"taxPercent1": 13,
"taxPercent2": null,
"markup_percent": 20,
"invoiceid": null,
"attachment": {
"jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA",
"media_type": "image/png",
"expenseid": null
},
"categoryid": "65679",
"category_name": "",
"clientid": 485558,
"converse_projectid": 12345
}
}'
https://api.freshbooks.com/accounting/account/{{accountId}}/expenses/expenses?include%5B%5D=attachment
Postman Collection Item JSON
{
"name": "Create Expense",
"event": [
{
"listen": "test",
"script": {
"exec": [
"let jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"expenseId\", jsonData.response.result.expense.id);",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"expense\": {\n \"transactionid\": null,\n \"status\": null,\n \"has_receipt\": false,\n \"always_remember\": false,\n \"is_cogs\": true,\n \"account_name\": null,\n \"include_receipt\": false,\n \"amount\": {\n \"amount\": \"79.73\",\n \"code\": \"USD\"\n },\n \"notes\": \"Purchased Gasoline for deliveries\",\n \"vendor\": \"Shell Gas Station\",\n \"date\": \"2019-04-24\",\n \"staffid\": 1,\n \"author_name\": null,\n \"taxName1\": \"other tax\",\n \"taxName2\": null,\n \"taxAmount1\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"taxPercent1\": 13,\n \"taxPercent2\": null,\n \"markup_percent\": 20,\n \"invoiceid\": null,\n \"attachment\": {\n \"jwt\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA\",\n \"media_type\": \"image/png\",\n \"expenseid\": null\n },\n \"categoryid\": \"65679\",\n \"category_name\": \"\",\n \"clientid\": 485558,\n \"converse_projectid\": 12345\t\n }\n}"
},
"url": {
"raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/expenses/expenses?include%5B%5D=attachment",
"protocol": "https",
"host": [
"api",
"freshbooks",
"com"
],
"path": [
"accounting",
"account",
"{{accountId}}",
"expenses",
"expenses"
],
"query": [
{
"key": "include%5B%5D",
"value": "attachment"
}
]
},
"description": "Category can be passed as categoryid or category_name, both as string values."
},
"response": [
{
"name": "Create Expense",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"expense\": {\n \"transactionid\": null,\n \"status\": null,\n \"has_receipt\": false,\n \"always_remember\": false,\n \"is_cogs\": false,\n \"account_name\": null,\n \"include_receipt\": false,\n \"amount\": {\n \"amount\": \"79.73\",\n \"code\": \"USD\"\n },\n \"notes\": \"Purchased Gasoline for deliveries\",\n \"vendor\": \"Shell Gas Station\",\n \"date\": \"2019-04-24\",\n \"staffid\": 1,\n \"author_name\": null,\n \"taxName1\": \"other tax\",\n \"taxName2\": null,\n \"taxAmount1\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"taxPercent1\": 13,\n \"taxPercent2\": null,\n \"markup_percent\": null,\n \"invoiceid\": null,\n \"attachment\": {\n \"jwt\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA\",\n \"media_type\": \"image/png\",\n \"expenseid\": null\n },\n \"categoryid\": \"2003174\",\n \"clientid\": null\n }\n}"
},
"url": {
"raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/expenses/expenses?include%5B%5D=attachment",
"protocol": "https",
"host": [
"api",
"freshbooks",
"com"
],
"path": [
"accounting",
"account",
"{{accountId}}",
"expenses",
"expenses"
],
"query": [
{
"key": "include%5B%5D",
"value": "attachment"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "X-NewRelic-App-Data",
"value": "PxQBWV5TCBABVlVSAwEOVlcTGhE1AwE2QgNWEVlbQFtcCxYnRA9QFg1ZWU4DFVdfRgFPCkNFR0gBSUZWDBUGEQoHQBJdVkdXQEcVUR1RHVBVBQBZU1UMCwNQVFsDBgVRSAAFBVBKQVFWUwEACAkBCgJcCFQBAAtASFBWDRUGZQ=="
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Expires",
"value": "Tue, 24 Apr 2018 15:33:35 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": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Accept-Ranges",
"value": "bytes"
},
{
"key": "Date",
"value": "Wed, 24 Apr 2019 15:33:35 GMT"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Served-By",
"value": "cache-jfk8129-JFK"
},
{
"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 \"expense\": {\n \"account_name\": \"\",\n \"accountid\": null,\n \"accounting_systemid\": \"wkMd2g\",\n \"amount\": {\n \"amount\": \"79.73\",\n \"code\": \"USD\"\n },\n \"attachment\": {\n \"attachmentid\": 8670,\n \"id\": 8670,\n \"jwt\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50Ijo0MjM2NDEwLCJvcmlnaW5hbF9maWxlbmFtZSI6IlNjcmVlbiBTaG90IDIwMTktMDQtMjQgYXQgOS4zOS4xOSBBTS5wbmciLCJidWNrZXQiOiJ1cGxvYWRzIiwiZmlsZW5hbWUiOiJ1cGxvYWQtMGU2ZDMwOWQ1ZTI5MzA3NmNhMGIyNDdkODFlOGJlNWE4NDZlZWE0YSIsImxlbmd0aCI6MTkxNDcyLCJrZXkiOiInZG9jcy0nLTQyMzY0MTAvdXBsb2FkLTBlNmQzMDlkNWUyOTMwNzZjYTBiMjQ3ZDgxZThiZTVhODQ2ZWVhNGEifQ.SOoW3_nTUrxjYO76g1UXHPIrO_aLbTpXCHEa-ZcnejA\",\n \"media_type\": \"image/png\"\n },\n \"background_jobid\": null,\n \"bank_name\": \"\",\n \"categoryid\": 2003174,\n \"clientid\": 0,\n \"compounded_tax\": false,\n \"date\": \"2019-04-24\",\n \"expenseid\": 1825574,\n \"ext_invoiceid\": 0,\n \"ext_systemid\": 0,\n \"from_bulk_import\": false,\n \"has_receipt\": true,\n \"id\": 1825574,\n \"include_receipt\": false,\n \"invoiceid\": null,\n \"is_cogs\": false,\n \"isduplicate\": true,\n \"markup_percent\": \"0\",\n \"notes\": \"Purchased Gasoline for deliveries\",\n \"profileid\": null,\n \"projectid\": 0,\n \"staffid\": 1,\n \"status\": 0,\n \"taxAmount1\": {\n \"amount\": \"9.17\",\n \"code\": \"USD\"\n },\n \"taxAmount2\": null,\n \"taxName1\": \"other tax\",\n \"taxName2\": null,\n \"taxPercent1\": \"13\",\n \"taxPercent2\": null,\n \"transactionid\": null,\n \"updated\": \"2019-04-24 11:33:35\",\n \"vendor\": \"Shell Gas Station\",\n \"vis_state\": 0\n }\n }\n }\n}"
}
]
}