{"info":{"_postman_id":"54b797b3-871c-480f-a49a-278f25b8d267","name":"QuickBooks Online API Orchestrated API Collections","description":"This collection contains 5 Orchestrated samples of common QBO use cases.\n\nCreate Receipt - This orchestration contains the following flow of calls.  1. Create a customer 2.  Create an item  3. Create a reciept for the transaction between the customer and the item.\n\nCreate Payment - This orchestration contains the following flow of calls.  1. Create a customer 2.  Create an item  3. Create an invoice for a transaction between the customer and the item.  4. Create payment for the amount owed on invoice\n\nCreate an Expense - This orchestration contains the following flow of calls.  1. Create a bank account 2. Create an expense account 3. Create a purchase expense linked to the bank account\n\nCreate an Invoice - This orchestration contains the following flow of calls.  1. Create a customer 2.  Create an item  3. Create an invoice for a transaction between the customer and the item.\n\nPay Bills - This orchestration contains the following flow of calls.  1. Create an account 2.  Create a vendor  3. Create an bill for a vendor and the account created  4. Create a payment for the bill","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Create a BillPayment against a Vendor's Bill","item":[{"name":"Account-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        AccountId = jsonData.Account.Id;","        AccountName = jsonData.Account.Name","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Account Created AccountID is ' + AccountId + ' AccountName is ' + AccountName);","    ","    postman.setGlobalVariable(\"AccountId\", AccountId);","    postman.setGlobalVariable(\"AccountName\", AccountName);","}","",""]}}],"id":"dc911dfd-318f-4e60-bea1-b75137a1e9c2","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"AccountType\": \"Expense\",\n  \"Name\": \"ExpenseAccount - {{$guid}}\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/account?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","account"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a new Account"},"response":[],"_postman_id":"dc911dfd-318f-4e60-bea1-b75137a1e9c2"},{"name":"CC Account-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        AccountId = jsonData.Account.Id;","        AccountName = jsonData.Account.Name","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Account Created AccountID is ' + AccountId + ' AccountName is ' + AccountName);","    ","    postman.setGlobalVariable(\"CCAccountId\", AccountId);","    postman.setGlobalVariable(\"CCAccountName\", AccountName);","}","",""]}}],"id":"f2c4c88a-dd98-44a6-a7c1-f1493257df60","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492637213","nonce":"DqH9sJXQUrh","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Name\": \"CreditCardAccount - {{$guid}}\",\n    \"SubAccount\": false,\n    \"FullyQualifiedName\": \"Mastercard\",\n    \"Active\": true,\n    \"Classification\": \"Liability\",\n    \"AccountType\": \"Credit Card\",\n    \"AccountSubType\": \"CreditCard\",\n    \"CurrentBalance\": 100.00,\n    \"CurrentBalanceWithSubAccounts\": 100.00,\n    \"domain\": \"QBO\",\n    \"sparse\": false\n  }"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/account?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","account"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a new Check Account"},"response":[],"_postman_id":"f2c4c88a-dd98-44a6-a7c1-f1493257df60"},{"name":"Vendor-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        VendorId = jsonData.Vendor.Id;","        VendorName = jsonData.Vendor.DisplayName;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log(\"New Vendor has been created, VendorID is \" + VendorId + \" and the VendorName is \"+ VendorName);","    ","    postman.setGlobalVariable(\"VendorId\", VendorId);","    postman.setGlobalVariable(\"VendorName\", VendorName);","}",""]}}],"id":"0e42942b-9632-4b9c-8bee-ec20f7f09cfc","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492637448","nonce":"J21WgunX3uH","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"DisplayName\": \"VendorName - {{$guid}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/vendor?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","vendor"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a vendor object\nMethod : POST\n\n"},"response":[],"_postman_id":"0e42942b-9632-4b9c-8bee-ec20f7f09cfc"},{"name":"Bill-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        BillId = jsonData.Bill.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Bill Created BillID is ' + BillId);","    ","    postman.setGlobalVariable(\"BillId\", BillId);","}",""]}}],"id":"93c4d918-6f86-45c4-9038-b050560cc148","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"Line\":[\n        {\n            \"Id\":\"1\",\n            \"Amount\": 200.00,\n            \"DetailType\":\"AccountBasedExpenseLineDetail\",\n            \"AccountBasedExpenseLineDetail\":\n            {\n                \"AccountRef\":\n                {\n                    \"value\":\"{{AccountId}}\"\n                }\n            }\n        } \n    ],\n    \"VendorRef\":\n    {\n        \"value\":\"{{VendorId}}\"\n    }\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/bill?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","bill"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a bill\nContent-Type:application/json\nMethod - POST"},"response":[],"_postman_id":"93c4d918-6f86-45c4-9038-b050560cc148"},{"name":"BillPayment-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        BillPaymentId = jsonData.BillPayment.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New BillPayment Created BillPaymentID is ' + BillPaymentId);","    ","    postman.setGlobalVariable(\"BillPaymentId\", BillPaymentId);","}",""]}}],"id":"35664af5-ba83-43a0-a889-957c318e9ae4","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492637793","nonce":"i3qn61dihko","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"VendorRef\": {\n      \"value\": \"{{VendorId}}\",\n      \"name\": \"{{VendorName}}\"\n  },\n        \"PayType\": \"CreditCard\",\n        \"CreditCardPayment\": {\n          \"CCAccountRef\": {\n            \"value\": \"{{CCAccountId}}\",\n            \"name\": \"{{CCAccountName}}\"\n          }\n        },\n  \"TotalAmt\": 100.00,\n  \"PrivateNote\": \"Acct. 1JK90\",\n  \"Line\": [\n    {\n      \"Amount\": 100.00,\n      \"LinkedTxn\": [\n        {\n          \"TxnId\": \"{{BillId}}\",\n          \"TxnType\": \"Bill\"\n        }\n      ]\n    }\n  ]\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/billpayment?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","billpayment"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a BillPayment against a pre-created bill\nContent-Type:application/json\nMethod - POST"},"response":[],"_postman_id":"35664af5-ba83-43a0-a889-957c318e9ae4"}],"id":"99168b84-ff9e-4895-a9d6-514f89274f5d","description":"Pay Bills - This orchestration contains the following flow of calls.  1. Create an account 2.  Create a vendor  3. Create an bill for a vendor and the account created  4. Create a payment for the bill","_postman_id":"99168b84-ff9e-4895-a9d6-514f89274f5d"},{"name":"Create a ReceivePayment against a Customer's Invoice","item":[{"name":"Customer-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","","  try {","    var jsonData = JSON.parse(responseBody);","    CustomerId = jsonData.Customer.Id;","    CustomerName = jsonData.Customer.DisplayName;","  } catch (e) {","    console.log(e);","  }","","  console.log('New Customer Created CustomerId is ' + CustomerId + \" the new customer name is \" + CustomerName);","","  postman.setGlobalVariable(\"CustomerId\", CustomerId);","  postman.setGlobalVariable(\"CustomerName\", CustomerName);","}",""]}}],"id":"0fb06126-16a2-4be3-835a-81b1d16ab076","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492201012","nonce":"qJQrfSRxJCT","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"DisplayName\": \"CustomerName - {{$guid}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/customer?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","customer"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a customer\nMethod : POST"},"response":[],"_postman_id":"0fb06126-16a2-4be3-835a-81b1d16ab076"},{"name":"Item-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ItemId = jsonData.Item.Id;","        ItemName = jsonData.Item.Name;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log(\"New Item has been created, ItemID is \" + ItemId + \" and the ItemName is \"+ ItemName);","    ","    postman.setGlobalVariable(\"ItemId\", ItemId);","    postman.setGlobalVariable(\"ItemName\", ItemName);","}",""]}}],"id":"efedbc96-6271-4eda-b277-c7809a39e45d","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492465809","nonce":"Bwq9WFTbu3x","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Name\": \"SerivceItem - {{$guid}}\",\n  \"IncomeAccountRef\": {\n    \"value\": \"1\",\n    \"name\": \"Services\"\n  },\n  \"Type\": \"Service\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/item?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","item"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"POST: Create an Item"},"response":[],"_postman_id":"efedbc96-6271-4eda-b277-c7809a39e45d"},{"name":"Invoice-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    try {","        InvoiceId = jsonData.Invoice.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Invoice Created InvoiceID is ' + InvoiceId);","    ","    postman.setGlobalVariable(\"InvoiceId\", InvoiceId);","}","",""]}}],"id":"5fe38ca2-4b55-456b-8eb3-009c1bf12d9f","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1490823127,"nonce":"WRZ5mb","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Line\": [\n    {\n      \"Amount\": 100.00,\n      \"DetailType\": \"SalesItemLineDetail\",\n      \"SalesItemLineDetail\": {\n        \"ItemRef\": {\n          \"value\": \"{{ItemId}}\",\n          \"name\": \"{{ItemName}}\"\n        },\n        \"Qty\": 1\n      }\n    }\n  ],\n  \"CustomerRef\": {\n    \"value\": \"{{CustomerId}}\"\n  }\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/invoice?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","invoice"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"POST: Create an Invoice"},"response":[],"_postman_id":"5fe38ca2-4b55-456b-8eb3-009c1bf12d9f"},{"name":"Payment-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    try {","        PaymentId = jsonData.Payment.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Payment Created PaymentId is ' + PaymentId);","    ","    postman.setGlobalVariable(\"PaymentId\", PaymentId);","}","",""]}}],"id":"ba519719-e8ff-4da7-bd1c-ac41dc6e44ac","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1490823127,"nonce":"WRZ5mb","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"CustomerRef\":\n    {\n        \"value\": \"{{CustomerId}}\",\n        \"name\": \"{{CustomerName}}\"\n    },\n    \"TotalAmt\": 100.00,\n    \"Line\": [\n    {\n        \"Amount\": 100.00,\n        \"LinkedTxn\": [\n        {\n            \"TxnId\": \"{{InvoiceId}}\",\n            \"TxnType\": \"Invoice\"\n        }]\n    }]\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/payment?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","payment"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create an payment object\nMethod : POST\n"},"response":[],"_postman_id":"ba519719-e8ff-4da7-bd1c-ac41dc6e44ac"}],"id":"b141621c-7d6c-4776-8a2e-a111500390db","description":"Create Payment - This orchestration contains the following flow of calls.  1. Create a customer 2.  Create an item  3. Create an invoice for a transaction between the customer and the item.  4. Create payment for the amount owed on invoice","_postman_id":"b141621c-7d6c-4776-8a2e-a111500390db"},{"name":"Create a SalesReceipt for a Customer","item":[{"name":"Customer-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["","tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        CustomerId = jsonData.Customer.Id;","        CustomerDisplayName = jsonData.Customer.DisplayName","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Customer Created CustomerID is ' + CustomerId);","    ","    postman.setGlobalVariable(\"CustomerId\", CustomerId);","    postman.setGlobalVariable(\"CustomerDisplayName\", CustomerDisplayName);","}","",""]}}],"id":"5f8606ff-9cb3-4999-acea-03777fdb8dd6","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"DisplayName\": \"CustomerName - {{$guid}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/customer?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","customer"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"5f8606ff-9cb3-4999-acea-03777fdb8dd6"},{"name":"Item-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["","","tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ItemId = jsonData.Item.Id;","        ItemName = jsonData.Item.Name;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log(\"New Item has been created, ItemID is \" + ItemId + \" and the ItemName is \"+ ItemName);","    ","    postman.setGlobalVariable(\"ItemId\", ItemId);","    postman.setGlobalVariable(\"ItemName\", ItemName);","}",""]}}],"id":"d7f4048f-ef4f-4ab6-a842-c5a8a07b20dc","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1492465982","nonce":"ptJGMQh0tpS","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Name\": \"ServiceItem - {{$guid}}\",\n  \"IncomeAccountRef\": {\n    \"value\": \"1\",\n    \"name\": \"Services\"\n  },\n  \"Type\": \"Service\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/item?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","item"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"d7f4048f-ef4f-4ab6-a842-c5a8a07b20dc"},{"name":"Reciept-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        SalesReceiptId = jsonData.SalesReceipt.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Sales Receipt create, SalesReceiptId is ' + SalesReceiptId);","    ","    postman.setGlobalVariable(\"SalesReceiptId\", SalesReceiptId);","}","",""]}}],"id":"5c28377f-e559-44b9-98d3-abefe1eeae5d","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n        \"Line\": [\n          {\n            \"Id\": \"1\",\n            \"LineNum\": 1,\n            \"Description\": \"Sold item\",\n            \"Amount\": 1000,\n            \"DetailType\": \"SalesItemLineDetail\",\n            \"SalesItemLineDetail\": {\n              \"ItemRef\": {\n                \"value\": \"{{ItemId}}\",\n                \"name\": \"{{ItemName}}\"\n              },\n              \"UnitPrice\": 1000,\n              \"Qty\": 1,\n              \"TaxCodeRef\": {\n                \"value\": \"NON\"\n              }\n            }\n          },\n          {\n            \"Amount\": 1000,\n            \"DetailType\": \"SubTotalLineDetail\",\n            \"SubTotalLineDetail\": {}\n          }\n        ],\n        \"CustomerRef\": {\n          \"value\": \"{{CustomerId}}\",\n          \"name\": \"{{CustomerDisplayName}}\"\n        }\n      }"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/salesreceipt?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","salesreceipt"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"5c28377f-e559-44b9-98d3-abefe1eeae5d"}],"id":"072967c6-76b2-4211-aab0-c7c72d093828","description":"Create Receipt - This orchestration contains the following flow of calls.  1. Create a customer 2.  Create an item  3. Create a reciept for the transaction between the customer and the item.","_postman_id":"072967c6-76b2-4211-aab0-c7c72d093828"},{"name":"Create a Time-Activity for an Employee","item":[{"name":"Employee-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","","  try {","    var jsonData = JSON.parse(responseBody);","    EmployeeId = jsonData.Employee.Id;","    EmployeeName = jsonData.Employee.DisplayName;","  } catch (e) {","    console.log(e);","  }","","  console.log('New Customer Created EmployeeId is ' + EmployeeId + \" the new customer name is \" + EmployeeName);","","  postman.setGlobalVariable(\"EmployeeId\", EmployeeId);","  postman.setGlobalVariable(\"EmployeeName\", EmployeeName);","}",""]}}],"id":"e3dc5bbd-2103-46cc-96ba-8bb45453d116","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1493071678","nonce":"DEwmf3rOR1L","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"GivenName\": \"GivenName - {{$timestamp}}\",\n  \"FamilyName\": \"FamilyName - {{$timestamp}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/employee?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","employee"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"e3dc5bbd-2103-46cc-96ba-8bb45453d116"},{"name":"Customer-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","","  try {","    var jsonData = JSON.parse(responseBody);","    CustomerId = jsonData.Customer.Id;","    CustomerName = jsonData.Customer.DisplayName;","  } catch (e) {","    console.log(e);","  }","","  console.log('New Customer Created CustomerId is ' + CustomerId + \" the new customer name is \" + CustomerName);","","  postman.setGlobalVariable(\"CustomerId\", CustomerId);","  postman.setGlobalVariable(\"CustomerName\", CustomerName);","}",""]}}],"id":"e6bcf506-22a6-4d03-aac9-c18bfa7d118e","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1493071682","nonce":"PZWINcuqvCH","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"DisplayName\": \"CustomerName - {{$guid}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/customer?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","customer"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a customer\nMethod : POST"},"response":[],"_postman_id":"e6bcf506-22a6-4d03-aac9-c18bfa7d118e"},{"name":"TimeActivity-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","","  try {","    var jsonData = JSON.parse(responseBody);","    TimeActivityId = jsonData.TimeActivity.Id;","    HourlyRate = jsonData.TimeActivity.HourlyRate;","    HoursWorked = jsonData.TimeActivity.Hours;","    ItemRef = jsonData.TimeActivity.ItemRef;","    Amount = HourlyRate * HoursWorked;","  } catch (e) {","    console.log(e);","  }","","  console.log('New TimeActivity Created TimeActivityID is ' + TimeActivityId);","","  postman.setGlobalVariable(\"TimeActivityId\", TimeActivityId);","  postman.setGlobalVariable(\"HourlyRate\", HourlyRate);","  postman.setGlobalVariable(\"HoursWorked\", HoursWorked);","  postman.setGlobalVariable(\"Amount\", Amount);","  postman.setGlobalVariable(\"ItemRefValue\", ItemRef.value);","  postman.setGlobalVariable(\"ItemRefName\", ItemRef.name);","}","",""]}}],"id":"55d0cb14-f118-431c-bb6b-8f40117cec74","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1493075374","nonce":"v6hc2tNyTE5","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"NameOf\": \"Employee\",\n    \"EmployeeRef\": {\n        \"value\": \"{{EmployeeId}}\",\n        \"name\": \"{{EmployeeName}}\"\n    },\n    \"BillableStatus\": \"Billable\",\n    \"HourlyRate\": \"20\",\n    \"CustomerRef\": {\n    \t\"value\": \"{{CustomerId}}\"\n    \t},\n    \"Hours\": 3\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/timeactivity?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","timeactivity"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"55d0cb14-f118-431c-bb6b-8f40117cec74"},{"name":"Invoice-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    try {","        InvoiceId = jsonData.Invoice.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Invoice Created InvoiceID is ' + InvoiceId);","    ","    postman.setGlobalVariable(\"InvoiceId\", InvoiceId);","}","",""]}}],"id":"c27f65f7-fb53-42cb-95b3-0a27235cb180","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":"1493075378","nonce":"owvlCHF3FAw","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"LinkedTxn\": [{\n            \"TxnId\": \"{{TimeActivityId}}\",\n            \"TxnType\": \"TimeActivity\"\n        }],\n   \"Line\": [\n     {\n       \"Id\": \"1\",\n       \"LineNum\": 1,\n       \"Description\": \"An employee has worked 3 hours for a customer at an hourly rate of 20\",\n       \"Amount\": \"{{Amount}}\",\n       \"DetailType\": \"SalesItemLineDetail\",\n       \"SalesItemLineDetail\": {\n         \"ItemRef\": {\n           \"value\": \"{{ItemRefValue}}\",\n           \"name\": \"{{ItemRefName}}\"\n         },\n         \"UnitPrice\": \"{{HourlyRate}}\",\n         \"Qty\": \"{{HoursWorked}}\"\n       }\n     },\n     {\n       \"DetailType\": \"SubTotalLineDetail\",\n       \"SubTotalLineDetail\": {}\n     }\n   ],\n  \"CustomerRef\": {\n    \"value\": \"{{CustomerId}}\"\n  }\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/invoice?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","invoice"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"POST: Create an Invoice for a TimeActivity.  In this scenario the hours worked, hourly rate, time activity id are all passed from the TimeActivity Create call.\n\nOne note to make, in this particular sandbox company, no tax has been set up.  If tax has been enabled, please include the following in the request:\n\n\"TxnTaxDetail\": {\n     \"TotalTax\": 0,\n     \"TaxLine\": [\n       {\n         \"Amount\": 0,\n         \"DetailType\": \"TaxLineDetail\",\n         \"TaxLineDetail\": {\n           \"TaxRateRef\": {\n             \"value\": \"2\"\n           },\n           \"PercentBased\": true,\n           \"TaxPercent\": 0,\n           \"NetAmountTaxable\": 160.0\n         }\n       }\n    }"},"response":[],"_postman_id":"c27f65f7-fb53-42cb-95b3-0a27235cb180"}],"id":"a4b30d94-b0e5-4ade-b97a-e84a412e1ab5","description":"Create a TimeActivity - This orchestration contains the following flow of calls.  1. Create an employee 2.  Create a customer for whom the employee will work for  3. Create a Time Activity which indicates the that the employee worked for the customer and how many hours and the hourly rate of the employee.  4. Create an Invoice for a TimeActivity.  In this scenario the hours worked, hourly rate, time activity id are all passed from the TimeActivity Create call.\n\nOne note to make, in this particular sandbox company, no tax has been set up.  If tax has been enabled, please include the following in the request:\n\n\"TxnTaxDetail\": {\n     \"TotalTax\": 0,\n     \"TaxLine\": [\n       {\n         \"Amount\": 0,\n         \"DetailType\": \"TaxLineDetail\",\n         \"TaxLineDetail\": {\n           \"TaxRateRef\": {\n             \"value\": \"2\"\n           },\n           \"PercentBased\": true,\n           \"TaxPercent\": 0,\n           \"NetAmountTaxable\": 160.0\n         }\n       }\n    }","_postman_id":"a4b30d94-b0e5-4ade-b97a-e84a412e1ab5"},{"name":"Create an Expense for a Vendor","item":[{"name":"Account-Create Bank","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        BankAccountId = jsonData.Account.Id;","        BankAccountName = jsonData.Account.Name;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Bank Account Created BankAccountID is ' + BankAccountId + ' BankAccountName is ' + BankAccountName);","    ","    postman.setGlobalVariable(\"BankAccountId\", BankAccountId);","    postman.setGlobalVariable(\"BankAccountName\", BankAccountName);","}","",""]}}],"id":"4846e180-4055-453c-a8e3-3e541b39b8fe","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492202993,"nonce":"iLvlNc","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"AccountType\": \"Bank\",\n  \"Name\": \"BankAccount - {{$guid}}\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/account?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","account"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a new Bank Account"},"response":[],"_postman_id":"4846e180-4055-453c-a8e3-3e541b39b8fe"},{"name":"Account-Create Expense","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        AccountId = jsonData.Account.Id;","        AccountName = jsonData.Account.Name;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Account Created AccountID is ' + AccountId + ' AccountName is ' + AccountName);","    ","    postman.setGlobalVariable(\"AccountId\", AccountId);","    postman.setGlobalVariable(\"AccountName\", AccountName);","}","",""]}}],"id":"a977143f-18e0-4b8d-b2fd-1c9d4bf008b8","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492202993,"nonce":"iLvlNc","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"AccountType\": \"Expense\",\n  \"Name\": \"ExpenseAccount - {{$guid}}\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/account?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","account"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a new Expense Account"},"response":[],"_postman_id":"a977143f-18e0-4b8d-b2fd-1c9d4bf008b8"},{"name":"Purchase-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        PurchaseId = jsonData.Purchase.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Purchase Created PurchaseId is ' + PurchaseId);","    ","    postman.setGlobalVariable(\"PurchaseId\", PurchaseId);","}","",""]}}],"id":"93fc6712-bce9-405a-8094-16d109617fde","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203094,"nonce":"WfwZ7q","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"AccountRef\": {\n    \"value\": \"{{BankAccountId}}\",\n    \"name\": \"{{BankAccountName}}\"\n  },\n  \"PaymentType\": \"CreditCard\",\n  \"Line\": [\n    {\n      \"Amount\": 10.00,\n      \"DetailType\": \"AccountBasedExpenseLineDetail\",\n      \"AccountBasedExpenseLineDetail\": {\n       \"AccountRef\": {\n          \"name\": \"{{AccountName}}\",\n          \"value\": \"{{AccountId}}\"\n        }\n      }\n    }\n  ]\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/purchase?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","purchase"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]},"description":"Create a puchase object\nMethod : POST\n"},"response":[],"_postman_id":"93fc6712-bce9-405a-8094-16d109617fde"}],"id":"32c26563-442c-4b63-a90e-841e64076c41","description":"Create an Expense - This orchestration contains the following flow of calls.  1. Create a bank account 2. Create an expense account 3. Create a purchase expense linked to the bank account","_postman_id":"32c26563-442c-4b63-a90e-841e64076c41"},{"name":"Create an Invoice for a Customer","item":[{"name":"Customer-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        CustomerId = jsonData.Customer.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Customer Created CustomerID is ' + CustomerId);","    ","    postman.setGlobalVariable(\"CustomerId\", CustomerId);","}","",""]}}],"id":"4da13511-b247-47f0-83fb-401cdf46c132","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"DisplayName\": \"CustomerName - {{$guid}}\"\n}\n"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/customer?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","customer"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"4da13511-b247-47f0-83fb-401cdf46c132"},{"name":"Item-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ItemId = jsonData.Item.Id;","        ItemName = jsonData.Item.Name;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log(\"New Item has been created, ItemID is \" + ItemId + \" and the ItemName is \"+ ItemName);","    ","    postman.setGlobalVariable(\"ItemId\", ItemId);","    postman.setGlobalVariable(\"ItemName\", ItemName);","}",""]}}],"id":"fc8b6be6-3241-4511-85e6-56bdf8ad4565","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Name\": \"{{$guid}}\",\n  \"IncomeAccountRef\": {\n    \"value\": \"1\",\n    \"name\": \"Services\"\n  },\n  \"Type\": \"Service\"\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/item?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","item"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"fc8b6be6-3241-4511-85e6-56bdf8ad4565"},{"name":"Invoice-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200);","","if (responseCode.code === 200) {","    var jsonData = JSON.parse(responseBody);","    try {","        InvoiceId = jsonData.Invoice.Id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Invoice Created InvoiceID is ' + InvoiceId);","}","",""]}}],"id":"6dafe2f5-ef57-4aa9-aac9-386ae42bb756","request":{"auth":{"type":"oauth1","oauth1":{"consumerKey":"{{consumerKey}}","consumerSecret":"{{consumerSecret}}","token":"{{accessToken}}","tokenSecret":"{{accessSecret}}","signatureMethod":"HMAC-SHA1","timestamp":1492203509,"nonce":"Q2Ck7t","version":"1.0","realm":"","addParamsToHeader":true,"addEmptyParamsToSign":false}},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"Line\": [\n    {\n      \"Amount\": 100.00,\n      \"DetailType\": \"SalesItemLineDetail\",\n      \"SalesItemLineDetail\": {\n        \"ItemRef\": {\n          \"value\": \"{{ItemId}}\",\n          \"name\": \"{{ItemName}}\"\n        },\n        \"Qty\": 1\n      }\n    }\n  ],\n  \"CustomerRef\": {\n    \"value\": \"{{CustomerId}}\"\n  }\n}"},"url":{"raw":"https://{{baseurl}}/v3/company/{{companyid}}/invoice?minorversion={{minorversion}}","protocol":"https","host":["{{baseurl}}"],"path":["v3","company","{{companyid}}","invoice"],"query":[{"key":"minorversion","value":"{{minorversion}}"}]}},"response":[],"_postman_id":"6dafe2f5-ef57-4aa9-aac9-386ae42bb756"}],"id":"a6142804-1309-4a5d-9240-28d7e77e06ce","description":"Create an Invoice - This orchestration contains the following flow of calls.  \n\n1. Create a customer \n2. Create an item  \n3. Create an invoice for a transaction between the customer and the item.","_postman_id":"a6142804-1309-4a5d-9240-28d7e77e06ce"}]}