{"info":{"_postman_id":"ffac031e-6c58-49c0-9066-4b01cf579287","name":"Quickbooks Payments API Collections","description":"<html><head></head><body><p>RESTful API to process payments through credit cards, bank accounts and eChecks</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3967924","collectionId":"ffac031e-6c58-49c0-9066-4b01cf579287","publishedId":"RW1dEx9e","public":true,"customColor":null,"publishDate":"2018-05-01T17:20:41.000Z"},"item":[{"name":"BankAccounts","item":[{"name":"BankAccounts-Create","id":"b53ea608-caa3-4314-9ebc-8d811c580821","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Request-Id","value":"req1111"}],"body":{"mode":"raw","raw":"{\n   \"name\": \"My Checking\",\n   \"routingNumber\": \"091000019\",\n   \"accountNumber\": \"120895674534\",\n   \"accountType\": \"PERSONAL_CHECKING\",\n   \"phone\": \"6047296480\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/bank-accounts","description":"<p>Create and store a bank account with customer ID (query parameter)  cust1111 and request ID req1111 (header parameter).</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","bank-accounts"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b53ea608-caa3-4314-9ebc-8d811c580821"},{"name":"BankAccounts-RetrieveById","id":"ed1b90e5-cffc-448a-b3a8-c31889df95bb","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/bank-accounts/<enter_your_bank-account-id>","description":"<p>Get Bank Account 200146652444139196904534 for customer cust1111</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","bank-accounts","<enter_your_bank-account-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed1b90e5-cffc-448a-b3a8-c31889df95bb"},{"name":"BankAccount-Delete","id":"224677d7-995a-4067-9c15-a5b82f3ea2ca","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1115"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/bank-accounts/<enter_your_bank-account-id>","description":"<p>Delete Bank Account 200146652444139196904534 for customer with ID cust1111 and request id req1115</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","bank-accounts","<enter_your_bank-account-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"224677d7-995a-4067-9c15-a5b82f3ea2ca"},{"name":"BankAccounts-RetrieveAll","id":"4e42997e-a9b2-47d4-adaf-fece68b0c0c7","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/bank-accounts/","description":"<p>Get all Bank Accounts associated with Customer with customer ID cust1111.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","bank-accounts",""],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e42997e-a9b2-47d4-adaf-fece68b0c0c7"},{"name":"BankAccounts-CreateFromToken","id":"eb21e2d2-f31c-4665-93c8-cd8f3f51b93b","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1112"}],"body":{"mode":"raw","raw":"{\n   \"value\": \"25374d18-cc83-41b5-9616-ddf9cdd9df09\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/bank-accounts/createFromToken","description":"<p>Add a Bank Account form token, request ID req1112, customer ID cust1111</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","bank-accounts","createFromToken"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb21e2d2-f31c-4665-93c8-cd8f3f51b93b"}],"id":"020087e2-6eb3-458e-a105-5ffaef1ce351","description":"<p>Store bank accounts for processing future payments.</p>\n","_postman_id":"020087e2-6eb3-458e-a105-5ffaef1ce351"},{"name":"Cards","item":[{"name":"Cards-Create","id":"57e3a532-2d8f-4227-a6c0-2cddce3a4c04","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1113"}],"body":{"mode":"raw","raw":"{\n   \"number\": \"4408041234567893\",\n   \"expMonth\": \"12\",\n   \"expYear\": \"2026\",\n   \"name\": \"Test User\",\n   \"address\": {\n       \"streetAddress\": \"1245 Hana Rd\",\n       \"city\": \"Richmond\",\n       \"region\": \"VA\",\n       \"country\": \"US\",\n       \"postalCode\": \"44112\"\n    }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/cards","description":"<p>Create credit card for customer cust1112 and request id req1113.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","cards"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"57e3a532-2d8f-4227-a6c0-2cddce3a4c04"},{"name":"Cards-GetCard","id":"79298635-54d2-4a8f-ba8d-6c9d86fc01f4","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n   \"number\": \"4408041234567893\",\n   \"expMonth\": \"12\",\n   \"expYear\": \"2026\",\n   \"name\": \"Test User\",\n   \"address\": {\n       \"streetAddress\": \"1245 Hana Rd\",\n       \"city\": \"Richmond\",\n       \"region\": \"VA\",\n       \"country\": \"US\",\n       \"postalCode\": \"44112\"\n    }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/cards/<enter_your_customer-id>","description":"<p>Get credit card with id 101118200514139196947893.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","cards","<enter_your_customer-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"79298635-54d2-4a8f-ba8d-6c9d86fc01f4"},{"name":"Cards-Delete","id":"163d861d-e06a-4da0-8604-deee26047977","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1115"}],"body":{"mode":"raw","raw":""},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/cards/<enter_your_card-id>","description":"<p>Delete credit card with id 101118200514139196947893 and request id req1115.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","cards","<enter_your_card-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"163d861d-e06a-4da0-8604-deee26047977"},{"name":"Cards-GetAllCards","id":"3acc9261-d6a0-4f2b-8424-4b6c98fc1709","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n   \"number\": \"4408041234567893\",\n   \"expMonth\": \"12\",\n   \"expYear\": \"2026\",\n   \"name\": \"Test User\",\n   \"address\": {\n       \"streetAddress\": \"1245 Hana Rd\",\n       \"city\": \"Richmond\",\n       \"region\": \"VA\",\n       \"country\": \"US\",\n       \"postalCode\": \"44112\"\n    }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/cards","description":"<p>Get all cards for customer cust1112.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","cards"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3acc9261-d6a0-4f2b-8424-4b6c98fc1709"},{"name":"Cards-CreateCardFromToken","id":"796bcbd9-d698-42ef-93a1-e9018356a30c","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1114"}],"body":{"mode":"raw","raw":"{\n   \"value\": \"2e337998-2e77-488e-b15a-9fb0bbfc9312\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/customers/<enter_your_customer-id>/cards/createFromToken","description":"<p>Create card from token with Request id req1114 and customer id cust1112.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","customers","<enter_your_customer-id>","cards","createFromToken"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"796bcbd9-d698-42ef-93a1-e9018356a30c"}],"id":"d0d7f0e6-f9fc-48e3-ab65-74c15b6a8b7f","description":"<p>Store credit cards for processing future payments. Note that storing cards for swiped transactions is not currently supported by the payments API.</p>\n","_postman_id":"d0d7f0e6-f9fc-48e3-ab65-74c15b6a8b7f"},{"name":"Charges","item":[{"name":"Charges-Create","id":"933b32fe-ccf4-47a3-b680-68f625ff8905","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1116"}],"body":{"mode":"raw","raw":"{\n  \"amount\": \"10.55\",\n  \"card\": {\n    \"expYear\": \"2020\",\n    \"expMonth\": \"02\",\n    \"address\": {\n      \"region\": \"CA\",\n      \"postalCode\": \"94086\",\n      \"streetAddress\": \"1130 Kifer Rd\",\n      \"country\": \"US\",\n      \"city\": \"Sunnyvale\"\n    },\n    \"name\": \"emulate=0\",\n    \"cvc\": \"123\",\n    \"number\": \"4111111111111111\"\n  },\n  \"currency\": \"USD\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges","description":"<p>To charge a credit card, you create a new charge object with req id req1116.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"933b32fe-ccf4-47a3-b680-68f625ff8905"},{"name":"Charges-Retrieve","id":"6b036544-399d-47b9-8b7d-e24fb9327036","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/<enter_your_charge-id>","description":"<p>Retrieves the details of a charge that has been previously created. Supply the id EF8LDH367ETK as returned in the charges response body from the previous create operation.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","<enter_your_charge-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b036544-399d-47b9-8b7d-e24fb9327036"},{"name":"Charges-CaptureCharge","id":"ecf856f0-2cde-4437-911b-23c6f80ff7d7","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1117"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 10.55\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/<enter_your_charge-id>/capture","description":"<p>Capture charge with charge id EF8LDH367ETK and request id req1117.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","<enter_your_charge-id>","capture"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecf856f0-2cde-4437-911b-23c6f80ff7d7"},{"name":"Charges-RefundCharge","id":"7c6afcf9-8e46-41fe-a14c-caa5a4ef176b","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1118"}],"body":{"mode":"raw","raw":"{\n  \"id\": \"\",\n  \"created\": \"\",\n  \"status\": \"\",\n  \"amount\": 5.00,\n  \"context\": {\n    \"tax\": 0,\n    \"deviceInfo\": {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"longitude\": \"\",\n      \"latitude\": \"\",\n      \"phoneNumber\": \"\",\n      \"macAddress\": \"\",\n      \"ipAddress\": \"\"\n    },\n    \"recurring\": false\n  },\n  \"description\": \"first refund\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/<enter_your_charge-id>/refunds","description":"<p>Full or partial refund an existing charge with id EF8LDH367ETK and request id req1118.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","<enter_your_charge-id>","refunds"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c6afcf9-8e46-41fe-a14c-caa5a4ef176b"},{"name":"Charges-ReadRefundCharge","id":"2566e2a2-e7c8-467c-ba19-08749de70623","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/<enter_your_charge-id>/refunds/<enter_your_refund-id>","description":"<p>Read refund by charge id EF8LDH367ETK and refund id EWQ3X2QK4D6Y.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","<enter_your_charge-id>","refunds","<enter_your_refund-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2566e2a2-e7c8-467c-ba19-08749de70623"}],"id":"5ccf7ef8-e49d-4108-9d1a-0a7ce7586b9a","description":"<p>Send and receive payments using credit cards.</p>\n","_postman_id":"5ccf7ef8-e49d-4108-9d1a-0a7ce7586b9a"},{"name":"Create a ReceivePayment against a Customer's Invoice and Charge Customer Credit Card","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":"2e99687f-c856-4955-862e-ae4390d620f2","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":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 - 1b924772-20be-42f8-aa40-ecc96aa0404f\"\n}\n"},"url":"https://{{baseurl}}/v3/company/{{companyid}}/customer?minorversion={{minorversion}}","description":"<p>Create a customer\nMethod : POST</p>\n","urlObject":{"protocol":"https","path":["v3","company","{{companyid}}","customer"],"host":["{{baseurl}}"],"query":[{"key":"minorversion","value":"{{minorversion}}"}],"variable":[]}},"response":[],"_postman_id":"2e99687f-c856-4955-862e-ae4390d620f2"},{"name":"Item-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["// function makeid()","// {","//     var text = \"Item \";","//     var possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","//     for( var i=0; i < 5; i++ )","//         text += possible.charAt(Math.floor(Math.random() * possible.length));","","//     return text;","// }","// postman.setEnvironmentVariable(\"name\", makeid());","","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":"4e2d5ca0-ec3b-4a4a-8c3b-197d29940020","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":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 - f263d4c8-d481-497b-a352-be99b3af3fbe\",\n  \"IncomeAccountRef\": {\n    \"value\": \"1\",\n    \"name\": \"Services\"\n  },\n  \"Type\": \"Service\"\n}"},"url":"https://{{baseurl}}/v3/company/{{companyid}}/item?minorversion={{minorversion}}","description":"<p>POST: Create an Item</p>\n","urlObject":{"protocol":"https","path":["v3","company","{{companyid}}","item"],"host":["{{baseurl}}"],"query":[{"key":"minorversion","value":"{{minorversion}}"}],"variable":[]}},"response":[],"_postman_id":"4e2d5ca0-ec3b-4a4a-8c3b-197d29940020"},{"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 {","        //var responseBody = JSON.parse(responseBody),","        InvoiceId = jsonData.Invoice.Id;","        InvoiceAmount = jsonData.Invoice.TotalAmt;","        InvoiceCurrency = jsonData.Invoice.CurrencyRef.value;","    }","    ","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Invoice Created InvoiceID is ' + InvoiceId);","    console.log('New Invoice Created TotalAmount is ' + InvoiceAmount);","    console.log('New Invoice Created InvoiceCurrency is ' + InvoiceCurrency)","    ","    postman.setGlobalVariable(\"InvoiceId\", InvoiceId);","    postman.setGlobalVariable(\"InvoiceAmount\", InvoiceAmount);","    postman.setGlobalVariable(\"InvoiceCurrency\", InvoiceCurrency);","}","",""]}}],"id":"d4a52035-4ac1-4fda-894b-82d805c912d6","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"User-Agent","value":"Intuit-qbov3-postman-collection2"},{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"OAuth oauth_consumer_key=\"qyprdAJlp6VHqp0WM0u5UQ8FvYkaUm\",oauth_token=\"lvprdMTcngdgwceHgduCvy7VWjKGsqRTe8LKTalrIDsldukJ\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1490823127\",oauth_nonce=\"WRZ5mb\",oauth_version=\"1.0\",oauth_signature=\"11IF6NLKPUBQHC2i4WASa73vitk%3D\""}],"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":"https://{{baseurl}}/v3/company/{{companyid}}/invoice?minorversion={{minorversion}}","description":"<p>POST: Create an Invoice</p>\n","urlObject":{"protocol":"https","path":["v3","company","{{companyid}}","invoice"],"host":["{{baseurl}}"],"query":[{"key":"minorversion","value":"{{minorversion}}"}],"variable":[]}},"response":[],"_postman_id":"d4a52035-4ac1-4fda-894b-82d805c912d6"},{"name":"Tokens-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    var jsonData = JSON.parse(responseBody);","    try {","        ","        TokenValue = jsonData.value;","    }","    ","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Token is Created token is ' + TokenValue);","    ","    postman.setGlobalVariable(\"TokenValue\", TokenValue);","}","",""]}}],"id":"b332db30-2266-4894-9a40-fab0bc0ce2e4","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n  \"card\": {\n    \"expYear\": \"2020\",\n    \"expMonth\": \"02\",\n    \"address\": {\n      \"region\": \"CA\",\n      \"postalCode\": \"94086\",\n      \"streetAddress\": \"1130 Kifer Rd\",\n      \"country\": \"US\",\n      \"city\": \"Sunnyvale\"\n    },\n    \"name\": \"emulate=0\",\n    \"cvc\": \"123\",\n    \"number\": \"4111111111111111\"\n  }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/tokens","description":"<p>Create token</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","tokens"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b332db30-2266-4894-9a40-fab0bc0ce2e4"},{"name":"Charges-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 200'] = (responseCode.code === 200) || (responseCode.code === 201);","","if (responseCode.code === 200  || responseCode.code === 201) {","    var jsonData = JSON.parse(responseBody);","    try {","        ChargeStatus = jsonData.status;","        ChargeId = jsonData.id;","    }","    ","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Charge Created ChargeStatus is ' + ChargeStatus);","    console.log('New Charge Creaged ChargeId is ' + ChargeId)","    ","    postman.setGlobalVariable(\"ChargeStatus\", ChargeStatus);","    postman.setGlobalVariable(\"ChargeId\", ChargeId);","}"]}}],"id":"bb80b903-df83-454d-a5db-242632eae464","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1116"}],"body":{"mode":"raw","raw":"{\n    \"amount\": \"{{InvoiceAmount}}\",\n    \"token\": \"{{TokenValue}}\",\n    \"currency\": \"{{InvoiceCurrency}}\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges","description":"<p>To charge a credit card, you create a new charge object with req id req1116.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb80b903-df83-454d-a5db-242632eae464"},{"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 {","        //var responseBody = JSON.parse(responseBody),","        PaymentId = jsonData.Payment.Id;","    }","    ","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Payment Created PaymentId is ' + PaymentId);","    ","    postman.setGlobalVariable(\"PaymentId\", PaymentId);","}","",""]}}],"id":"438af369-7db2-4729-ac78-bcc9599de518","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":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":"https://{{baseurl}}/v3/company/{{companyid}}/payment?minorversion={{minorversion}}","description":"<p>Create an payment object\nMethod : POST</p>\n","urlObject":{"protocol":"https","path":["v3","company","{{companyid}}","payment"],"host":["{{baseurl}}"],"query":[{"key":"minorversion","value":"{{minorversion}}"}],"variable":[]}},"response":[],"_postman_id":"438af369-7db2-4729-ac78-bcc9599de518"}],"id":"6446944a-2c99-4cc3-ae93-8aa98c6b83e7","description":"<p>Create a ReceivePayment against a Customer's 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.  4.  Create a token for a Credit Card  5. Use a token to charge the credit card for the amount of the invoice  6. Create payment for the amount owed on invoice</p>\n","_postman_id":"6446944a-2c99-4cc3-ae93-8aa98c6b83e7"},{"name":"Create a credit card token, authorize a charge, and then capture the charge","item":[{"name":"Tokens-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ccToken = jsonData.value;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Token Created Token value is ' + ccToken );","    ","    postman.setGlobalVariable(\"ccToken\", ccToken);","}","",""]}}],"id":"19623255-32ff-4282-b1ec-1c0ca4f62661","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n  \"card\": {\n    \"expYear\": \"2020\",\n    \"expMonth\": \"02\",\n    \"address\": {\n      \"region\": \"CA\",\n      \"postalCode\": \"94086\",\n      \"streetAddress\": \"1130 Kifer Rd\",\n      \"country\": \"US\",\n      \"city\": \"Sunnyvale\"\n    },\n    \"name\": \"emulate=0\",\n    \"cvc\": \"123\",\n    \"number\": \"4111111111111111\"\n  }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/tokens","description":"<p>Create token</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","tokens"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19623255-32ff-4282-b1ec-1c0ca4f62661"},{"name":"Charges-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ChargeId = jsonData.id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Charge Created ChargeId is ' + ChargeId );","    ","    postman.setGlobalVariable(\"ChargeId\", ChargeId);","}","",""]}}],"id":"3a7ac8f5-187c-493b-a353-5dd5d1f7cde7","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"c59ac34f-666a-46e8-8545-9697fea1c525"}],"body":{"mode":"raw","raw":"{\n    \"amount\": \"10.55\",\n    \"currency\": \"USD\",\n    \"capture\": \"false\",\n    \"token\": \"{{ccToken}}\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges","description":"<p>To charge a credit card, you create a new charge object with req id req1116.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a7ac8f5-187c-493b-a353-5dd5d1f7cde7"},{"name":"Charges-CaptureCharge","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);","        ChargeStatus = jsonData.status;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('ChargeStatus has been updated to ' + ChargeStatus );","    ","    postman.setGlobalVariable(\"ChargeStatus\", ChargeStatus);","}","",""]}}],"id":"2c8cec68-af1a-46f1-88a8-7eab240da94b","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"bee7cc93-0e0b-4e73-9c2f-852323032b30"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 10.55\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/{{ChargeId}}/capture","description":"<p>Capture charge with charge id EF8LDH367ETK and request id req1117.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","{{ChargeId}}","capture"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c8cec68-af1a-46f1-88a8-7eab240da94b"}],"id":"2d3a878b-d238-4cd4-86c1-c6f447dcef8d","description":"<p>In this flow, we create a token for a credit card, use the token to create a charge that is authorized. We then capture the charge.</p>\n","_postman_id":"2d3a878b-d238-4cd4-86c1-c6f447dcef8d"},{"name":"Create a credit card token, create a charge, then create a refund for the charge","item":[{"name":"Tokens-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ccToken = jsonData.value;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Token Created Token value is ' + ccToken );","    ","    postman.setGlobalVariable(\"ccToken\", ccToken);","}","",""]}}],"id":"8a7bdd8a-ed84-46d2-a1b7-12a734cdd364","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n  \"card\": {\n    \"expYear\": \"2020\",\n    \"expMonth\": \"02\",\n    \"address\": {\n      \"region\": \"CA\",\n      \"postalCode\": \"94086\",\n      \"streetAddress\": \"1130 Kifer Rd\",\n      \"country\": \"US\",\n      \"city\": \"Sunnyvale\"\n    },\n    \"name\": \"emulate=0\",\n    \"cvc\": \"123\",\n    \"number\": \"4111111111111111\"\n  }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/tokens","description":"<p>Create token</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","tokens"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a7bdd8a-ed84-46d2-a1b7-12a734cdd364"},{"name":"Charges-Create","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        ChargeId = jsonData.id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Charge Created ID is ' + ChargeId );","    ","    postman.setGlobalVariable(\"ChargeId\", ChargeId);","}","",""]}}],"id":"a302beab-858a-4960-a524-b1826270067b","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"a1efd9d5-a15a-4b94-9779-97d92120aab1"}],"body":{"mode":"raw","raw":"{\n  \"amount\": \"10.55\",\n  \"token\": \"{{ccToken}}\",\n  \"currency\": \"USD\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges","description":"<p>To charge a credit card, you create a new charge object with req id req1116.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a302beab-858a-4960-a524-b1826270067b"},{"name":"Charges-RefundCharge","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests['status code is 201'] = (responseCode.code === 201);","","if (responseCode.code === 201) {","    ","    try {","        var jsonData = JSON.parse(responseBody);","        Status = jsonData.status;","        Id = jsonData.id;","    }","    catch (e) {","        console.log(e);","    }","    ","    console.log('New Refund, the status is ' + Status + \" The refund id is \" + Id );"," ","}","",""]}}],"id":"b3ad3f23-630d-4ea6-89e8-75f6af185060","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"43f9794e-c554-441c-b911-dfa38150eda5"}],"body":{"mode":"raw","raw":"{\n\t\"amount\": \"10.55\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/charges/{{ChargeId}}/refunds","description":"<p>Full or partial refund an existing charge with id EF8LDH367ETK and request id req1118.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","charges","{{ChargeId}}","refunds"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3ad3f23-630d-4ea6-89e8-75f6af185060"}],"id":"bd1f2536-5861-417b-a875-525901fd69a6","description":"<p>In this orchestration, we create a token from a credit cards, use the token to create a charge, then refund the charge.</p>\n","_postman_id":"bd1f2536-5861-417b-a875-525901fd69a6"},{"name":"Tokens","item":[{"name":"Tokens-Create","id":"a505f3d9-7b70-48c9-9bf2-234c8f57c69a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":"{\n  \"card\": {\n    \"expYear\": \"2020\",\n    \"expMonth\": \"02\",\n    \"address\": {\n      \"region\": \"CA\",\n      \"postalCode\": \"94086\",\n      \"streetAddress\": \"1130 Kifer Rd\",\n      \"country\": \"US\",\n      \"city\": \"Sunnyvale\"\n    },\n    \"name\": \"emulate=0\",\n    \"cvc\": \"123\",\n    \"number\": \"4111111111111111\"\n  }\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/tokens","description":"<p>Create token</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","tokens"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a505f3d9-7b70-48c9-9bf2-234c8f57c69a"}],"id":"86ccbc61-8334-4646-971c-d3568d4462e9","description":"<p>An opaque container that encapsulates a cardholder's credit card information or bank account information. </p>\n","_postman_id":"86ccbc61-8334-4646-971c-d3568d4462e9"},{"name":"eChecks","item":[{"name":"eChecks-Debit","id":"514b89c7-1325-4711-b0d9-26404686bb83","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1118"}],"body":{"mode":"raw","raw":"{  \n  \"amount\":\"1.11\",\n  \"bankAccount\":{  \n      \"name\":\"Fname LName\",\n      \"routingNumber\":\"490000018\",\n      \"accountNumber\":\"11000000333456781\",\n      \"accountType\":\"PERSONAL_CHECKING\",\n      \"phone\":\"1234567890\"\n  },\n  \"context\":{  \n      \"deviceInfo\":{  \n        \"id\":\"1\",\n        \"type\":\"type\",\n        \"longitude\":\"longitude\",\n        \"latitude\":\"\",\n        \"phoneNumber\":\"phonenu\",\n        \"macAddress\":\"macaddress\",\n        \"ipAddress\":\"34\"\n      }\n  },\n  \"paymentMode\":\"WEB\",\n  \"checkNumber\":\"12345678\",\n  \"description\":\"Check Auth test call\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/echecks","description":"<p>Debit eCheck with request id req1118.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","echecks"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"514b89c7-1325-4711-b0d9-26404686bb83"},{"name":"eChecks-Retrieve","id":"f88c74fc-557a-4e01-afc7-5e4803531e1a","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"}],"body":{"mode":"raw","raw":""},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/echecks/<enter_your_echeck-id>","description":"<p>Retrieve previously created eCheck with id a06e9di9</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","echecks","<enter_your_echeck-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f88c74fc-557a-4e01-afc7-5e4803531e1a"},{"name":"eChecks-VoidOrRefund","id":"a710af2e-9aa2-4b74-ba4b-9e3c1d5fd1ec","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1120"}],"body":{"mode":"raw","raw":"{\n  \"amount\":\"1.11\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/echecks/<enter_your_echeck-id>/refunds","description":"<p>Void or Refund an eCheck with id a06e9di9</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","echecks","<enter_your_echeck-id>","refunds"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a710af2e-9aa2-4b74-ba4b-9e3c1d5fd1ec"},{"name":"eChecks-RetrieveRefund","id":"6f12e443-f505-4312-87d6-73d8943e78ed","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{consumerKey}}"},{"key":"consumerSecret","value":"{{consumerSecret}}"},{"key":"token","value":"{{accessToken}}"},{"key":"tokenSecret","value":"{{accessSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"timestamp","value":"<timestamp>"},{"key":"nonce","value":"<nonce>"},{"key":"version","value":"<version>"},{"key":"realm","value":"<realm>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"Intuit-qbopayments-postman-collection1"},{"key":"Request-Id","value":"req1121"}],"body":{"mode":"raw","raw":"{\n  \"amount\":\"1.11\"\n}"},"url":"https://{{baseurlpayments}}/quickbooks/v4/payments/echecks/<enter_your_echeck-id>/refunds/<enter_your_echeck-refund-id>","description":"<p>Get refund with request id req1121 eCheck id a06e9di9 and Refund id a06e9dib.</p>\n","urlObject":{"protocol":"https","path":["quickbooks","v4","payments","echecks","<enter_your_echeck-id>","refunds","<enter_your_echeck-refund-id>"],"host":["{{baseurlpayments}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f12e443-f505-4312-87d6-73d8943e78ed"}],"id":"64b22c48-ade1-444b-ac3b-176e5d704af5","description":"<p>Send and receive payments using EChecks.</p>\n","_postman_id":"64b22c48-ade1-444b-ac3b-176e5d704af5"}]}