{ "uuid": "875a7889-da77-40d0-8e31-582797400834", "lastMigration": 29, "name": "Accounting", "endpointPrefix": "api.xro/2.0", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "7f6b3839-6a16-45a2-8867-714f11d7ef1c", "documentation": "Retrieve the full chart of accounts", "method": "get", "endpoint": "Accounts", "responses": [ { "uuid": "ee390915-8922-4ea0-beb9-9f49483ef970", "body": "{\n \"Accounts\": [\n {\n \"AccountID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"BankAccountNumber\": 1234353453453,\n \"BankAccountType\": \"{{oneOf (array 'BANK' 'CREDITCARD' 'PAYPAL')}}\",\n \"Class\": \"{{oneOf (array 'ASSET' 'EQUITY' 'EXPENSE' 'LIABILITY' 'REVENUE')}}\",\n \"Code\": 200,\n \"CurrencyCode\": \"AUD\",\n \"Description\": \"A sales account\",\n \"EnablePaymentsToAccount\": {{faker 'datatype.boolean'}},\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"Name\": \"Sales\",\n \"ReportingCode\": \"ASS\",\n \"ReportingCodeName\": \"Asset\",\n \"ShowInExpenseClaims\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"SystemAccount\": \"{{oneOf (array 'DEBTORS' 'CREDITORS' 'BANKCURRENCYGAIN' 'GST' 'GSTONIMPORTS' 'HISTORICAL' 'REALISEDCURRENCYGAIN' 'RETAINEDEARNINGS' 'ROUNDING' 'TRACKINGTRANSFERS' 'UNPAIDEXPCLM' 'UNREALISEDCURRENCYGAIN' 'WAGEPAYABLES')}}\",\n \"TaxType\": \"NONE\",\n \"Type\": \"{{oneOf (array 'BANK' 'CURRENT' 'CURRLIAB' 'DEPRECIATN' 'DIRECTCOSTS' 'EQUITY' 'EXPENSE' 'FIXED' 'INVENTORY' 'LIABILITY' 'NONCURRENT' 'OTHERINCOME' 'OVERHEADS' 'PREPAYMENT' 'REVENUE' 'SALES' 'TERMLIAB' 'PAYGLIABILITY' 'SUPERANNUATIONEXPENSE' 'SUPERANNUATIONLIABILITY' 'WAGESEXPENSE' 'WAGESPAYABLELIABILITY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ac8e66b3-2c6d-4fc5-938a-994a299039b8", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "55b256eb-114f-42d7-a493-7766c553e008", "documentation": "Create or update accounts", "method": "post", "endpoint": "Accounts", "responses": [ { "uuid": "e5bf768a-4941-40d0-b795-919d0e03b4e2", "body": "{\n \"Accounts\": [\n {\n \"AccountID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"BankAccountNumber\": 1234353453453,\n \"BankAccountType\": \"{{oneOf (array 'BANK' 'CREDITCARD' 'PAYPAL')}}\",\n \"Class\": \"{{oneOf (array 'ASSET' 'EQUITY' 'EXPENSE' 'LIABILITY' 'REVENUE')}}\",\n \"Code\": 200,\n \"CurrencyCode\": \"AUD\",\n \"Description\": \"A sales account\",\n \"EnablePaymentsToAccount\": {{faker 'datatype.boolean'}},\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"Name\": \"Sales\",\n \"ReportingCode\": \"ASS\",\n \"ReportingCodeName\": \"Asset\",\n \"ShowInExpenseClaims\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"SystemAccount\": \"{{oneOf (array 'DEBTORS' 'CREDITORS' 'BANKCURRENCYGAIN' 'GST' 'GSTONIMPORTS' 'HISTORICAL' 'REALISEDCURRENCYGAIN' 'RETAINEDEARNINGS' 'ROUNDING' 'TRACKINGTRANSFERS' 'UNPAIDEXPCLM' 'UNREALISEDCURRENCYGAIN' 'WAGEPAYABLES')}}\",\n \"TaxType\": \"NONE\",\n \"Type\": \"{{oneOf (array 'BANK' 'CURRENT' 'CURRLIAB' 'DEPRECIATN' 'DIRECTCOSTS' 'EQUITY' 'EXPENSE' 'FIXED' 'INVENTORY' 'LIABILITY' 'NONCURRENT' 'OTHERINCOME' 'OVERHEADS' 'PREPAYMENT' 'REVENUE' 'SALES' 'TERMLIAB' 'PAYGLIABILITY' 'SUPERANNUATIONEXPENSE' 'SUPERANNUATIONLIABILITY' 'WAGESEXPENSE' 'WAGESPAYABLELIABILITY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4ab27ad0-c619-49b6-b184-2c02cc7b94b7", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "293c2d33-868d-48e6-8672-b358867898cc", "documentation": "Create new accounts", "method": "put", "endpoint": "Accounts", "responses": [ { "uuid": "80f02b5e-fdc9-49d1-ab12-faaafbc0e11d", "body": "{\n \"Accounts\": [\n {\n \"AccountID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"BankAccountNumber\": 1234353453453,\n \"BankAccountType\": \"{{oneOf (array 'BANK' 'CREDITCARD' 'PAYPAL')}}\",\n \"Class\": \"{{oneOf (array 'ASSET' 'EQUITY' 'EXPENSE' 'LIABILITY' 'REVENUE')}}\",\n \"Code\": 200,\n \"CurrencyCode\": \"AUD\",\n \"Description\": \"A sales account\",\n \"EnablePaymentsToAccount\": {{faker 'datatype.boolean'}},\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"Name\": \"Sales\",\n \"ReportingCode\": \"ASS\",\n \"ReportingCodeName\": \"Asset\",\n \"ShowInExpenseClaims\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"SystemAccount\": \"{{oneOf (array 'DEBTORS' 'CREDITORS' 'BANKCURRENCYGAIN' 'GST' 'GSTONIMPORTS' 'HISTORICAL' 'REALISEDCURRENCYGAIN' 'RETAINEDEARNINGS' 'ROUNDING' 'TRACKINGTRANSFERS' 'UNPAIDEXPCLM' 'UNREALISEDCURRENCYGAIN' 'WAGEPAYABLES')}}\",\n \"TaxType\": \"NONE\",\n \"Type\": \"{{oneOf (array 'BANK' 'CURRENT' 'CURRLIAB' 'DEPRECIATN' 'DIRECTCOSTS' 'EQUITY' 'EXPENSE' 'FIXED' 'INVENTORY' 'LIABILITY' 'NONCURRENT' 'OTHERINCOME' 'OVERHEADS' 'PREPAYMENT' 'REVENUE' 'SALES' 'TERMLIAB' 'PAYGLIABILITY' 'SUPERANNUATIONEXPENSE' 'SUPERANNUATIONLIABILITY' 'WAGESEXPENSE' 'WAGESPAYABLELIABILITY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e0e7d245-2d22-4764-b993-2d86a26a3795", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ea48f093-fe0d-4c1a-9937-10700feae315", "documentation": "Delete an account", "method": "delete", "endpoint": "Accounts/:AccountID", "responses": [ { "uuid": "828c94e6-d42f-40a9-8150-7a1bd9b162ee", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "20589626-c61e-45b7-8c2d-50724cb539d8", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cb5e3f2e-f114-4422-b685-bc720655ef83", "documentation": "Retrieve a single account", "method": "get", "endpoint": "Accounts/:AccountID", "responses": [ { "uuid": "2aea7afd-623b-43af-918c-beba709f92df", "body": "{\n \"Accounts\": [\n {\n \"AccountID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"BankAccountNumber\": 1234353453453,\n \"BankAccountType\": \"{{oneOf (array 'BANK' 'CREDITCARD' 'PAYPAL')}}\",\n \"Class\": \"{{oneOf (array 'ASSET' 'EQUITY' 'EXPENSE' 'LIABILITY' 'REVENUE')}}\",\n \"Code\": 200,\n \"CurrencyCode\": \"AUD\",\n \"Description\": \"A sales account\",\n \"EnablePaymentsToAccount\": {{faker 'datatype.boolean'}},\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"Name\": \"Sales\",\n \"ReportingCode\": \"ASS\",\n \"ReportingCodeName\": \"Asset\",\n \"ShowInExpenseClaims\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"SystemAccount\": \"{{oneOf (array 'DEBTORS' 'CREDITORS' 'BANKCURRENCYGAIN' 'GST' 'GSTONIMPORTS' 'HISTORICAL' 'REALISEDCURRENCYGAIN' 'RETAINEDEARNINGS' 'ROUNDING' 'TRACKINGTRANSFERS' 'UNPAIDEXPCLM' 'UNREALISEDCURRENCYGAIN' 'WAGEPAYABLES')}}\",\n \"TaxType\": \"NONE\",\n \"Type\": \"{{oneOf (array 'BANK' 'CURRENT' 'CURRLIAB' 'DEPRECIATN' 'DIRECTCOSTS' 'EQUITY' 'EXPENSE' 'FIXED' 'INVENTORY' 'LIABILITY' 'NONCURRENT' 'OTHERINCOME' 'OVERHEADS' 'PREPAYMENT' 'REVENUE' 'SALES' 'TERMLIAB' 'PAYGLIABILITY' 'SUPERANNUATIONEXPENSE' 'SUPERANNUATIONLIABILITY' 'WAGESEXPENSE' 'WAGESPAYABLELIABILITY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "cd94a794-dc2f-4e87-9176-0542b413d4b9", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "be4a0c18-5f5b-4bef-9277-2bc0b2e618a2", "documentation": "Update an account", "method": "post", "endpoint": "Accounts/:AccountID", "responses": [ { "uuid": "017fb222-fceb-4529-968c-f29e8f4f9c87", "body": "{\n \"Accounts\": [\n {\n \"AccountID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"BankAccountNumber\": 1234353453453,\n \"BankAccountType\": \"{{oneOf (array 'BANK' 'CREDITCARD' 'PAYPAL')}}\",\n \"Class\": \"{{oneOf (array 'ASSET' 'EQUITY' 'EXPENSE' 'LIABILITY' 'REVENUE')}}\",\n \"Code\": 200,\n \"CurrencyCode\": \"AUD\",\n \"Description\": \"A sales account\",\n \"EnablePaymentsToAccount\": {{faker 'datatype.boolean'}},\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"Name\": \"Sales\",\n \"ReportingCode\": \"ASS\",\n \"ReportingCodeName\": \"Asset\",\n \"ShowInExpenseClaims\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"SystemAccount\": \"{{oneOf (array 'DEBTORS' 'CREDITORS' 'BANKCURRENCYGAIN' 'GST' 'GSTONIMPORTS' 'HISTORICAL' 'REALISEDCURRENCYGAIN' 'RETAINEDEARNINGS' 'ROUNDING' 'TRACKINGTRANSFERS' 'UNPAIDEXPCLM' 'UNREALISEDCURRENCYGAIN' 'WAGEPAYABLES')}}\",\n \"TaxType\": \"NONE\",\n \"Type\": \"{{oneOf (array 'BANK' 'CURRENT' 'CURRLIAB' 'DEPRECIATN' 'DIRECTCOSTS' 'EQUITY' 'EXPENSE' 'FIXED' 'INVENTORY' 'LIABILITY' 'NONCURRENT' 'OTHERINCOME' 'OVERHEADS' 'PREPAYMENT' 'REVENUE' 'SALES' 'TERMLIAB' 'PAYGLIABILITY' 'SUPERANNUATIONEXPENSE' 'SUPERANNUATIONLIABILITY' 'WAGESEXPENSE' 'WAGESPAYABLELIABILITY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a36c6da9-09c4-42bf-80ef-5910f7844dd3", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d143e415-12cd-406e-9fab-a2fc6fdf6181", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7e5396be-1456-46ab-b1b5-2dfebd0ef904", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "Accounts/:AccountID/Attachments", "responses": [ { "uuid": "39ae19d1-5927-4e20-985f-f2380b4eded9", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "257b49a1-c52c-4b01-bc4a-150e719deb0b", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "43da3061-d78f-4707-a786-7e65dd7807b7", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bf33d116-93eb-45ce-aa13-720af865a7a7", "documentation": "Download an Attachment", "method": "get", "endpoint": "Accounts/:AccountID/Attachments/:FileName", "responses": [ { "uuid": "f7c12cd0-b937-4464-9331-cd4df1a1858f", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ca7e4dad-45b9-42fc-9f8d-5e03ce351d75", "body": "", "latency": 0, "statusCode": 404, "label": "Attachment does not exist", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "299c8ef3-abc4-4595-a703-0b0e8462258a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "82024a24-84d0-4394-aee1-a3e217ce877a", "documentation": "Upload an Attachment", "method": "post", "endpoint": "Accounts/:AccountID/Attachments/:FileName", "responses": [ { "uuid": "f6b8db38-f840-441e-83b5-cb1e838d9b3e", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f5af6016-2feb-4b52-b482-1d431d0d4ee1", "body": "", "latency": 0, "statusCode": 400, "label": "Attachment couldn't be created.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "961da7ff-7b09-4936-a7cb-a4e332c9437a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8028b7fb-373b-4d2b-bcb1-db66589e90be", "documentation": "Retrieve any spend or receive money transactions (inc. prepayments and overpayments)", "method": "get", "endpoint": "BankTransactions", "responses": [ { "uuid": "eb07f343-4c74-41fc-aa46-c7901223f516", "body": "{\n \"BankTransactions\": [\n {\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankAccount\": {\n \"AccountID\": \"d1ebb97b-d207-4ccb-9ab6-8a466a8b4d39\",\n \"Code\": 610,\n \"Name\": \"Everyday Savings\"\n },\n \"BankTransactionId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"PrepaymentID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE' 'RECEIVE-OVERPAYMENT' 'RECEIVE-PREPAYMENT' 'SPEND' 'SPEND-OVERPAYMENT' 'SPEND-PREPAYMENT' 'RECEIVE-TRANSFER' 'SPEND-TRANSFER')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://yourapp.com/transactions/ABC123\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "bf6237fc-cfa7-4b53-af08-33a3fe8e7a62", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "86882633-f10a-44d4-8ef8-40761034705b", "documentation": "Create a new spend or receive money (inc. prepayments and overpayments)", "method": "post", "endpoint": "BankTransactions", "responses": [ { "uuid": "1e6f629c-b9a5-4f77-bc74-c5f22e900696", "body": "{\n \"BankTransactions\": [\n {\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankAccount\": {\n \"AccountID\": \"d1ebb97b-d207-4ccb-9ab6-8a466a8b4d39\",\n \"Code\": 610,\n \"Name\": \"Everyday Savings\"\n },\n \"BankTransactionId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"PrepaymentID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE' 'RECEIVE-OVERPAYMENT' 'RECEIVE-PREPAYMENT' 'SPEND' 'SPEND-OVERPAYMENT' 'SPEND-PREPAYMENT' 'RECEIVE-TRANSFER' 'SPEND-TRANSFER')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://yourapp.com/transactions/ABC123\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9e2a6a28-5a8a-4e3f-814e-be47532654ff", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ca2dbf6f-848f-4f9d-9d9d-fc175d4c2713", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "da106634-045c-41cd-8211-5878cf1b0176", "documentation": "Create a new spend or receive money (inc. prepayments and overpayments)", "method": "put", "endpoint": "BankTransactions", "responses": [ { "uuid": "81f090ff-5341-49d6-8271-c17c2cd9ca10", "body": "{\n \"BankTransactions\": [\n {\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankAccount\": {\n \"AccountID\": \"d1ebb97b-d207-4ccb-9ab6-8a466a8b4d39\",\n \"Code\": 610,\n \"Name\": \"Everyday Savings\"\n },\n \"BankTransactionId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"PrepaymentID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE' 'RECEIVE-OVERPAYMENT' 'RECEIVE-PREPAYMENT' 'SPEND' 'SPEND-OVERPAYMENT' 'SPEND-PREPAYMENT' 'RECEIVE-TRANSFER' 'SPEND-TRANSFER')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://yourapp.com/transactions/ABC123\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3cf17b60-1d12-4081-9107-18077df62d1b", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "28d76faa-8023-4d1a-bc40-693012301def", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "11673f58-019d-4c25-bb75-b95d5fef77d4", "documentation": "Retrieve a spend or receive money (inc. prepayments and overpayments)", "method": "get", "endpoint": "BankTransactions/:BankTransactionID", "responses": [ { "uuid": "df29e4f1-3b64-42cd-ac5c-4bc58518b063", "body": "{\n \"BankTransactions\": [\n {\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankAccount\": {\n \"AccountID\": \"d1ebb97b-d207-4ccb-9ab6-8a466a8b4d39\",\n \"Code\": 610,\n \"Name\": \"Everyday Savings\"\n },\n \"BankTransactionId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"PrepaymentID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE' 'RECEIVE-OVERPAYMENT' 'RECEIVE-PREPAYMENT' 'SPEND' 'SPEND-OVERPAYMENT' 'SPEND-PREPAYMENT' 'RECEIVE-TRANSFER' 'SPEND-TRANSFER')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://yourapp.com/transactions/ABC123\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "97b0409c-5326-4ee2-88bd-87808ac081eb", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "95b42344-2add-46e8-ad17-9964733a8707", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "63c989d9-2a3e-4b4a-833d-0a19a1ecc0d6", "documentation": "Update a spend or receive money", "method": "post", "endpoint": "BankTransactions/:BankTransactionID", "responses": [ { "uuid": "415f22e6-d4ec-48b0-a3c2-8f76e71a97fc", "body": "{\n \"BankTransactions\": [\n {\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankAccount\": {\n \"AccountID\": \"d1ebb97b-d207-4ccb-9ab6-8a466a8b4d39\",\n \"Code\": 610,\n \"Name\": \"Everyday Savings\"\n },\n \"BankTransactionId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"PrepaymentID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE' 'RECEIVE-OVERPAYMENT' 'RECEIVE-PREPAYMENT' 'SPEND' 'SPEND-OVERPAYMENT' 'SPEND-PREPAYMENT' 'RECEIVE-TRANSFER' 'SPEND-TRANSFER')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://yourapp.com/transactions/ABC123\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "676b29f2-a49e-4b4f-b39a-aa64b7d7b2ab", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3fd5f2db-3d3d-4ac8-9df4-a0b24afb9c7d", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8658644f-3e50-44e9-bb02-5be298406c89", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fd3231f8-ee55-48c9-bd55-e6d823ec3767", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "BankTransactions/:BankTransactionID/Attachments", "responses": [ { "uuid": "dd658d3e-18ac-4a94-b907-c5916a8ff10c", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4cd1ba74-5a29-41c5-ba77-9921afb27264", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8288f765-e786-44a4-8a0e-f6879a755de3", "documentation": "Download an Attachment", "method": "get", "endpoint": "BankTransactions/:BankTransactionID/Attachments/:FileName", "responses": [ { "uuid": "0e5e5d92-a4a6-468f-97b2-139a831092a7", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "d9b1b657-fec6-4bd2-8262-8be60f2cd713", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "24e4af5b-a577-4226-9968-58f7824f5349", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8031a254-aa7a-47a0-b8a3-ead459ebc7fe", "documentation": "Upload an Attachment", "method": "post", "endpoint": "BankTransactions/:BankTransactionID/Attachments/:FileName", "responses": [ { "uuid": "785d7c10-b21f-45b8-8ed3-c079bc9c3a3a", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a565c5bd-e8c4-4faa-85d1-0f3074b9c381", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2a9ea1ff-e390-4d3e-ac4a-e2aa9afed7bc", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "63faeea7-169c-4a3e-a611-c74cad437ebd", "documentation": "Retrieve a colection of bank transfers", "method": "get", "endpoint": "BankTransfers", "responses": [ { "uuid": "aa597d40-26ee-40f7-88c6-f5b458dee753", "body": "{\n \"BankTransfers\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankTransferId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FromBankAccount\": {\n \"AccountID\": \"ae8074e0-1ac1-4b37-8546-afa9fa6ace9e\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"FromBankTransactionID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"ToBankAccount\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"ToBankTransactionID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6762a9b1-cc68-4c76-ae8d-93592fa06ee6", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "28fa3f0f-84be-4d8f-9f37-1132df5d8b0a", "documentation": "Create a bank transfer", "method": "put", "endpoint": "BankTransfers", "responses": [ { "uuid": "e1fc1ab3-163d-48aa-b5d0-c9c6f81c501c", "body": "{\n \"BankTransfers\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankTransferId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FromBankAccount\": {\n \"AccountID\": \"ae8074e0-1ac1-4b37-8546-afa9fa6ace9e\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"FromBankTransactionID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"ToBankAccount\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"ToBankTransactionID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fa98ab3f-c92f-4e9d-b35c-00a5d6d3ad8c", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "510b92c4-a60e-452d-b0ef-a028c6cca51e", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "795b72de-b1b4-4b6a-bac7-798b70148d8c", "documentation": "Retrieve an individual bank transfer", "method": "get", "endpoint": "BankTransfers/:BankTransferID", "responses": [ { "uuid": "acb09050-3437-4313-af72-51c1261cfa09", "body": "{\n \"BankTransfers\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BankTransferId\": \"72f1dcfe-5d7d-4239-bf9d-e12469309716\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FromBankAccount\": {\n \"AccountID\": \"ae8074e0-1ac1-4b37-8546-afa9fa6ace9e\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"FromBankTransactionID\": \"d2c63bbd-bc9e-4fb4-9d1c-e5d15749aaa2\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"ToBankAccount\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 610,\n \"Name\": \"Savings account\"\n },\n \"ToBankTransactionID\": \"66fbdc01-e2e7-4ee3-ab10-2d5821d38fe4\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "54192a71-1db9-4abd-911d-87ff02add323", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "db65114c-ab72-49d6-ac8e-520fb7eed6b2", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d3eaa009-4ebd-430d-9c57-57137a75bc5c", "documentation": "Download an Attachment", "method": "get", "endpoint": "BankTransfers/:BankTransferID/Attachments/:FileName", "responses": [ { "uuid": "942482ec-bb5e-4132-97ee-edaa459aa7f6", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ddf96321-9145-4f0c-9db1-58da496a90c3", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "914c0bc4-693a-4bc5-954c-13a548c953f8", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "71efaa49-47e5-4304-96e2-4d0597d6fbaa", "documentation": "Upload an Attachment", "method": "post", "endpoint": "BankTransfers/:BankTransferID/Attachments/:FileName", "responses": [ { "uuid": "00e85196-0b0b-4201-93d3-3ef92851e449", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "acfd1037-0d03-435c-aba7-d10aec3903ec", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4317290a-7902-45c6-9788-6b92cb45c1f0", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f72dd369-c0ec-4c37-adb9-bbfd2704b013", "documentation": "Retrieve a collection of BrandingThemes", "method": "get", "endpoint": "BrandingThemes", "responses": [ { "uuid": "67bfef10-ed56-4db4-a8e9-a070d2c6d16e", "body": "{\n \"BrandingThemes\": [\n {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5312446e-cbf5-4d08-b7c1-1d2be947533d", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9dbb7334-d62c-42ba-bb5e-8611b716ebdd", "documentation": "Retrieve an individual BrandingTheme", "method": "get", "endpoint": "BrandingThemes/:BrandingThemeID", "responses": [ { "uuid": "9691397c-6dba-43ce-bc21-79297065f7bd", "body": "{\n \"BrandingThemes\": [\n {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "63162437-80a9-45c0-812e-dc9abd625fe9", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "dfb5c3f0-55d4-4146-b9dc-01b81bfba832", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9d7c486f-7289-47c9-82b9-fc160168b066", "documentation": "Retrieve a collection of contact groups", "method": "get", "endpoint": "ContactGroups", "responses": [ { "uuid": "f7417562-4ff9-41d9-9884-71546f4bc2bf", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "03a08661-8134-4230-ae67-249e38a11b4d", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "22b5d332-bd89-46d6-a7ce-4ca41b91d248", "documentation": "Create or update a contact group", "method": "post", "endpoint": "ContactGroups", "responses": [ { "uuid": "dce50c82-40b8-4b89-8b38-42c5ac6fc837", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "dc6383d0-2555-4962-bde9-f6574ecc1ec1", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "34c3f66f-3c26-4a7a-ac88-05772c244970", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ddafd9f4-a802-4237-b12c-880866db2940", "documentation": "Create a new contact group", "method": "put", "endpoint": "ContactGroups", "responses": [ { "uuid": "88b38df5-e589-4ada-91a1-9df4c967fcdc", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b9cfdfa4-5708-45da-8dcf-cd6e061de3f3", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7b43c115-bc58-49a1-b36b-9dc763a2c0ac", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2d86d8d5-5e81-4bdc-a85f-0ff8ecfda704", "documentation": "Delete a contact group", "method": "delete", "endpoint": "ContactGroups/:ContactGroupID", "responses": [ { "uuid": "28985b97-1c68-4979-bb48-3c11f49df32c", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "45dabc78-21ea-44ad-9c90-1d78ab6ad912", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9fbe89f2-f5d3-4d63-afd1-158233700193", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aed7f0a9-f9e8-4cb0-a209-0166bd9b3476", "documentation": "Retrieve the ContactID and Name of all the contacts in a contact group", "method": "get", "endpoint": "ContactGroups/:ContactGroupID", "responses": [ { "uuid": "681e735c-3ad7-46af-9952-d2d27f0abf5a", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3357a8c9-60f7-4f62-85e6-e984df6382aa", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b7067d2d-dc64-420e-8996-cca1ba2d6fd4", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8e59bc8f-ea91-4983-be91-6229dcd9121f", "documentation": "Update a contact group", "method": "post", "endpoint": "ContactGroups/:ContactGroupID", "responses": [ { "uuid": "2ba6724f-a341-4e3b-bc2b-76606ec3f2f1", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "84a3d5c2-1fd8-4269-9ee4-b61ee0ca739d", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4a6fa643-158c-4372-bcb3-e56603ddfa81", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0d8c24bf-cbd5-4874-b333-8a5e156465f6", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5beeb1e3-ced3-402b-a243-10be8627180f", "documentation": "Remove all contacts from a contact group", "method": "delete", "endpoint": "ContactGroups/:ContactGroupID/Contacts", "responses": [ { "uuid": "dea6b4f1-b88d-4ecd-acd5-d52bc7350a24", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b78e575e-c400-4674-8395-79b98a3a7011", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7d8db57c-5d3a-49d9-83d4-25cc22efd0a9", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "558d70dd-e192-4e60-a385-c47adfd80f23", "documentation": "Add contacts to a contact group", "method": "put", "endpoint": "ContactGroups/:ContactGroupID/Contacts", "responses": [ { "uuid": "06e60661-05e3-4e6c-bbf9-b6da79c931ba", "body": "{\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1308e9a5-a563-4cf0-a4e8-c0233fb6f2e6", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "bac2d517-dce5-4caa-8509-3212b60b7d24", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "74261fd7-8655-4cae-b958-bc29825a683f", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bce2a541-b435-4461-b2b3-6415167044fb", "documentation": "Remove a contact from a contact group", "method": "delete", "endpoint": "ContactGroups/:ContactGroupID/Contacts/:ContactID", "responses": [ { "uuid": "fa1dd691-d314-414f-8a37-7c777409654e", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "7cf18447-6f45-406c-a9e0-9889448ebf5f", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2281af45-76de-4322-8c5b-edb7b9bedfc0", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8d22883f-80e2-4e8e-9d0b-0ff915a0f219", "documentation": "Retrieve a collection of contacts", "method": "get", "endpoint": "Contacts", "responses": [ { "uuid": "b1c5b9af-8584-40f7-ae35-056fab1ab1d6", "body": "{\n \"Contacts\": [\n {\n \"AccountNumber\": \"AM123\",\n \"AccountsPayableTaxType\": \"NONE\",\n \"AccountsReceivableTaxType\": \"NONE\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"Balances\": [\n {\n \"AccountsPayable\": {\n \"Outstanding\": 50,\n \"Overdue\": 2\n },\n \"AccountsReceivable\": {\n \"Outstanding\": 1000,\n \"Overdue\": 500\n }\n }\n ],\n \"BankAccountDetails\": \"061844 8474733\",\n \"BatchPayments\": {\n \"BankAccountName\": \"Globo Bank\",\n \"BankAccountNumber\": \"098765 123456\",\n \"Details\": \"Stuff about the account\"\n },\n \"BrandingTheme\": {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n },\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"ContactPersons\": [\n {\n \"EmailAddress\": \"aaron@muir.com\",\n \"FirstName\": \"Aaron\",\n \"IncludeInEmails\": true,\n \"LastName\": \"Muir\"\n }\n ],\n \"ContactStatus\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"DefaultCurrency\": \"AUD\",\n \"EmailAddress\": \"adam@moore.com\",\n \"FirstName\": \"Adam\",\n \"HasAttachments\": true,\n \"IsCustomer\": true,\n \"IsSupplier\": true,\n \"LastName\": \"Moore\",\n \"Name\": \"Adam Moore\",\n \"PaymentTerms\": [\n {\n \"Bills\": {\n \"Days\": 1,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n },\n \"Sales\": {\n \"Days\": 30,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n }\n }\n ],\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"PurchasesDefaultAccountCode\": 420,\n \"PurchasesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SalesDefaultAccountCode\": 200,\n \"SalesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SkypeUserName\": \"adamm\",\n \"TaxNumber\": \"GB12345667\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Website\": \"www.contact.com\",\n \"XeroNetworkKey\": \"J57MXL9Z3GULYFR9CUBSKZGVRTBCAL\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8936c421-91ea-47e4-9d04-8f74e1e513f0", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "458be06a-61cf-48e6-8a23-1cbffd8a2674", "documentation": "Create or update a contact", "method": "post", "endpoint": "Contacts", "responses": [ { "uuid": "ed9d4bf1-4899-4811-987b-f23df8db8b15", "body": "{\n \"Contacts\": [\n {\n \"AccountNumber\": \"AM123\",\n \"AccountsPayableTaxType\": \"NONE\",\n \"AccountsReceivableTaxType\": \"NONE\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"Balances\": [\n {\n \"AccountsPayable\": {\n \"Outstanding\": 50,\n \"Overdue\": 2\n },\n \"AccountsReceivable\": {\n \"Outstanding\": 1000,\n \"Overdue\": 500\n }\n }\n ],\n \"BankAccountDetails\": \"061844 8474733\",\n \"BatchPayments\": {\n \"BankAccountName\": \"Globo Bank\",\n \"BankAccountNumber\": \"098765 123456\",\n \"Details\": \"Stuff about the account\"\n },\n \"BrandingTheme\": {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n },\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"ContactPersons\": [\n {\n \"EmailAddress\": \"aaron@muir.com\",\n \"FirstName\": \"Aaron\",\n \"IncludeInEmails\": true,\n \"LastName\": \"Muir\"\n }\n ],\n \"ContactStatus\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"DefaultCurrency\": \"AUD\",\n \"EmailAddress\": \"adam@moore.com\",\n \"FirstName\": \"Adam\",\n \"HasAttachments\": true,\n \"IsCustomer\": true,\n \"IsSupplier\": true,\n \"LastName\": \"Moore\",\n \"Name\": \"Adam Moore\",\n \"PaymentTerms\": [\n {\n \"Bills\": {\n \"Days\": 1,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n },\n \"Sales\": {\n \"Days\": 30,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n }\n }\n ],\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"PurchasesDefaultAccountCode\": 420,\n \"PurchasesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SalesDefaultAccountCode\": 200,\n \"SalesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SkypeUserName\": \"adamm\",\n \"TaxNumber\": \"GB12345667\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Website\": \"www.contact.com\",\n \"XeroNetworkKey\": \"J57MXL9Z3GULYFR9CUBSKZGVRTBCAL\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "213a31cb-72b0-4128-82ed-31c3a3905dc7", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0f76a732-d971-4780-9cb0-90a46e5e95e7", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6e890f9d-162f-414c-a75a-ae9426bd0c21", "documentation": "Create a contact", "method": "put", "endpoint": "Contacts", "responses": [ { "uuid": "17103baa-66c0-4eba-bc47-45dfb80136c7", "body": "{\n \"Contacts\": [\n {\n \"AccountNumber\": \"AM123\",\n \"AccountsPayableTaxType\": \"NONE\",\n \"AccountsReceivableTaxType\": \"NONE\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"Balances\": [\n {\n \"AccountsPayable\": {\n \"Outstanding\": 50,\n \"Overdue\": 2\n },\n \"AccountsReceivable\": {\n \"Outstanding\": 1000,\n \"Overdue\": 500\n }\n }\n ],\n \"BankAccountDetails\": \"061844 8474733\",\n \"BatchPayments\": {\n \"BankAccountName\": \"Globo Bank\",\n \"BankAccountNumber\": \"098765 123456\",\n \"Details\": \"Stuff about the account\"\n },\n \"BrandingTheme\": {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n },\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"ContactPersons\": [\n {\n \"EmailAddress\": \"aaron@muir.com\",\n \"FirstName\": \"Aaron\",\n \"IncludeInEmails\": true,\n \"LastName\": \"Muir\"\n }\n ],\n \"ContactStatus\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"DefaultCurrency\": \"AUD\",\n \"EmailAddress\": \"adam@moore.com\",\n \"FirstName\": \"Adam\",\n \"HasAttachments\": true,\n \"IsCustomer\": true,\n \"IsSupplier\": true,\n \"LastName\": \"Moore\",\n \"Name\": \"Adam Moore\",\n \"PaymentTerms\": [\n {\n \"Bills\": {\n \"Days\": 1,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n },\n \"Sales\": {\n \"Days\": 30,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n }\n }\n ],\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"PurchasesDefaultAccountCode\": 420,\n \"PurchasesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SalesDefaultAccountCode\": 200,\n \"SalesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SkypeUserName\": \"adamm\",\n \"TaxNumber\": \"GB12345667\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Website\": \"www.contact.com\",\n \"XeroNetworkKey\": \"J57MXL9Z3GULYFR9CUBSKZGVRTBCAL\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "21ec2b62-7344-447e-bfe3-c092bdf99f0c", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5a07ffc0-4133-4c21-b817-6370e8f224e6", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "95f8dbde-ec76-4cd1-8741-20e9c2f9a7d9", "documentation": "Retrieve an individual contact", "method": "get", "endpoint": "Contacts/:ContactID", "responses": [ { "uuid": "f2d5f152-82f0-4a8e-83bb-9a9136221e4a", "body": "{\n \"Contacts\": [\n {\n \"AccountNumber\": \"AM123\",\n \"AccountsPayableTaxType\": \"NONE\",\n \"AccountsReceivableTaxType\": \"NONE\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"Balances\": [\n {\n \"AccountsPayable\": {\n \"Outstanding\": 50,\n \"Overdue\": 2\n },\n \"AccountsReceivable\": {\n \"Outstanding\": 1000,\n \"Overdue\": 500\n }\n }\n ],\n \"BankAccountDetails\": \"061844 8474733\",\n \"BatchPayments\": {\n \"BankAccountName\": \"Globo Bank\",\n \"BankAccountNumber\": \"098765 123456\",\n \"Details\": \"Stuff about the account\"\n },\n \"BrandingTheme\": {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n },\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"ContactPersons\": [\n {\n \"EmailAddress\": \"aaron@muir.com\",\n \"FirstName\": \"Aaron\",\n \"IncludeInEmails\": true,\n \"LastName\": \"Muir\"\n }\n ],\n \"ContactStatus\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"DefaultCurrency\": \"AUD\",\n \"EmailAddress\": \"adam@moore.com\",\n \"FirstName\": \"Adam\",\n \"HasAttachments\": true,\n \"IsCustomer\": true,\n \"IsSupplier\": true,\n \"LastName\": \"Moore\",\n \"Name\": \"Adam Moore\",\n \"PaymentTerms\": [\n {\n \"Bills\": {\n \"Days\": 1,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n },\n \"Sales\": {\n \"Days\": 30,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n }\n }\n ],\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"PurchasesDefaultAccountCode\": 420,\n \"PurchasesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SalesDefaultAccountCode\": 200,\n \"SalesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SkypeUserName\": \"adamm\",\n \"TaxNumber\": \"GB12345667\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Website\": \"www.contact.com\",\n \"XeroNetworkKey\": \"J57MXL9Z3GULYFR9CUBSKZGVRTBCAL\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2832e61a-99c8-4437-830e-a389d9efe609", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "695d10b1-e7f6-448d-9bec-175275d89806", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7c585da2-fa7f-45ff-b19c-93b8625eba25", "documentation": "Update a contact", "method": "post", "endpoint": "Contacts/:ContactID", "responses": [ { "uuid": "0abc801a-2a97-43c7-aef8-a19d039dcb11", "body": "{\n \"Contacts\": [\n {\n \"AccountNumber\": \"AM123\",\n \"AccountsPayableTaxType\": \"NONE\",\n \"AccountsReceivableTaxType\": \"NONE\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"Balances\": [\n {\n \"AccountsPayable\": {\n \"Outstanding\": 50,\n \"Overdue\": 2\n },\n \"AccountsReceivable\": {\n \"Outstanding\": 1000,\n \"Overdue\": 500\n }\n }\n ],\n \"BankAccountDetails\": \"061844 8474733\",\n \"BatchPayments\": {\n \"BankAccountName\": \"Globo Bank\",\n \"BankAccountNumber\": \"098765 123456\",\n \"Details\": \"Stuff about the account\"\n },\n \"BrandingTheme\": {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Name\": \"VIP Customer Theme\",\n \"SortOrder\": {{faker 'number.int' max=99999}}\n },\n \"ContactGroups\": [\n {\n \"ContactGroupID\": \"50e845c3-464e-4a6d-8951-8794317c7893\",\n \"Name\": \"Training\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED')}}\"\n }\n ],\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"ContactPersons\": [\n {\n \"EmailAddress\": \"aaron@muir.com\",\n \"FirstName\": \"Aaron\",\n \"IncludeInEmails\": true,\n \"LastName\": \"Muir\"\n }\n ],\n \"ContactStatus\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"DefaultCurrency\": \"AUD\",\n \"EmailAddress\": \"adam@moore.com\",\n \"FirstName\": \"Adam\",\n \"HasAttachments\": true,\n \"IsCustomer\": true,\n \"IsSupplier\": true,\n \"LastName\": \"Moore\",\n \"Name\": \"Adam Moore\",\n \"PaymentTerms\": [\n {\n \"Bills\": {\n \"Days\": 1,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n },\n \"Sales\": {\n \"Days\": 30,\n \"Type\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\"\n }\n }\n ],\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"PurchasesDefaultAccountCode\": 420,\n \"PurchasesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SalesDefaultAccountCode\": 200,\n \"SalesTrackingCategories\": [\n {\n \"Name\": \"\",\n \"Option\": \"\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"SkypeUserName\": \"adamm\",\n \"TaxNumber\": \"GB12345667\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Website\": \"www.contact.com\",\n \"XeroNetworkKey\": \"J57MXL9Z3GULYFR9CUBSKZGVRTBCAL\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "7fae2b6d-a184-467e-a929-793457f70185", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "be82b4c8-3b21-4fdb-89e6-53a178007fee", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "40ffd6b9-094c-47cf-83a0-c33587970a9c", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bbaf9e10-0071-4e3c-8ef2-b1f6da523905", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "Contacts/:ContactID/Attachments", "responses": [ { "uuid": "1af2db12-f2e1-4417-a9f4-ff2ca6ebda09", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "22e2c431-fc6b-4c78-a6f4-155fd2a12d23", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ab0236cf-3331-492e-8aa7-39252eb5b4d7", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8e48a20a-b00f-4f12-a0ef-297b422c3a4c", "documentation": "Download an Attachment", "method": "get", "endpoint": "Contacts/:ContactID/Attachments/:FileName", "responses": [ { "uuid": "e4db086b-69db-410f-be7a-c656ab6763f0", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "25fb68e6-3a96-4033-8c14-17892ac0361f", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "9975674a-1117-4568-956b-b891e6ea82dd", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d2094626-b127-41f3-8885-4f2f75138740", "documentation": "Upload an Attachment", "method": "post", "endpoint": "Contacts/:ContactID/Attachments/:FileName", "responses": [ { "uuid": "4559f3ff-00d7-4da4-b48e-38a19c8b28dd", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b37e5b0f-07d2-4916-9173-424480eaec5c", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b8c0e8ee-8408-4a21-aec3-34b2716470ad", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "df4b8422-2ce7-4fd3-a1b9-3829e58c20df", "documentation": "Retrieve a collection of credit notes", "method": "get", "endpoint": "CreditNotes", "responses": [ { "uuid": "0f08df4a-0802-45a9-91e3-e869a18d9b1f", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1590c710-1211-4127-93a1-21febc056283", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8bccd698-342d-44b1-a745-d6f8ad008d70", "documentation": "Create or update a credit note", "method": "post", "endpoint": "CreditNotes", "responses": [ { "uuid": "0eb7bdd7-e78a-4b82-b6f3-362b7d64c365", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "183e9968-4bb0-4a19-acc0-34992f760d9f", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0512828b-2af1-4613-89d6-515b478d267f", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "24999a42-c3b0-43e8-8be3-6a95555bb20b", "documentation": "Create a credit note", "method": "put", "endpoint": "CreditNotes", "responses": [ { "uuid": "e939107a-e42d-451b-b723-06cd9bd176a0", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fae8f46c-b35e-4a92-89f6-7d443f39c352", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0e76809c-dfe4-40fc-99f1-d02a480ca24f", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "248a1270-59bc-4a70-84b0-3ed609687a05", "documentation": "Retrieve an individual credit note", "method": "get", "endpoint": "CreditNotes/:CreditNoteID", "responses": [ { "uuid": "a2e192b9-50a0-48d6-b329-64f7943ee3e0", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "279fe5d0-d557-46a1-9d7b-93ddb72c283c", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2b5e143a-d3f2-4bff-8736-3a382a736915", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "62208df9-a86e-45c4-878e-55d62115bc54", "documentation": "Update a credit note", "method": "post", "endpoint": "CreditNotes/:CreditNoteID", "responses": [ { "uuid": "4d15cf18-5d8c-491d-82f9-c86a9682c09a", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "90188b80-945f-4ff3-8371-a1da38485dc9", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2f8e98ad-f058-42e9-ac19-1aa94aebee33", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "908ad33c-bd8f-4b4f-accc-b697818ba9d4", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "51c5f650-d9ae-4ec4-83a4-f2df1a846996", "documentation": "Allocate a credit note", "method": "put", "endpoint": "CreditNotes/:CreditNoteID/Allocations", "responses": [ { "uuid": "af9a2ec4-2f53-4d14-a9d8-35a59c13c584", "body": "{\n \"CreditNotes\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAYCREDIT' 'ACCRECCREDIT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5f5e7af4-19bb-43aa-a54a-6c19c94cc9e2", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0585b4bb-1e46-495b-b9f6-59aef574a47d", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "3b0de193-0f8f-49df-a036-84412a25558c", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "CreditNotes/:CreditNoteID/Attachments", "responses": [ { "uuid": "f65c87c4-de96-4fe8-a53e-cd37934d12c0", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "32548717-5fee-4bab-8999-282a462e5cd1", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "327bf346-6499-4809-9f63-7ee5b81a446a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bee997a0-4186-4558-8542-8ec0c6904ed9", "documentation": "Download an Attachment", "method": "get", "endpoint": "CreditNotes/:CreditNoteID/Attachments/:FileName", "responses": [ { "uuid": "db1751ec-31f3-48b4-8acd-13bbde5c94f4", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "30b49677-c0ba-433c-aed1-a2efe8dd9c24", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "dec8f2ab-9c25-444b-8d83-6106e2e54c1a", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b0932d06-79da-4b34-9351-9cc4c5d2c1dc", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ea936836-1cd5-4fa7-8820-4a8eb9e4a140", "documentation": "Upload an Attachment", "method": "post", "endpoint": "CreditNotes/:CreditNoteID/Attachments/:FileName", "responses": [ { "uuid": "46fd006c-fd01-4cd8-bb93-a76915853c8f", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "79b444b8-a2bd-4e02-a0e1-2589d316ecd6", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "7372637c-9fc6-42ef-819b-ca6111863b69", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5fc9c242-8ffe-4a94-a046-1bcf61d5a413", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e52e4990-b8e2-4626-b3e5-60adaa72134f", "documentation": "Retrieve the currencies the organisation is subscribed to", "method": "get", "endpoint": "Currencies", "responses": [ { "uuid": "f598b609-2b59-4508-a881-353a6d200088", "body": "{\n \"Currencies\": [\n {\n \"Code\": \"AUD\",\n \"Description\": \"Australian Dollar\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ba334778-d7b3-481a-9dfb-82af0e45ae3b", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "20f5ce6b-7c62-48fb-a4cc-644ae7ecbb6e", "documentation": "Add currencies to the organisation", "method": "put", "endpoint": "Currencies", "responses": [ { "uuid": "54d7c324-5c66-498f-b1f8-4cec7ceb0e03", "body": "{\n \"Currencies\": [\n {\n \"Code\": \"AUD\",\n \"Description\": \"Australian Dollar\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ae3209e3-bc6a-4d16-aa3c-7f4a1e30a159", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "265c0d71-5e44-4885-b453-a4aa9c1b2853", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d9f74c7e-b830-4f59-88c7-b4a362cd29b7", "documentation": "Retrieve a collection of employees", "method": "get", "endpoint": "Employees", "responses": [ { "uuid": "b94415fd-e8e9-414d-9c73-d6f58fe3a50d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"Employees\": [\n {\n \"EmployeeID\": \"{{faker 'string.uuid'}}\",\n \"ExternalLink\": \"\",\n \"FirstName\": \"Adam\",\n \"LastName\": \"Moore\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\"\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a0b52afe-b0dd-46fd-ad35-21119d027918", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "21af347b-3ab3-446e-abd7-8b23a418f82d", "documentation": "Create or update employees", "method": "post", "endpoint": "Employees", "responses": [ { "uuid": "6da6b68f-d3e3-4ef5-8d0a-848ffe8b7d93", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"Employees\": [\n {\n \"EmployeeID\": \"{{faker 'string.uuid'}}\",\n \"ExternalLink\": \"\",\n \"FirstName\": \"Adam\",\n \"LastName\": \"Moore\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\"\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4a0f93cb-b3c4-4538-8f15-d247e52adfef", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b85d50d3-218c-486c-8c4b-5e8888e9f8d3", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2478de93-222e-4fbb-b029-535390d96d9d", "documentation": "Create employees", "method": "put", "endpoint": "Employees", "responses": [ { "uuid": "c2366cfa-e96a-4841-8058-bde1aa701847", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"Employees\": [\n {\n \"EmployeeID\": \"{{faker 'string.uuid'}}\",\n \"ExternalLink\": \"\",\n \"FirstName\": \"Adam\",\n \"LastName\": \"Moore\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\"\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e2dec7c2-b4f5-460e-bc97-7896c709e7c2", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5f3f5caf-3619-4661-a2ea-158fc8c0139a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e8a542b1-23fc-4db5-98a8-9bb8fbe99c92", "documentation": "Retrieve an individual employee", "method": "get", "endpoint": "Employees/:EmployeeID", "responses": [ { "uuid": "a5d5269e-d545-49e5-8bef-a0d9a3e5dc26", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"Employees\": [\n {\n \"EmployeeID\": \"{{faker 'string.uuid'}}\",\n \"ExternalLink\": \"\",\n \"FirstName\": \"Adam\",\n \"LastName\": \"Moore\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\"\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8c3f8ad3-d864-4ab5-91b4-98a2cdeb5a08", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2fc29533-98a9-43c5-b44c-fdcc6aa06e0e", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "193e8c9e-c6df-4bf3-b63a-e85876b0164c", "documentation": "Update an employee", "method": "post", "endpoint": "Employees/:EmployeeID", "responses": [ { "uuid": "73b1269d-6726-4e88-b655-017db90c366b", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"Employees\": [\n {\n \"EmployeeID\": \"{{faker 'string.uuid'}}\",\n \"ExternalLink\": \"\",\n \"FirstName\": \"Adam\",\n \"LastName\": \"Moore\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\"\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c70ab02d-55fb-4871-be2d-4ed502008fca", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "824a68f0-57c3-47eb-96d3-6b9e930eaec3", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "c263c93a-8116-4af6-8053-363eaed4820c", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f3dfcc9d-24ea-43f9-8d1f-06b9237710a2", "documentation": "Retrieve a collection of expense claims", "method": "get", "endpoint": "ExpenseClaims", "responses": [ { "uuid": "d2961ef5-cedf-410c-bbc7-9f2f3ae9944e", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ExpenseClaims\": [\n {\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"ExpenseClaimID\": \"{{faker 'string.uuid'}}\",\n \"PaymentDueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ReportingDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Status\": \"{{oneOf (array 'SUBMITTED' 'AUTHORISED' 'PAID')}}\",\n \"Total\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "01fb6437-0169-45d2-9ae5-1c1c9d5fa2f5", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4a84f733-5f8f-451c-94f4-7ad8a23c6a72", "documentation": "Create or update an expense claim", "method": "post", "endpoint": "ExpenseClaims", "responses": [ { "uuid": "70143851-c9c3-40fb-8675-16e21abb5dc6", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ExpenseClaims\": [\n {\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"ExpenseClaimID\": \"{{faker 'string.uuid'}}\",\n \"PaymentDueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ReportingDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Status\": \"{{oneOf (array 'SUBMITTED' 'AUTHORISED' 'PAID')}}\",\n \"Total\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "479eda17-bc52-4be9-9e62-232f7d05e06b", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "b23419d7-1155-4bbf-ae9c-f290936fdf47", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9b9f478e-1aa1-4d6f-9c88-7489e1877040", "documentation": "Create an expense claim", "method": "put", "endpoint": "ExpenseClaims", "responses": [ { "uuid": "b5a6d277-31e2-4f21-a2e4-76f4e3a79967", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ExpenseClaims\": [\n {\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"ExpenseClaimID\": \"{{faker 'string.uuid'}}\",\n \"PaymentDueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ReportingDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Status\": \"{{oneOf (array 'SUBMITTED' 'AUTHORISED' 'PAID')}}\",\n \"Total\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "5a4311ef-fa43-4a1a-a5cd-6bd8fe20e173", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "48f1d2e8-5af8-4ae7-966a-e149f27fca55", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "6476d291-76c6-46ba-9d2c-30f2129de412", "documentation": "Retrieve an individual expense claim", "method": "get", "endpoint": "ExpenseClaims/:ExpenseClaimID", "responses": [ { "uuid": "c6c9f721-33f6-4ea7-b81f-4806442b976a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ExpenseClaims\": [\n {\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"ExpenseClaimID\": \"{{faker 'string.uuid'}}\",\n \"PaymentDueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ReportingDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Status\": \"{{oneOf (array 'SUBMITTED' 'AUTHORISED' 'PAID')}}\",\n \"Total\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "d7e76d4e-02cb-4ff6-8547-aaaed3eea420", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "4275d23b-d84d-4f4d-885a-dbb8b9f36ebe", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5ea13412-c9da-4916-82c5-060713b68476", "documentation": "Update an expense claim", "method": "post", "endpoint": "ExpenseClaims/:ExpenseClaimID", "responses": [ { "uuid": "9e4fbba9-00f2-4245-98d8-03f22b14f673", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ExpenseClaims\": [\n {\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"ExpenseClaimID\": \"{{faker 'string.uuid'}}\",\n \"PaymentDueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ReportingDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Status\": \"{{oneOf (array 'SUBMITTED' 'AUTHORISED' 'PAID')}}\",\n \"Total\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c7795acc-81b5-4435-815d-6e5513c1c509", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "30fc1950-813e-426c-84b1-9460679e21ad", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "6008f674-5882-4e71-a553-d0643bda7253", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "83d671a2-0f29-4d11-af6b-7de3762e98a0", "documentation": "Retrieve a collection of invoices (sales invoices and bills)", "method": "get", "endpoint": "Invoices", "responses": [ { "uuid": "e50cac04-9e46-4a2b-bf97-77ef873a813c", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Invoices\": [\n {\n \"AmountCredited\": {{faker 'number.float'}},\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNotes\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExpectedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Overpayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"PlannedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Prepayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"REF-123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCREC' 'ACCPAY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/INV-123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f9647e95-bfda-47f2-87aa-3992624d053e", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a15c4438-74e6-42ba-9731-9839c8049d79", "documentation": "Create or update an Invoice (sales invoices or bills)", "method": "post", "endpoint": "Invoices", "responses": [ { "uuid": "02b1e8c2-fcd1-4516-b7f9-59ed392a1093", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Invoices\": [\n {\n \"AmountCredited\": {{faker 'number.float'}},\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNotes\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExpectedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Overpayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"PlannedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Prepayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"REF-123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCREC' 'ACCPAY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/INV-123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a8324f9e-4c38-4cf9-9691-c36584caed73", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "de2524bf-a5cd-4056-b387-07d88fb03503", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d2463a26-7815-4acd-a431-d214194d8a07", "documentation": "Create an Invoice (sales invoices or bills)", "method": "put", "endpoint": "Invoices", "responses": [ { "uuid": "95465547-c4d7-4c3a-97e5-3576fb229056", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Invoices\": [\n {\n \"AmountCredited\": {{faker 'number.float'}},\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNotes\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExpectedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Overpayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"PlannedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Prepayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"REF-123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCREC' 'ACCPAY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/INV-123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c21ec23f-009b-4e2b-8db4-ad67eb90697a", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "1548fb73-900d-4d53-97af-ac00b70d66da", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f353707d-f2c7-472a-968c-adad2ff00fdb", "documentation": "Retrieve an Invoice (sales invoice or bill)", "method": "get", "endpoint": "Invoices/:InvoiceID", "responses": [ { "uuid": "cf9b5179-c890-4620-ac61-0140798568bf", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Invoices\": [\n {\n \"AmountCredited\": {{faker 'number.float'}},\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNotes\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExpectedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Overpayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"PlannedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Prepayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"REF-123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCREC' 'ACCPAY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/INV-123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "a94753f6-b210-46e5-904f-b5bad1015c6c", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "85895132-704b-4fb8-bef7-8dc56252fe47", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9941b9a5-bdfc-4bd0-9723-061a9b95001f", "documentation": "Update an Invoice (sales invoice or bill)", "method": "post", "endpoint": "Invoices/:InvoiceID", "responses": [ { "uuid": "8e55d09f-b682-4c7b-a9b4-555f2098752a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Invoices\": [\n {\n \"AmountCredited\": {{faker 'number.float'}},\n \"AmountDue\": {{faker 'number.float'}},\n \"AmountPaid\": {{faker 'number.float'}},\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CreditNotes\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DueDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExpectedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"FullyPaidOnDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Overpayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"PlannedPaymentDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Prepayments\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"REF-123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'PAID' 'VOIDED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"Totaltax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCREC' 'ACCPAY')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/INV-123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1886ce41-f455-447e-830c-426515fa907c", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "121bf388-c0ac-491f-8713-799b943a17d3", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2092fb5b-0ec0-4915-ac04-88db8a3919e2", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "61856e4a-96a7-4e32-b1bf-b58e0f935403", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "Invoices/:InvoiceID/Attachments", "responses": [ { "uuid": "1f6ae642-951e-4a0b-91e2-9f1676433c64", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "6fbacc8a-ab5f-4435-8b95-bde9d4d90f7d", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d6081e98-4e05-49b0-b476-25a9851b286e", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5a97948c-3413-464a-a41f-363e2dfda7c0", "documentation": "Download an Attachment", "method": "get", "endpoint": "Invoices/:InvoiceID/Attachments/:FileName", "responses": [ { "uuid": "462a0633-1b4d-469b-8e30-99e236c63501", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3529e82a-dcd6-4b13-87c4-60ed09255f08", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "101bb07f-a861-41ed-aeb8-0ed740b42d7b", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bc48abe1-640b-431e-a6e2-29a29f10a089", "documentation": "Upload an Attachment", "method": "post", "endpoint": "Invoices/:InvoiceID/Attachments/:FileName", "responses": [ { "uuid": "3bcb84d8-2224-4402-8d9a-960ecd5519af", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "81e4cecb-483e-400c-8824-1dbe49eb32dd", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "49ceb97d-8981-40c1-8fde-caf75e313a76", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "169a290c-5022-43aa-97f8-39b4cb13ff61", "documentation": "Retrieve the URL to view the online invoice", "method": "get", "endpoint": "Invoices/:InvoiceID/OnlineInvoice", "responses": [ { "uuid": "212925c9-d57a-4af8-80d1-c209dbcdd52d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"{{faker 'string.uuid'}}\",\n \"OnlineInvoices\": [\n {\n \"OnlineInvoiceUrl\": \"https://in.xero.com/U56hvGos5l9yHoeNITNjmqCVMVFUuDQyJMDwy41X\"\n }\n ],\n \"ProviderName\": \"\",\n \"Status\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "0400a27e-0862-49a7-a2b2-be6ba8c6e816", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3859feab-7225-4c83-a7bc-a214a4095312", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "492a5964-3a6f-4e25-b300-b131b32a2c9c", "documentation": "Retrieve a collection of items", "method": "get", "endpoint": "Items", "responses": [ { "uuid": "deb24357-b1fb-4536-b1e8-8b835a2e8cf6", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Items\": [\n {\n \"Code\": \"ABC123\",\n \"Description\": \"A really cool widget\",\n \"InventoryAssetAccountCode\": 630,\n \"IsPurchased\": {{faker 'datatype.boolean'}},\n \"IsSold\": {{faker 'datatype.boolean'}},\n \"IsTrackedAsInventory\": {{faker 'datatype.boolean'}},\n \"ItemID\": \"{{faker 'string.uuid'}}\",\n \"Name\": \"Widget\",\n \"PurchaseDescription\": \"A cheapo widget\",\n \"PurchaseDetails\": {\n \"AccountCode\": 420,\n \"COGSAccountCode\": 420,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"QuantityOnHand\": {{faker 'number.float'}},\n \"SalesDetails\": {\n \"AccountCode\": 200,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"TotalCostPool\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "521c3ad8-2d55-458a-af86-bd0aa46dce8b", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "892d664d-53b2-420a-bb99-6ec2d13f8e41", "documentation": "Create or update an item", "method": "post", "endpoint": "Items", "responses": [ { "uuid": "20650b91-45a9-44ba-a208-d6bf8a65b048", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Items\": [\n {\n \"Code\": \"ABC123\",\n \"Description\": \"A really cool widget\",\n \"InventoryAssetAccountCode\": 630,\n \"IsPurchased\": {{faker 'datatype.boolean'}},\n \"IsSold\": {{faker 'datatype.boolean'}},\n \"IsTrackedAsInventory\": {{faker 'datatype.boolean'}},\n \"ItemID\": \"{{faker 'string.uuid'}}\",\n \"Name\": \"Widget\",\n \"PurchaseDescription\": \"A cheapo widget\",\n \"PurchaseDetails\": {\n \"AccountCode\": 420,\n \"COGSAccountCode\": 420,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"QuantityOnHand\": {{faker 'number.float'}},\n \"SalesDetails\": {\n \"AccountCode\": 200,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"TotalCostPool\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f6f9dbf0-fe3e-477b-b617-442a4d6a054c", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a1e98d77-4f51-4421-8ecf-ed3fcb79da7f", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5987d556-5d87-4d8a-b80e-a7c5209f163c", "documentation": "Create an item", "method": "put", "endpoint": "Items", "responses": [ { "uuid": "dd392061-443a-42f2-ac52-b5d99d33a6af", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Items\": [\n {\n \"Code\": \"ABC123\",\n \"Description\": \"A really cool widget\",\n \"InventoryAssetAccountCode\": 630,\n \"IsPurchased\": {{faker 'datatype.boolean'}},\n \"IsSold\": {{faker 'datatype.boolean'}},\n \"IsTrackedAsInventory\": {{faker 'datatype.boolean'}},\n \"ItemID\": \"{{faker 'string.uuid'}}\",\n \"Name\": \"Widget\",\n \"PurchaseDescription\": \"A cheapo widget\",\n \"PurchaseDetails\": {\n \"AccountCode\": 420,\n \"COGSAccountCode\": 420,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"QuantityOnHand\": {{faker 'number.float'}},\n \"SalesDetails\": {\n \"AccountCode\": 200,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"TotalCostPool\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "bd0eaeb7-6ded-481a-925a-45963115a142", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f50d7c5c-8e2c-4773-9106-6b3b60bc1c96", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c064e0e4-ab89-4cac-b7d3-52944909e123", "documentation": "Delete an item", "method": "delete", "endpoint": "Items/:ItemID", "responses": [ { "uuid": "99e134ee-37c0-43c2-ab7d-9a7539740523", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "dce76476-674c-4cf1-8d00-6cc413c83fb7", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "e6f1043e-525f-4c01-a5bc-05578b0bce57", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "57b53d90-f3ff-4ae2-b17e-6ec2f28f39fc", "documentation": "Retrieve an item", "method": "get", "endpoint": "Items/:ItemID", "responses": [ { "uuid": "9962ff91-461d-4a74-959a-f8e6e47a0d7e", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Items\": [\n {\n \"Code\": \"ABC123\",\n \"Description\": \"A really cool widget\",\n \"InventoryAssetAccountCode\": 630,\n \"IsPurchased\": {{faker 'datatype.boolean'}},\n \"IsSold\": {{faker 'datatype.boolean'}},\n \"IsTrackedAsInventory\": {{faker 'datatype.boolean'}},\n \"ItemID\": \"{{faker 'string.uuid'}}\",\n \"Name\": \"Widget\",\n \"PurchaseDescription\": \"A cheapo widget\",\n \"PurchaseDetails\": {\n \"AccountCode\": 420,\n \"COGSAccountCode\": 420,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"QuantityOnHand\": {{faker 'number.float'}},\n \"SalesDetails\": {\n \"AccountCode\": 200,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"TotalCostPool\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "d7e3d9b4-fd8e-4750-84ad-e21f5b8716af", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "d96a74d3-4bdb-421c-a336-b1c57a8089eb", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fe688a05-b992-43f0-8e1c-c4d4b4703532", "documentation": "Update an item", "method": "post", "endpoint": "Items/:ItemID", "responses": [ { "uuid": "117b96cc-5738-44ed-85bf-477ffdb83b55", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Items\": [\n {\n \"Code\": \"ABC123\",\n \"Description\": \"A really cool widget\",\n \"InventoryAssetAccountCode\": 630,\n \"IsPurchased\": {{faker 'datatype.boolean'}},\n \"IsSold\": {{faker 'datatype.boolean'}},\n \"IsTrackedAsInventory\": {{faker 'datatype.boolean'}},\n \"ItemID\": \"{{faker 'string.uuid'}}\",\n \"Name\": \"Widget\",\n \"PurchaseDescription\": \"A cheapo widget\",\n \"PurchaseDetails\": {\n \"AccountCode\": 420,\n \"COGSAccountCode\": 420,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"QuantityOnHand\": {{faker 'number.float'}},\n \"SalesDetails\": {\n \"AccountCode\": 200,\n \"TaxType\": \"NONE\",\n \"UnitPrice\": {{faker 'number.float'}}\n },\n \"TotalCostPool\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "8d41b3a1-672d-44e5-b363-074e7bebf34f", "body": "{\n \"Elements\": {\n \"DataContractBase\": {\n \"ValidationErrors\": [\n {\n \"ValidationError\": {\n \"Message\": \"You did something silly\"\n }\n }\n ]\n }\n },\n \"ErrorNumber\": 10,\n \"Message\": \"A validation exception occurred\",\n \"Type\": \"ValidationException\"\n}", "latency": 0, "statusCode": 400, "label": "An validation exception occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "a7074c05-a2ff-4f55-977f-804ce96af996", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5c6b4872-1da7-4d82-9dd2-2543b077fdc5", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e7c46d6a-d218-48ab-863d-60b760bbc249", "documentation": "Retrieve a collection of journals.", "method": "get", "endpoint": "Journals", "responses": [ { "uuid": "9a938cbf-9aee-4353-8127-ba7a118fea12", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Journals\": [\n {\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"JournalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"JournalNumber\": 112,\n \"SourceID\": \"{{faker 'string.uuid'}}\",\n \"SourceType\": \"{{oneOf (array 'ACCREC' 'ACCPAY' 'ACCPAYCREDIT' 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'CASHREC' 'CASHPAID' 'TRANSFER' 'ARPREPAYMENT' 'APPREPAYMENT' 'AROVERPAYMENT' 'APOVERPAYMENT' 'EXPCLAIM' 'EXPPAYMENT' 'MANJOURNAL' 'PAYSLIP' 'WAGEPAYABLE' 'INTEGRATEDPAYROLLPE' 'INTEGRATEDPAYROLLPT' 'EXTERNALSPENDMONEY' 'INTEGRATEDPAYROLLPTPAYMENT' 'INTEGRATEDPAYROLLCN')}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "2b7944d1-294b-4520-8c8f-9cbd1451e425", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7d3180a1-c92f-4181-bf35-6fdfb2ef5222", "documentation": "Retrieve an individual journal.", "method": "get", "endpoint": "Journals/:JournalID", "responses": [ { "uuid": "5fb6067a-7315-4870-9bed-8ddad9164bb6", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Journals\": [\n {\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"JournalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"JournalNumber\": 112,\n \"SourceID\": \"{{faker 'string.uuid'}}\",\n \"SourceType\": \"{{oneOf (array 'ACCREC' 'ACCPAY' 'ACCPAYCREDIT' 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'CASHREC' 'CASHPAID' 'TRANSFER' 'ARPREPAYMENT' 'APPREPAYMENT' 'AROVERPAYMENT' 'APOVERPAYMENT' 'EXPCLAIM' 'EXPPAYMENT' 'MANJOURNAL' 'PAYSLIP' 'WAGEPAYABLE' 'INTEGRATEDPAYROLLPE' 'INTEGRATEDPAYROLLPT' 'EXTERNALSPENDMONEY' 'INTEGRATEDPAYROLLPTPAYMENT' 'INTEGRATEDPAYROLLCN')}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "bdb4dc13-b355-4a44-bde3-95bcde0c2e0b", "body": "", "latency": 0, "statusCode": 404, "label": "The resource you're looking for cannot be found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0d022e91-18ae-4cff-b915-f4a268182ba7", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "551b3e90-6c90-4a8a-ac5e-d34b39e663f7", "documentation": "Retrieve a collection of linked transactions (billable expenses)", "method": "get", "endpoint": "LinkedTransactions", "responses": [ { "uuid": "1e89f908-e167-4ad6-9b4a-8943c96e5453", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"LinkedTransactions\": [\n {\n \"ContactID\": \"{{faker 'string.uuid'}}\",\n \"LinkedTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceLineItemID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionTypeCode\": \"\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'APPROVED' 'ONDRAFT' 'BILLED' 'VOIDED')}}\",\n \"TargetLineItemID\": \"{{faker 'string.uuid'}}\",\n \"TargetTransactionID\": \"{{faker 'string.uuid'}}\",\n \"Type\": \"{{oneOf (array 'BILLABLEEXPENSE')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "98861d70-371c-47d4-a95f-7b5c412d2b4c", "documentation": "Create or update a linked transaction (billable expense)", "method": "post", "endpoint": "LinkedTransactions", "responses": [ { "uuid": "d744b08f-b1ee-48b2-a84d-de0380afa18e", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"LinkedTransactions\": [\n {\n \"ContactID\": \"{{faker 'string.uuid'}}\",\n \"LinkedTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceLineItemID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionTypeCode\": \"\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'APPROVED' 'ONDRAFT' 'BILLED' 'VOIDED')}}\",\n \"TargetLineItemID\": \"{{faker 'string.uuid'}}\",\n \"TargetTransactionID\": \"{{faker 'string.uuid'}}\",\n \"Type\": \"{{oneOf (array 'BILLABLEEXPENSE')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8c3cb7d7-7761-44e3-8eee-bd87eee59ab1", "documentation": "Create a linked transaction (billable expense)", "method": "put", "endpoint": "LinkedTransactions", "responses": [ { "uuid": "d2110600-00bc-4a80-bf36-599ec77df811", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"LinkedTransactions\": [\n {\n \"ContactID\": \"{{faker 'string.uuid'}}\",\n \"LinkedTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceLineItemID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionTypeCode\": \"\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'APPROVED' 'ONDRAFT' 'BILLED' 'VOIDED')}}\",\n \"TargetLineItemID\": \"{{faker 'string.uuid'}}\",\n \"TargetTransactionID\": \"{{faker 'string.uuid'}}\",\n \"Type\": \"{{oneOf (array 'BILLABLEEXPENSE')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b6395bf6-4906-4df0-9df5-2f889316f1ab", "documentation": "Delete a linked transaction (billable expense)", "method": "delete", "endpoint": "LinkedTransactions/:LinkedTransactionID", "responses": [ { "uuid": "4c11fe82-946f-40f7-a7a0-535d3cb97606", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c7b662b9-e681-4b5c-a403-5b7a6375dbfb", "documentation": "Retrieve a linked transaction (billable expense)", "method": "get", "endpoint": "LinkedTransactions/:LinkedTransactionID", "responses": [ { "uuid": "7fea6595-df5c-4d00-b5fe-a9826a16c7ba", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"LinkedTransactions\": [\n {\n \"ContactID\": \"{{faker 'string.uuid'}}\",\n \"LinkedTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceLineItemID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionTypeCode\": \"\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'APPROVED' 'ONDRAFT' 'BILLED' 'VOIDED')}}\",\n \"TargetLineItemID\": \"{{faker 'string.uuid'}}\",\n \"TargetTransactionID\": \"{{faker 'string.uuid'}}\",\n \"Type\": \"{{oneOf (array 'BILLABLEEXPENSE')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "db351555-63b7-4798-9467-0f944d10e801", "documentation": "Update a linked transaction (billable expense)", "method": "post", "endpoint": "LinkedTransactions/:LinkedTransactionID", "responses": [ { "uuid": "9152ac83-1b66-4b03-b989-67cb1765e63a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"LinkedTransactions\": [\n {\n \"ContactID\": \"{{faker 'string.uuid'}}\",\n \"LinkedTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceLineItemID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionID\": \"{{faker 'string.uuid'}}\",\n \"SourceTransactionTypeCode\": \"\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'APPROVED' 'ONDRAFT' 'BILLED' 'VOIDED')}}\",\n \"TargetLineItemID\": \"{{faker 'string.uuid'}}\",\n \"TargetTransactionID\": \"{{faker 'string.uuid'}}\",\n \"Type\": \"{{oneOf (array 'BILLABLEEXPENSE')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2308aa3d-895a-4f26-aaf8-e20434da5008", "documentation": "Retrieve a collection of manual journals", "method": "get", "endpoint": "ManualJournals", "responses": [ { "uuid": "ab8dbef4-0078-4128-b7a2-175897fd3019", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ManualJournals\": [\n {\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Narration\": \"Fixing a mistake\",\n \"ShowOnCashBasisReports\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'POSTED' 'DELETED' 'VOIDED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myaapp.com/journal/123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4ea9185d-14e0-4c61-ac2b-b18bb4f6b94c", "documentation": "Create or update a manual journal", "method": "post", "endpoint": "ManualJournals", "responses": [ { "uuid": "a20969e3-e57b-419c-b29c-aed99cf2c868", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ManualJournals\": [\n {\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Narration\": \"Fixing a mistake\",\n \"ShowOnCashBasisReports\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'POSTED' 'DELETED' 'VOIDED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myaapp.com/journal/123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7e3cc4de-4b44-4576-a66b-7072cca4b14e", "documentation": "Create a manual journal", "method": "put", "endpoint": "ManualJournals", "responses": [ { "uuid": "53f67e47-d076-44db-9750-a7245668eb16", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ManualJournals\": [\n {\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Narration\": \"Fixing a mistake\",\n \"ShowOnCashBasisReports\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'POSTED' 'DELETED' 'VOIDED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myaapp.com/journal/123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b616caf2-efbc-4d8f-92d3-8b9e87b8e9ca", "documentation": "Retrieve an individual manual journal", "method": "get", "endpoint": "ManualJournals/:ManualJournalID", "responses": [ { "uuid": "2712caef-c1e4-412c-9d5b-3c0f203616be", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ManualJournals\": [\n {\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Narration\": \"Fixing a mistake\",\n \"ShowOnCashBasisReports\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'POSTED' 'DELETED' 'VOIDED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myaapp.com/journal/123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0b20090a-61b1-47bc-a8a9-a364aa610382", "documentation": "Update a manual journal", "method": "post", "endpoint": "ManualJournals/:ManualJournalID", "responses": [ { "uuid": "15b58c0f-1e61-4601-a1c0-a46a5b8ae695", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ManualJournals\": [\n {\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"JournalID\": \"{{faker 'string.uuid'}}\",\n \"JournalLines\": [\n {\n \"AccountCode\": 200,\n \"Description\": \"Bought a thing\",\n \"LineAmount\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"NONE\",\n \"Tracking\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n }\n ],\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Narration\": \"Fixing a mistake\",\n \"ShowOnCashBasisReports\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'POSTED' 'DELETED' 'VOIDED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myaapp.com/journal/123\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f3f89d5a-66ff-4244-9063-93920e7946a7", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "ManualJournals/:ManualJournalID/Attachments", "responses": [ { "uuid": "040ed6f4-6530-4a18-b28e-2ff84f6fafdb", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "782992e1-e8b5-42c1-9ff0-69749ffc1d2d", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1ede0d9b-6166-4654-ac16-cb57b3da9fd9", "documentation": "Download an Attachment", "method": "get", "endpoint": "ManualJournals/:ManualJournalID/Attachments/:FileName", "responses": [ { "uuid": "65606ec7-ab13-447b-8427-c7945839867b", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ce53be5b-fdcd-4aac-a538-44965963bda6", "body": "", "latency": 0, "statusCode": 404, "label": "Attachment does not exist", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "46a3876c-db64-479a-8703-5cc858d0c94a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b694715b-fdab-43d2-a516-2d4a45d6727b", "documentation": "Upload an Attachment", "method": "post", "endpoint": "ManualJournals/:ManualJournalID/Attachments/:FileName", "responses": [ { "uuid": "3afb2d44-766d-4be6-af82-74cee751d20f", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "50309b3b-708c-4f95-8fb4-d4262dc614e5", "body": "", "latency": 0, "statusCode": 400, "label": "Attachment couldn't be created.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "04f7fd9b-1722-40e5-bda9-3049b38aac01", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d6f9500f-94f5-486b-9899-fcb30e320831", "documentation": "Retrieve Organisation details", "method": "get", "endpoint": "Organisation", "responses": [ { "uuid": "55070f47-99a8-4dea-a8f5-a53f6050198b", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Organisations\": [\n {\n \"APIKey\": \"HJSONEEWGDGATQAL1VSWAZ0XHME0DV\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"BaseCurrency\": \"AUD\",\n \"CountryCode\": \"AU\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"DefaultPurchasesTax\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"DefaultSalesTax\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"EndOfYearLockDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExternalLinks\": [\n {\n \"LinkType\": \"{{oneOf (array 'Facebook' 'GooglePlus' 'LinkedIn' 'Twitter' 'Website')}}\",\n \"Url\": \"http://twitter.com/xeroapi\"\n }\n ],\n \"FinancialYearEndDay\": 30,\n \"FinancialYearEndMonth\": 6,\n \"IsDemoCompany\": {{faker 'datatype.boolean'}},\n \"LegalName\": \"My Awesome Company Pty Ltd\",\n \"LineOfBusiness\": \"Dairy Cattle Farming\",\n \"Name\": \"My Awesome Company\",\n \"OrganisationEntityType\": \"{{oneOf (array 'COMPANY' 'CHARITY' 'CLUBSOCIETY' 'PARTNERSHIP' 'PRACTICE' 'PERSON' 'SOLETRADER' 'TRUST')}}\",\n \"OrganisationStatus\": \"{{oneOf (array 'ACTIVE')}}\",\n \"OrganisationType\": \"{{oneOf (array 'COMPANY' 'CHARITY' 'CLUBSOCIETY' 'PARTNERSHIP' 'PRACTICE' 'PERSON' 'SOLETRADER' 'TRUST')}}\",\n \"PaymentTerms\": \"\",\n \"PaysTax\": {{faker 'datatype.boolean'}},\n \"PeriodLockDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"RegistrationNumber\": 11111111138,\n \"SalesTaxBasis\": \"CASH\",\n \"SalesTaxPeriod\": \"MONTHLY\",\n \"ShortCode\": \"!YDrVg\",\n \"TaxNumber\": 53003086616,\n \"Timezone\": \"AUSEASTERNSTANDARDTIME\",\n \"Version\": \"{{oneOf (array 'AU' 'NZ' 'GLOBAL' 'UK' 'US' 'AUONRAMP' 'NZONRAMP' 'GLOBALONRAMP' 'UKONRAMP' 'USONRAMP')}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "74e06a3d-04ec-4aa8-abbe-8b75ffe91674", "documentation": "Retrieve Organisation details", "method": "get", "endpoint": "Organisation/:ShortCode", "responses": [ { "uuid": "459180aa-7b05-45bb-b8d1-ea782ed0f58d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Organisations\": [\n {\n \"APIKey\": \"HJSONEEWGDGATQAL1VSWAZ0XHME0DV\",\n \"Addresses\": [\n {\n \"AddressLine1\": \"Apartment A\",\n \"AddressLine2\": \"Building 20\",\n \"AddressLine3\": \"123 Main St\",\n \"AddressLine4\": \"South\",\n \"AddressType\": \"{{oneOf (array 'POBOX' 'STREET' 'POSTAL')}}\",\n \"Attentionto\": \"Accounts Department\",\n \"City\": \"New York City\",\n \"Country\": \"United States\",\n \"PostalCode\": 47483,\n \"Region\": \"New York\"\n }\n ],\n \"BaseCurrency\": \"AUD\",\n \"CountryCode\": \"AU\",\n \"CreatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"DefaultPurchasesTax\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"DefaultSalesTax\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"EndOfYearLockDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"ExternalLinks\": [\n {\n \"LinkType\": \"{{oneOf (array 'Facebook' 'GooglePlus' 'LinkedIn' 'Twitter' 'Website')}}\",\n \"Url\": \"http://twitter.com/xeroapi\"\n }\n ],\n \"FinancialYearEndDay\": 30,\n \"FinancialYearEndMonth\": 6,\n \"IsDemoCompany\": {{faker 'datatype.boolean'}},\n \"LegalName\": \"My Awesome Company Pty Ltd\",\n \"LineOfBusiness\": \"Dairy Cattle Farming\",\n \"Name\": \"My Awesome Company\",\n \"OrganisationEntityType\": \"{{oneOf (array 'COMPANY' 'CHARITY' 'CLUBSOCIETY' 'PARTNERSHIP' 'PRACTICE' 'PERSON' 'SOLETRADER' 'TRUST')}}\",\n \"OrganisationStatus\": \"{{oneOf (array 'ACTIVE')}}\",\n \"OrganisationType\": \"{{oneOf (array 'COMPANY' 'CHARITY' 'CLUBSOCIETY' 'PARTNERSHIP' 'PRACTICE' 'PERSON' 'SOLETRADER' 'TRUST')}}\",\n \"PaymentTerms\": \"\",\n \"PaysTax\": {{faker 'datatype.boolean'}},\n \"PeriodLockDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Phones\": [\n {\n \"PhoneAreaCode\": 3,\n \"PhoneCountryCode\": 1,\n \"PhoneNumber\": \"9885 4589\",\n \"PhoneType\": \"{{oneOf (array 'DEFAULT' 'DDI' 'MOBILE' 'FAX')}}\"\n }\n ],\n \"RegistrationNumber\": 11111111138,\n \"SalesTaxBasis\": \"CASH\",\n \"SalesTaxPeriod\": \"MONTHLY\",\n \"ShortCode\": \"!YDrVg\",\n \"TaxNumber\": 53003086616,\n \"Timezone\": \"AUSEASTERNSTANDARDTIME\",\n \"Version\": \"{{oneOf (array 'AU' 'NZ' 'GLOBAL' 'UK' 'US' 'AUONRAMP' 'NZONRAMP' 'GLOBALONRAMP' 'UKONRAMP' 'USONRAMP')}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b5a06bc0-0427-4f1f-87f3-00883e039bcd", "documentation": "Retrieve a collection of overpayments", "method": "get", "endpoint": "Overpayments", "responses": [ { "uuid": "b6651c63-2193-49c4-8ee9-00a20b6a828c", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Overpayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-OVERPAYMENT' 'SPEND-OVERPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cf939c83-b2d7-49b9-9678-f52a4b13c4d1", "documentation": "Retrieve an overpayment", "method": "get", "endpoint": "Overpayments/:OverpaymentID", "responses": [ { "uuid": "b2fcf65c-0ab2-451c-9316-2f0149474647", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Overpayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-OVERPAYMENT' 'SPEND-OVERPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0094ab2b-0be9-4b64-9469-208ccf613a39", "documentation": "Allocate an overpayment", "method": "put", "endpoint": "Overpayments/:OverpaymentID/Allocations", "responses": [ { "uuid": "44fe36bd-e379-4493-b605-0f48146845a7", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Overpayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Payments\": [\n {\n \"Amount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PaymentID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-OVERPAYMENT' 'SPEND-OVERPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cb5619e7-5b31-4d1f-af2e-4fd16c80c4e8", "documentation": "Retrieve a collection of payments for invoices, credit notes, prepayments and overpayments", "method": "get", "endpoint": "Payments", "responses": [ { "uuid": "de812a2f-5e22-42b8-9078-a997726514b7", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Payments\": [\n {\n \"Account\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 600\n },\n \"Amount\": {{faker 'number.float'}},\n \"CreditNote\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n },\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"Overpayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"PaymentID\": \"{{faker 'string.uuid'}}\",\n \"PaymentType\": \"{{oneOf (array 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'AROVERPAYMENTPAYMENT' 'ARPREPAYMENTPAYMENT' 'APPREPAYMENTPAYMENT' 'APOVERPAYMENTPAYMENT')}}\",\n \"Prepayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"Reference\": \"Direct Debit\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5091513f-800a-4e1f-80ec-cc03066e14df", "documentation": "Create a payment", "method": "post", "endpoint": "Payments", "responses": [ { "uuid": "1f1fe72c-1712-4e12-86e2-f28721df0dac", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Payments\": [\n {\n \"Account\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 600\n },\n \"Amount\": {{faker 'number.float'}},\n \"CreditNote\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n },\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"Overpayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"PaymentID\": \"{{faker 'string.uuid'}}\",\n \"PaymentType\": \"{{oneOf (array 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'AROVERPAYMENTPAYMENT' 'ARPREPAYMENTPAYMENT' 'APPREPAYMENTPAYMENT' 'APOVERPAYMENTPAYMENT')}}\",\n \"Prepayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"Reference\": \"Direct Debit\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4be9455a-72dc-4886-9088-b1019eb3bd37", "documentation": "Create a payment", "method": "put", "endpoint": "Payments", "responses": [ { "uuid": "c4ba77ff-b9aa-454e-b45f-eeff66b3fe3a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Payments\": [\n {\n \"Account\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 600\n },\n \"Amount\": {{faker 'number.float'}},\n \"CreditNote\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n },\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"Overpayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"PaymentID\": \"{{faker 'string.uuid'}}\",\n \"PaymentType\": \"{{oneOf (array 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'AROVERPAYMENTPAYMENT' 'ARPREPAYMENTPAYMENT' 'APPREPAYMENTPAYMENT' 'APOVERPAYMENTPAYMENT')}}\",\n \"Prepayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"Reference\": \"Direct Debit\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "941dc653-4493-4528-89dd-b49304fcbce8", "documentation": "Retrieve a payment", "method": "get", "endpoint": "Payments/:PaymentID", "responses": [ { "uuid": "12ecb589-39e7-4fbb-be6d-7fb11a2b890d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Payments\": [\n {\n \"Account\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 600\n },\n \"Amount\": {{faker 'number.float'}},\n \"CreditNote\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n },\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"Overpayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"PaymentID\": \"{{faker 'string.uuid'}}\",\n \"PaymentType\": \"{{oneOf (array 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'AROVERPAYMENTPAYMENT' 'ARPREPAYMENTPAYMENT' 'APPREPAYMENTPAYMENT' 'APOVERPAYMENTPAYMENT')}}\",\n \"Prepayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"Reference\": \"Direct Debit\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "aa8f375e-91e3-463b-80ec-ed0419f11fc7", "documentation": "Update a payment's status to deleted", "method": "post", "endpoint": "Payments/:PaymentID", "responses": [ { "uuid": "1c229a33-3df1-465b-a4ca-a82b8d3fef68", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Payments\": [\n {\n \"Account\": {\n \"AccountID\": \"{{faker 'string.uuid'}}\",\n \"Code\": 600\n },\n \"Amount\": {{faker 'number.float'}},\n \"CreditNote\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"CreditNoteID\": \"{{faker 'string.uuid'}}\",\n \"CreditNoteNumber\": \"CN-123\",\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"InvoiceID\": \"{{faker 'string.uuid'}}\",\n \"InvoiceNumber\": \"INV-123\",\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n },\n \"IsReconciled\": {{faker 'datatype.boolean'}},\n \"Overpayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"OverpaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"PaymentID\": \"{{faker 'string.uuid'}}\",\n \"PaymentType\": \"{{oneOf (array 'ACCRECPAYMENT' 'ACCPAYPAYMENT' 'ARCREDITPAYMENT' 'APCREDITPAYMENT' 'AROVERPAYMENTPAYMENT' 'ARPREPAYMENTPAYMENT' 'APPREPAYMENTPAYMENT' 'APOVERPAYMENTPAYMENT')}}\",\n \"Prepayment\": {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"Total\": {{faker 'number.float'}}\n },\n \"Reference\": \"Direct Debit\",\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'DELETED')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "f72676de-c133-4d72-8ac8-e4623e72de5e", "documentation": "Retrieve a collection of prepayments", "method": "get", "endpoint": "Prepayments", "responses": [ { "uuid": "1bdada97-a347-464f-a48c-b5fac78a065d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Prepayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-PREPAYMENT' 'SPEND-PREPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "97215490-206f-4c06-ab0e-07667fe422c7", "documentation": "Retrieve an individual prepayment", "method": "get", "endpoint": "Prepayments/:PrepaymentID", "responses": [ { "uuid": "1342a2ea-2225-4d81-a62a-4aa54456f894", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Prepayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-PREPAYMENT' 'SPEND-PREPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0a0f5fdb-b56a-441a-ad53-94febfadf920", "documentation": "Allocate a prepayment", "method": "put", "endpoint": "Prepayments/:PrepaymentID/Allocations", "responses": [ { "uuid": "8a1b3991-a6b4-4e85-ab96-611f3aa25a88", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"Prepayments\": [\n {\n \"Allocations\": [\n {\n \"AppliedAmount\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Invoice\": {\n \"InvoiceID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PrepaymentID\": \"{{faker 'string.uuid'}}\",\n \"RemainingCredit\": {{faker 'number.float'}},\n \"Status\": \"{{oneOf (array 'AUTHORISED' 'PAID' 'VOIDED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'RECEIVE-PREPAYMENT' 'SPEND-PREPAYMENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "98e328ef-cf4f-4953-9c30-ea1c940c3000", "documentation": "Retrieve a collection of purchase orders", "method": "get", "endpoint": "PurchaseOrders", "responses": [ { "uuid": "c2111353-568d-409b-a306-f91eee24104a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"PurchaseOrders\": [\n {\n \"AttentionTo\": \"Adam\",\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryAddress\": \"23 Main Street, Central City, Marineville,1234\",\n \"DeliveryDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryInstructions\": \"Don't forget the secret knock\",\n \"ExpectedArrivalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PurchaseOrderID\": \"{{faker 'string.uuid'}}\",\n \"PurchaseOrderNumber\": \"PO-123\",\n \"Reference\": \"ABC123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'BILLED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Telephone\": \"0800 1234 5678\",\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a2912eff-a6fa-43ae-9497-b4336247af6d", "documentation": "Create and update purchase orders", "method": "post", "endpoint": "PurchaseOrders", "responses": [ { "uuid": "e554ba63-fc05-4fa3-9316-fb34dbaa3c9a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"PurchaseOrders\": [\n {\n \"AttentionTo\": \"Adam\",\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryAddress\": \"23 Main Street, Central City, Marineville,1234\",\n \"DeliveryDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryInstructions\": \"Don't forget the secret knock\",\n \"ExpectedArrivalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PurchaseOrderID\": \"{{faker 'string.uuid'}}\",\n \"PurchaseOrderNumber\": \"PO-123\",\n \"Reference\": \"ABC123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'BILLED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Telephone\": \"0800 1234 5678\",\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "21d3d0d4-2450-4d76-83c8-533b7b5c48fe", "documentation": "Create purchase orders", "method": "put", "endpoint": "PurchaseOrders", "responses": [ { "uuid": "de6962bd-a471-4a94-9e3d-32602658a11f", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"PurchaseOrders\": [\n {\n \"AttentionTo\": \"Adam\",\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryAddress\": \"23 Main Street, Central City, Marineville,1234\",\n \"DeliveryDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryInstructions\": \"Don't forget the secret knock\",\n \"ExpectedArrivalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PurchaseOrderID\": \"{{faker 'string.uuid'}}\",\n \"PurchaseOrderNumber\": \"PO-123\",\n \"Reference\": \"ABC123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'BILLED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Telephone\": \"0800 1234 5678\",\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0c1ba376-9f15-4950-a5f7-53098ddbd792", "documentation": "Retrieve a single purchase order", "method": "get", "endpoint": "PurchaseOrders/:PurchaseOrderID", "responses": [ { "uuid": "ed8b6f78-54c8-4931-9ab6-64f692c2a572", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"PurchaseOrders\": [\n {\n \"AttentionTo\": \"Adam\",\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryAddress\": \"23 Main Street, Central City, Marineville,1234\",\n \"DeliveryDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryInstructions\": \"Don't forget the secret knock\",\n \"ExpectedArrivalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PurchaseOrderID\": \"{{faker 'string.uuid'}}\",\n \"PurchaseOrderNumber\": \"PO-123\",\n \"Reference\": \"ABC123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'BILLED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Telephone\": \"0800 1234 5678\",\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "67e9e3a9-1776-41d2-8aaa-12b62b6ad5d5", "documentation": "Update a purchase order", "method": "post", "endpoint": "PurchaseOrders/:PurchaseOrderID", "responses": [ { "uuid": "3a052165-a73c-4657-a060-5952a61de5ed", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"PurchaseOrders\": [\n {\n \"AttentionTo\": \"Adam\",\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"CurrencyRate\": {{faker 'number.float'}},\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryAddress\": \"23 Main Street, Central City, Marineville,1234\",\n \"DeliveryDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"DeliveryInstructions\": \"Don't forget the secret knock\",\n \"ExpectedArrivalDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"PurchaseOrderID\": \"{{faker 'string.uuid'}}\",\n \"PurchaseOrderNumber\": \"PO-123\",\n \"Reference\": \"ABC123\",\n \"SentToContact\": {{faker 'datatype.boolean'}},\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'BILLED' 'DELETED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Telephone\": \"0800 1234 5678\",\n \"Total\": {{faker 'number.float'}},\n \"TotalDiscount\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9847cdd1-84be-431c-a573-b4c64796523e", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "PurchaseOrders/:PurchaseOrderID/Attachments", "responses": [ { "uuid": "33629d30-9346-4ed1-b1db-5a73039caf0e", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "19c103f7-d62d-4378-b577-8e181c5723e3", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d778e9e6-c216-49fb-9acd-c83ffea6ce18", "documentation": "Download an Attachment", "method": "get", "endpoint": "PurchaseOrders/:PurchaseOrderID/Attachments/:FileName", "responses": [ { "uuid": "23467f4c-95dc-4733-8639-c337e52bb764", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "70735ac6-ec6c-444c-ae8b-c27df5fba6e6", "body": "", "latency": 0, "statusCode": 404, "label": "Attachment does not exist", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "140329e3-ce06-4bfe-93ac-c1d60a214f61", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8693f208-7d49-4bab-99a8-5541f3e1aae9", "documentation": "Upload an Attachment", "method": "post", "endpoint": "PurchaseOrders/:PurchaseOrderID/Attachments/:FileName", "responses": [ { "uuid": "413bd840-dffd-4afb-84d3-be66e7813e24", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fd3a6149-0c4e-4e17-80e5-a83ca88bd337", "body": "", "latency": 0, "statusCode": 400, "label": "Attachment couldn't be created.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3839f9c4-b605-484c-9a33-675dff820d2e", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8d73a63b-48c4-4040-bc57-948d32125cc6", "documentation": "Retrieve a collection of draft receipts", "method": "get", "endpoint": "Receipts", "responses": [ { "uuid": "8112d722-5656-4d76-bdc3-e0d924af1675", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7e170cf3-6bf1-4bd0-818b-da46c2a8f9cc", "documentation": "Create or update a receipt", "method": "post", "endpoint": "Receipts", "responses": [ { "uuid": "f03a2598-a793-4f9b-a941-3713eb95ef71", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9066cbb0-3e43-41c9-a4e9-1fdea4c0771d", "documentation": "Create a receipt", "method": "put", "endpoint": "Receipts", "responses": [ { "uuid": "4ae58a29-f2b0-48d8-9186-da3d46a24d32", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "28097365-f7b4-47d2-a434-f67749600eae", "documentation": "Retrieve an individual receipt", "method": "get", "endpoint": "Receipts/:ReceiptID", "responses": [ { "uuid": "d3f4b9b4-c0f4-4090-b5e5-6450d749510b", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "1b2e85d5-b417-48ab-9ce9-957ccc4f18a8", "documentation": "Update a receipt", "method": "post", "endpoint": "Receipts/:ReceiptID", "responses": [ { "uuid": "e6126afe-c6ea-4c06-92d5-41d327c2810f", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Receipts\": [\n {\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"Date\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"Lineitems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"ReceiptID\": \"{{faker 'string.uuid'}}\",\n \"ReceiptNumber\": \"\",\n \"Reference\": \"ABC123\",\n \"Status\": \"{{oneOf (array 'DRAFT' 'SUBMITTED' 'AUTHORISED' 'DECLINED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"Url\": \"https://myapp.com/receipt/123\",\n \"User\": {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c1c5d501-90ae-4f22-b2a4-f5a3f6d59388", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "Receipts/:ReceiptID/Attachments", "responses": [ { "uuid": "298e800e-4d64-403c-b292-44e27ff5d7a0", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f97a8f0c-5f66-4a9f-acca-ca7f622b765d", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "140caf95-86b1-4735-b519-90cdc891c7b4", "documentation": "Download an Attachment", "method": "get", "endpoint": "Receipts/:ReceiptID/Attachments/:FileName", "responses": [ { "uuid": "5763a6a0-4de3-410f-902e-de5f422ade72", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "fcd202b9-6d9c-466b-8d01-1111f1a0b7ed", "body": "", "latency": 0, "statusCode": 404, "label": "Attachment does not exist", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "efef84bc-2aaf-45c6-807b-28f2dc71e75f", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5b764bf4-f3d8-4770-a0a2-8f58697993c2", "documentation": "Upload an Attachment", "method": "post", "endpoint": "Receipts/:ReceiptID/Attachments/:FileName", "responses": [ { "uuid": "9ccc1001-6239-45bc-8f22-8301162f417a", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "9e56e5cc-b77c-4671-80ae-d51c8fa5c961", "body": "", "latency": 0, "statusCode": 400, "label": "Attachment couldn't be created.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3eb6cb4e-b1a4-4a16-bedb-7f520267241a", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ffb28aac-cc44-4f7a-80db-b71f3059aa67", "documentation": "Retrieve a collection of repeating invoice templates", "method": "get", "endpoint": "RepeatingInvoices", "responses": [ { "uuid": "3ae58cbd-f918-49ec-b976-0bdd76490ca6", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"RepeatingInvoices\": [\n {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RepeatingInvoiceID\": \"{{faker 'string.uuid'}}\",\n \"Schedule\": {\n \"DueDate\": {{faker 'number.int' max=99999}},\n \"DueDateType\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\",\n \"EndDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"NextScheduledDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Period\": {{faker 'number.int' max=99999}},\n \"StartDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Unit\": \"\"\n },\n \"Status\": \"{{oneOf (array 'DRAFT' 'AUTHORISED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5ca58a33-6e53-4daa-854e-bfcc121f7cbf", "documentation": "Retrieve an individual repeating invoice template", "method": "get", "endpoint": "RepeatingInvoices/:RepeatingInvoiceID", "responses": [ { "uuid": "0509ba35-662a-4154-9836-d5d6fcda6ffc", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"RepeatingInvoices\": [\n {\n \"BrandingThemeID\": \"{{faker 'string.uuid'}}\",\n \"Contact\": {\n \"ContactID\": \"cc04bc53-f094-4ed6-8b3e-67297c37fae0\",\n \"Name\": \"Adam Moore\"\n },\n \"CurrencyCode\": \"AUD\",\n \"HasAttachments\": {{faker 'datatype.boolean'}},\n \"LineAmountTypes\": \"{{oneOf (array 'Inclusive' 'Exclusive' 'NoTax')}}\",\n \"LineItems\": [\n {\n \"AccountCode\": 420,\n \"Description\": \"Travel Expenses\",\n \"DiscountRate\": {{faker 'number.float'}},\n \"ItemCode\": 110,\n \"LineAmount\": {{faker 'number.float'}},\n \"LineItemID\": \"{{faker 'string.uuid'}}\",\n \"Quantity\": {{faker 'number.float'}},\n \"TaxAmount\": {{faker 'number.float'}},\n \"TaxType\": \"\",\n \"Tracking\": {\n \"TrackingCategory\": [\n {\n \"Name\": \"Region\",\n \"Option\": \"North\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n },\n \"UnitAmount\": {{faker 'number.float'}}\n }\n ],\n \"Reference\": \"ABC123\",\n \"RepeatingInvoiceID\": \"{{faker 'string.uuid'}}\",\n \"Schedule\": {\n \"DueDate\": {{faker 'number.int' max=99999}},\n \"DueDateType\": \"{{oneOf (array 'DAYSAFTERBILLDATE' 'DAYSAFTERBILLMONTH' 'OFCURRENTMONTH' 'OFFOLLOWINGMONTH')}}\",\n \"EndDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"NextScheduledDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Period\": {{faker 'number.int' max=99999}},\n \"StartDate\": \"{{date '2019' (now) 'yyyy-MM-dd'}}\",\n \"Unit\": \"\"\n },\n \"Status\": \"{{oneOf (array 'DRAFT' 'AUTHORISED')}}\",\n \"SubTotal\": {{faker 'number.float'}},\n \"Total\": {{faker 'number.float'}},\n \"TotalTax\": {{faker 'number.float'}},\n \"Type\": \"{{oneOf (array 'ACCPAY' 'ACCREC')}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "77575b0b-391c-448d-9450-ba3d48f6c57c", "documentation": "Retrieve Attachments", "method": "get", "endpoint": "RepeatingInvoices/:RepeatingInvoiceID/Attachments", "responses": [ { "uuid": "8ed61e84-1ae1-45b9-8e50-cbea6ef80c46", "body": "{\n \"Attachments\": [\n {\n \"AttachmentId\": \"a04bf353-4d9a-4bda-8c1e-db1274164ee\",\n \"ContentLegth\": 6384,\n \"Filename\": \"my-receipt.jpg\",\n \"IncludeOnline\": true,\n \"MimeType\": \"image/jpg\",\n \"Url\": \"https://api.xero.com/api.xro/2.0/Receipts/e59a2c7f-4078-a0f3-73537afcbba9/Attachments/my-receipt.jpg\"\n }\n ],\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "e0a52ed8-8ce7-4ed6-9210-304363c5d792", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ee7695d6-d2b6-4c1f-b210-f8382b68ac14", "documentation": "Download an Attachment", "method": "get", "endpoint": "RepeatingInvoices/:RepeatingInvoiceID/Attachments/:FileName", "responses": [ { "uuid": "f76fca75-2c3e-447d-95df-b4dda7f9aef0", "body": "", "latency": 0, "statusCode": 200, "label": "Successful response. The response message will contain the raw file content that was originally uploaded. The response won’t contain any xml or json encoded information", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "591c9177-cc53-4462-987a-df564af22415", "body": "", "latency": 0, "statusCode": 404, "label": "Attachment does not exist", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "04041f69-8e40-4459-a818-5df392fb18fd", "body": "{\n \"ErrorNumber\": 500,\n \"Message\": \"An error occurred in Xero. Check the API Status page for current service status. Contact the API support team at api@xero.com for more assistance.\",\n \"Type\": \"UnknownErrorException\"\n}", "latency": 0, "statusCode": 500, "label": "An unexpected error occured.", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "ca63e44a-5b27-4cd9-83ee-743389cdcbea", "documentation": "Retrieve a list of published GST reports (NZ) or BAS reports (AU)", "method": "get", "endpoint": "Reports", "responses": [ { "uuid": "0d11410b-0ba4-4259-b0f8-36cbad20a5f7", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"1 Oct 2017 to 31 Oct 2017\",\n \"ReportID\": \"{{faker 'string.uuid'}}\",\n \"ReportName\": \"Activity Statement\",\n \"ReportType\": \"ActivityStatement\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e2ef15f4-cf20-456c-9c8e-be4bcc971bd8", "documentation": "Retrieve an Aged Payables report for a contact", "method": "get", "endpoint": "Reports/AgedPayablesByContact", "responses": [ { "uuid": "39f1f14b-b85c-4f49-b8d8-332b066e135a", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e9b5c0ea-9a47-4e9c-8a79-9913158aca71", "documentation": "Retrieve an Aged Receivables report for a contact", "method": "get", "endpoint": "Reports/AgedReceivablesByContact", "responses": [ { "uuid": "7bee150d-68c1-4e8c-885b-4629ea71a2e5", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0818821b-0eae-44dd-95ba-5492b22ee5fc", "documentation": "Retrieve a Balance Sheet Report", "method": "get", "endpoint": "Reports/BalanceSheet", "responses": [ { "uuid": "aea9967d-540d-4c74-9438-b70ffb1f618b", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "a451a31c-ffcc-48be-a1e6-0bab0db5d7db", "documentation": "Retrieve a bank statement report", "method": "get", "endpoint": "Reports/BankStatement", "responses": [ { "uuid": "c506fa02-9f0e-4c6e-9876-2efe1934fc64", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e266dfc8-2d3c-4ad6-ac7b-1c84d6072129", "documentation": "Retrieve a bank summary report", "method": "get", "endpoint": "Reports/BankSummary", "responses": [ { "uuid": "57340da8-ed01-4d7d-94c6-46f50fe9686c", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "04b1e097-018f-4853-9d7c-ed62844e7782", "documentation": "Retrieve a budget summary report", "method": "get", "endpoint": "Reports/BudgetSummary", "responses": [ { "uuid": "0e22971f-26f3-4f94-90a6-c61ebfef97be", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4020336a-a618-4225-8fc7-64601a4d17f3", "documentation": "Retrieve an executive summary report", "method": "get", "endpoint": "Reports/ExecutiveSummary", "responses": [ { "uuid": "77873d9e-f9f1-4979-aecf-12f097ec2c2c", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fca8453c-bba2-4263-ad40-f8c4c9d1c701", "documentation": "Retrieve a profit and loss report", "method": "get", "endpoint": "Reports/ProfitAndLoss", "responses": [ { "uuid": "564e8d38-0f2f-4095-85b8-3e8b0215cab0", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2faf17da-4fce-4c45-b27a-7bfb07221641", "documentation": "Retrieve a 1099 Report (US only)", "method": "get", "endpoint": "Reports/TenNinetyNine", "responses": [ { "uuid": "2c7b4027-7a64-404d-bb76-979350bb4ae3", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "370e9548-10e7-436d-969b-d91d62844d92", "documentation": "Retrieve a Trial Balance Report", "method": "get", "endpoint": "Reports/TrialBalance", "responses": [ { "uuid": "8d9c6357-ff4c-41dc-9d20-10af75aec74d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"BalanceSheet\",\n \"ReportName\": \"Balance Sheet\",\n \"ReportTitles\": \"Balance Sheet\",\n \"ReportType\": \"BalanceSheet\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Value\": \"30 Nov 2017\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Header' 'Section' 'Row' 'SummaryRow')}}\",\n \"Rows\": [\n {\n \"Cells\": [\n {\n \"Attributes\": [\n {\n \"Id\": \"{{oneOf (array 'account')}}\",\n \"Value\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Value\": \"Business Account\"\n }\n ],\n \"RowType\": \"{{oneOf (array 'Row' 'SummaryRow')}}\"\n }\n ],\n \"Title\": \"Assets\"\n }\n ],\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0eca23c5-cea1-4fe6-bfc0-010f91a1c005", "documentation": "Retrieve an individual BAS Report (AU) or GST Report (NZ)", "method": "get", "endpoint": "Reports/:ReportID", "responses": [ { "uuid": "d7151925-6506-4929-bbd9-484a66076100", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Reports\": [\n {\n \"Attributes\": {\n \"ReportAttribute\": [\n {\n \"Description\": \"From\",\n \"Name\": \"fromDate\",\n \"Value\": \"2011-11-01T00:00:00.000Z\"\n }\n ]\n },\n \"Fields\": {\n \"ReportField\": [\n {\n \"Description\": \"Total salary, wages and other payments\",\n \"FieldID\": \"W1\",\n \"Value\": 500\n }\n ]\n },\n \"ReportDate\": \"10 November 2017\",\n \"ReportID\": \"{{faker 'string.uuid'}}\",\n \"ReportName\": \"Activity Statement\",\n \"ReportType\": \"SalesTaxReturn\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\"\n }\n ],\n \"Status\": \"OK\"\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b33c2c1b-e6c3-4358-81a5-65b4a43b0f71", "documentation": "Retrieve a collection of tax rates", "method": "get", "endpoint": "TaxRates", "responses": [ { "uuid": "791297eb-cfae-4b1d-ac0c-d213710ba4a4", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TaxRates\": [\n {\n \"CanApplyToAssets\": {{faker 'datatype.boolean'}},\n \"CanApplyToEquity\": {{faker 'datatype.boolean'}},\n \"CanApplyToExpenses\": {{faker 'datatype.boolean'}},\n \"CanApplyToLiabilities\": {{faker 'datatype.boolean'}},\n \"CanApplyToRevenue\": {{faker 'datatype.boolean'}},\n \"DisplayTaxRate\": {{faker 'number.float'}},\n \"EffectiveRate\": {{faker 'number.float'}},\n \"Name\": \"Sales Tax\",\n \"ReportTaxType\": \"\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED' 'ARCHIVED')}}\",\n \"TaxComponents\": [\n {\n \"IsCompound\": {{faker 'datatype.boolean'}},\n \"IsNonRecoverable\": {{faker 'datatype.boolean'}},\n \"Name\": \"City Tax\",\n \"Rate\": {{faker 'number.float'}}\n }\n ],\n \"TaxType\": \"TAX001\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "09bc23d0-c1e6-4393-adff-da5a8d816eac", "documentation": "Create or update tax rates", "method": "post", "endpoint": "TaxRates", "responses": [ { "uuid": "4941e634-4180-4aec-8314-f27626e72477", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TaxRates\": [\n {\n \"CanApplyToAssets\": {{faker 'datatype.boolean'}},\n \"CanApplyToEquity\": {{faker 'datatype.boolean'}},\n \"CanApplyToExpenses\": {{faker 'datatype.boolean'}},\n \"CanApplyToLiabilities\": {{faker 'datatype.boolean'}},\n \"CanApplyToRevenue\": {{faker 'datatype.boolean'}},\n \"DisplayTaxRate\": {{faker 'number.float'}},\n \"EffectiveRate\": {{faker 'number.float'}},\n \"Name\": \"Sales Tax\",\n \"ReportTaxType\": \"\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED' 'ARCHIVED')}}\",\n \"TaxComponents\": [\n {\n \"IsCompound\": {{faker 'datatype.boolean'}},\n \"IsNonRecoverable\": {{faker 'datatype.boolean'}},\n \"Name\": \"City Tax\",\n \"Rate\": {{faker 'number.float'}}\n }\n ],\n \"TaxType\": \"TAX001\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0e851d30-cf24-44be-82d1-5a3dec98c0fd", "documentation": "Create tax rates", "method": "put", "endpoint": "TaxRates", "responses": [ { "uuid": "82d3fabc-4377-448a-85d8-147829aac5b5", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TaxRates\": [\n {\n \"CanApplyToAssets\": {{faker 'datatype.boolean'}},\n \"CanApplyToEquity\": {{faker 'datatype.boolean'}},\n \"CanApplyToExpenses\": {{faker 'datatype.boolean'}},\n \"CanApplyToLiabilities\": {{faker 'datatype.boolean'}},\n \"CanApplyToRevenue\": {{faker 'datatype.boolean'}},\n \"DisplayTaxRate\": {{faker 'number.float'}},\n \"EffectiveRate\": {{faker 'number.float'}},\n \"Name\": \"Sales Tax\",\n \"ReportTaxType\": \"\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'DELETED' 'ARCHIVED')}}\",\n \"TaxComponents\": [\n {\n \"IsCompound\": {{faker 'datatype.boolean'}},\n \"IsNonRecoverable\": {{faker 'datatype.boolean'}},\n \"Name\": \"City Tax\",\n \"Rate\": {{faker 'number.float'}}\n }\n ],\n \"TaxType\": \"TAX001\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b8df8cea-6d33-4ade-a871-2fd3a5899634", "documentation": "Retrieve a collection of tracking categories and options", "method": "get", "endpoint": "TrackingCategories", "responses": [ { "uuid": "0c548ae5-2cda-4299-8fda-14774f082b9b", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d3c87927-500d-4771-b0c4-890b7b5f9ee6", "documentation": "Create a tracking category", "method": "post", "endpoint": "TrackingCategories", "responses": [ { "uuid": "aa85f411-e603-42a4-9023-fe759734b034", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "338814fa-5123-491d-8b15-14c9466851d5", "documentation": "Create a tracking category", "method": "put", "endpoint": "TrackingCategories", "responses": [ { "uuid": "09ec4e6e-959a-47a7-a232-8624cfc16965", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9a429b78-4988-48d6-addb-575315148fd6", "documentation": "Delete a Tracking Category", "method": "delete", "endpoint": "TrackingCategories/:TrackingCategoryID", "responses": [ { "uuid": "649dbc75-7f0b-4064-8a5d-46fc91efaa88", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d458e0f7-b170-4ed5-b249-ad5991e70c39", "documentation": "Retrieve a tracking category and it's options", "method": "get", "endpoint": "TrackingCategories/:TrackingCategoryID", "responses": [ { "uuid": "d7c739e2-6317-4d78-aa7d-3edd0b49955d", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7870a6ff-046e-4597-98af-c9b35ff39039", "documentation": "Create or update a tracking category", "method": "post", "endpoint": "TrackingCategories/:TrackingCategoryID", "responses": [ { "uuid": "b381239d-bf65-4f22-b684-bc135a941376", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7413ef90-e601-48a0-b31e-3e610a429c75", "documentation": "Add options to a tracking category", "method": "put", "endpoint": "TrackingCategories/:TrackingCategoryID/Options", "responses": [ { "uuid": "0ca90e3b-2db1-4204-8431-80d480ca2176", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"TrackingCategories\": [\n {\n \"Name\": \"Region\",\n \"Options\": [\n {\n \"Name\": \"North\",\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingOptionID\": \"{{faker 'string.uuid'}}\"\n }\n ],\n \"Status\": \"{{oneOf (array 'ACTIVE' 'ARCHIVED')}}\",\n \"TrackingCategoryID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "9c6f4cb1-93d3-4f4d-beb7-1ef54e8cde77", "documentation": "Delete an option from a tracking category", "method": "delete", "endpoint": "TrackingCategories/:TrackingCategoryID/Options/:TrackingOptionID", "responses": [ { "uuid": "5d2a5541-a1a9-40a7-bc4b-082d45769d08", "body": "", "latency": 0, "statusCode": 200, "label": "A successful request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7ad2b136-121b-4d95-aec5-bce2c91e17ea", "documentation": "Retrieve a collection of Users", "method": "get", "endpoint": "Users", "responses": [ { "uuid": "01c59f98-a4d7-4ecc-a272-af3756d7abae", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"Users\": [\n {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0b5d68d0-6e13-471e-908b-8795489f48bd", "documentation": "Retrieve an individual User", "method": "get", "endpoint": "Users/:UserID", "responses": [ { "uuid": "20cd1388-9f69-414c-8845-d515dd533ea6", "body": "{\n \"DateTimeUTC\": \"{{faker 'date.recent' 365}}\",\n \"ID\": \"8904103f-f25e-4af2-887a-f5d3acace293\",\n \"ProviderName\": \"My Awesome App\",\n \"Status\": \"OK\",\n \"Users\": [\n {\n \"EmailAddress\": \"john@smith.com\",\n \"FirstName\": \"John\",\n \"IsSubscriber\": {{faker 'datatype.boolean'}},\n \"LastName\": \"Smith\",\n \"OrganisationRole\": \"{{oneOf (array 'READONLY' 'INVOICEONLY' 'STANDARD' 'FINANCIALADVISER' 'MANAGEDCLIENT' 'CASHBOOKCLIENT')}}\",\n \"UpdatedDateUTC\": \"{{faker 'date.recent' 365}}\",\n \"UserID\": \"{{faker 'string.uuid'}}\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "A successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "7f6b3839-6a16-45a2-8867-714f11d7ef1c" }, { "type": "route", "uuid": "55b256eb-114f-42d7-a493-7766c553e008" }, { "type": "route", "uuid": "293c2d33-868d-48e6-8672-b358867898cc" }, { "type": "route", "uuid": "ea48f093-fe0d-4c1a-9937-10700feae315" }, { "type": "route", "uuid": "cb5e3f2e-f114-4422-b685-bc720655ef83" }, { "type": "route", "uuid": "be4a0c18-5f5b-4bef-9277-2bc0b2e618a2" }, { "type": "route", "uuid": "7e5396be-1456-46ab-b1b5-2dfebd0ef904" }, { "type": "route", "uuid": "bf33d116-93eb-45ce-aa13-720af865a7a7" }, { "type": "route", "uuid": "82024a24-84d0-4394-aee1-a3e217ce877a" }, { "type": "route", "uuid": "8028b7fb-373b-4d2b-bcb1-db66589e90be" }, { "type": "route", "uuid": "86882633-f10a-44d4-8ef8-40761034705b" }, { "type": "route", "uuid": "da106634-045c-41cd-8211-5878cf1b0176" }, { "type": "route", "uuid": "11673f58-019d-4c25-bb75-b95d5fef77d4" }, { "type": "route", "uuid": "63c989d9-2a3e-4b4a-833d-0a19a1ecc0d6" }, { "type": "route", "uuid": "fd3231f8-ee55-48c9-bd55-e6d823ec3767" }, { "type": "route", "uuid": "8288f765-e786-44a4-8a0e-f6879a755de3" }, { "type": "route", "uuid": "8031a254-aa7a-47a0-b8a3-ead459ebc7fe" }, { "type": "route", "uuid": "63faeea7-169c-4a3e-a611-c74cad437ebd" }, { "type": "route", "uuid": "28fa3f0f-84be-4d8f-9f37-1132df5d8b0a" }, { "type": "route", "uuid": "795b72de-b1b4-4b6a-bac7-798b70148d8c" }, { "type": "route", "uuid": "d3eaa009-4ebd-430d-9c57-57137a75bc5c" }, { "type": "route", "uuid": "71efaa49-47e5-4304-96e2-4d0597d6fbaa" }, { "type": "route", "uuid": "f72dd369-c0ec-4c37-adb9-bbfd2704b013" }, { "type": "route", "uuid": "9dbb7334-d62c-42ba-bb5e-8611b716ebdd" }, { "type": "route", "uuid": "9d7c486f-7289-47c9-82b9-fc160168b066" }, { "type": "route", "uuid": "22b5d332-bd89-46d6-a7ce-4ca41b91d248" }, { "type": "route", "uuid": "ddafd9f4-a802-4237-b12c-880866db2940" }, { "type": "route", "uuid": "2d86d8d5-5e81-4bdc-a85f-0ff8ecfda704" }, { "type": "route", "uuid": "aed7f0a9-f9e8-4cb0-a209-0166bd9b3476" }, { "type": "route", "uuid": "8e59bc8f-ea91-4983-be91-6229dcd9121f" }, { "type": "route", "uuid": "5beeb1e3-ced3-402b-a243-10be8627180f" }, { "type": "route", "uuid": "558d70dd-e192-4e60-a385-c47adfd80f23" }, { "type": "route", "uuid": "bce2a541-b435-4461-b2b3-6415167044fb" }, { "type": "route", "uuid": "8d22883f-80e2-4e8e-9d0b-0ff915a0f219" }, { "type": "route", "uuid": "458be06a-61cf-48e6-8a23-1cbffd8a2674" }, { "type": "route", "uuid": "6e890f9d-162f-414c-a75a-ae9426bd0c21" }, { "type": "route", "uuid": "95f8dbde-ec76-4cd1-8741-20e9c2f9a7d9" }, { "type": "route", "uuid": "7c585da2-fa7f-45ff-b19c-93b8625eba25" }, { "type": "route", "uuid": "bbaf9e10-0071-4e3c-8ef2-b1f6da523905" }, { "type": "route", "uuid": "8e48a20a-b00f-4f12-a0ef-297b422c3a4c" }, { "type": "route", "uuid": "d2094626-b127-41f3-8885-4f2f75138740" }, { "type": "route", "uuid": "df4b8422-2ce7-4fd3-a1b9-3829e58c20df" }, { "type": "route", "uuid": "8bccd698-342d-44b1-a745-d6f8ad008d70" }, { "type": "route", "uuid": "24999a42-c3b0-43e8-8be3-6a95555bb20b" }, { "type": "route", "uuid": "248a1270-59bc-4a70-84b0-3ed609687a05" }, { "type": "route", "uuid": "62208df9-a86e-45c4-878e-55d62115bc54" }, { "type": "route", "uuid": "51c5f650-d9ae-4ec4-83a4-f2df1a846996" }, { "type": "route", "uuid": "3b0de193-0f8f-49df-a036-84412a25558c" }, { "type": "route", "uuid": "bee997a0-4186-4558-8542-8ec0c6904ed9" }, { "type": "route", "uuid": "ea936836-1cd5-4fa7-8820-4a8eb9e4a140" }, { "type": "route", "uuid": "e52e4990-b8e2-4626-b3e5-60adaa72134f" }, { "type": "route", "uuid": "20f5ce6b-7c62-48fb-a4cc-644ae7ecbb6e" }, { "type": "route", "uuid": "d9f74c7e-b830-4f59-88c7-b4a362cd29b7" }, { "type": "route", "uuid": "21af347b-3ab3-446e-abd7-8b23a418f82d" }, { "type": "route", "uuid": "2478de93-222e-4fbb-b029-535390d96d9d" }, { "type": "route", "uuid": "e8a542b1-23fc-4db5-98a8-9bb8fbe99c92" }, { "type": "route", "uuid": "193e8c9e-c6df-4bf3-b63a-e85876b0164c" }, { "type": "route", "uuid": "f3dfcc9d-24ea-43f9-8d1f-06b9237710a2" }, { "type": "route", "uuid": "4a84f733-5f8f-451c-94f4-7ad8a23c6a72" }, { "type": "route", "uuid": "9b9f478e-1aa1-4d6f-9c88-7489e1877040" }, { "type": "route", "uuid": "6476d291-76c6-46ba-9d2c-30f2129de412" }, { "type": "route", "uuid": "5ea13412-c9da-4916-82c5-060713b68476" }, { "type": "route", "uuid": "83d671a2-0f29-4d11-af6b-7de3762e98a0" }, { "type": "route", "uuid": "a15c4438-74e6-42ba-9731-9839c8049d79" }, { "type": "route", "uuid": "d2463a26-7815-4acd-a431-d214194d8a07" }, { "type": "route", "uuid": "f353707d-f2c7-472a-968c-adad2ff00fdb" }, { "type": "route", "uuid": "9941b9a5-bdfc-4bd0-9723-061a9b95001f" }, { "type": "route", "uuid": "61856e4a-96a7-4e32-b1bf-b58e0f935403" }, { "type": "route", "uuid": "5a97948c-3413-464a-a41f-363e2dfda7c0" }, { "type": "route", "uuid": "bc48abe1-640b-431e-a6e2-29a29f10a089" }, { "type": "route", "uuid": "169a290c-5022-43aa-97f8-39b4cb13ff61" }, { "type": "route", "uuid": "492a5964-3a6f-4e25-b300-b131b32a2c9c" }, { "type": "route", "uuid": "892d664d-53b2-420a-bb99-6ec2d13f8e41" }, { "type": "route", "uuid": "5987d556-5d87-4d8a-b80e-a7c5209f163c" }, { "type": "route", "uuid": "c064e0e4-ab89-4cac-b7d3-52944909e123" }, { "type": "route", "uuid": "57b53d90-f3ff-4ae2-b17e-6ec2f28f39fc" }, { "type": "route", "uuid": "fe688a05-b992-43f0-8e1c-c4d4b4703532" }, { "type": "route", "uuid": "e7c46d6a-d218-48ab-863d-60b760bbc249" }, { "type": "route", "uuid": "7d3180a1-c92f-4181-bf35-6fdfb2ef5222" }, { "type": "route", "uuid": "551b3e90-6c90-4a8a-ac5e-d34b39e663f7" }, { "type": "route", "uuid": "98861d70-371c-47d4-a95f-7b5c412d2b4c" }, { "type": "route", "uuid": "8c3cb7d7-7761-44e3-8eee-bd87eee59ab1" }, { "type": "route", "uuid": "b6395bf6-4906-4df0-9df5-2f889316f1ab" }, { "type": "route", "uuid": "c7b662b9-e681-4b5c-a403-5b7a6375dbfb" }, { "type": "route", "uuid": "db351555-63b7-4798-9467-0f944d10e801" }, { "type": "route", "uuid": "2308aa3d-895a-4f26-aaf8-e20434da5008" }, { "type": "route", "uuid": "4ea9185d-14e0-4c61-ac2b-b18bb4f6b94c" }, { "type": "route", "uuid": "7e3cc4de-4b44-4576-a66b-7072cca4b14e" }, { "type": "route", "uuid": "b616caf2-efbc-4d8f-92d3-8b9e87b8e9ca" }, { "type": "route", "uuid": "0b20090a-61b1-47bc-a8a9-a364aa610382" }, { "type": "route", "uuid": "f3f89d5a-66ff-4244-9063-93920e7946a7" }, { "type": "route", "uuid": "1ede0d9b-6166-4654-ac16-cb57b3da9fd9" }, { "type": "route", "uuid": "b694715b-fdab-43d2-a516-2d4a45d6727b" }, { "type": "route", "uuid": "d6f9500f-94f5-486b-9899-fcb30e320831" }, { "type": "route", "uuid": "74e06a3d-04ec-4aa8-abbe-8b75ffe91674" }, { "type": "route", "uuid": "b5a06bc0-0427-4f1f-87f3-00883e039bcd" }, { "type": "route", "uuid": "cf939c83-b2d7-49b9-9678-f52a4b13c4d1" }, { "type": "route", "uuid": "0094ab2b-0be9-4b64-9469-208ccf613a39" }, { "type": "route", "uuid": "cb5619e7-5b31-4d1f-af2e-4fd16c80c4e8" }, { "type": "route", "uuid": "5091513f-800a-4e1f-80ec-cc03066e14df" }, { "type": "route", "uuid": "4be9455a-72dc-4886-9088-b1019eb3bd37" }, { "type": "route", "uuid": "941dc653-4493-4528-89dd-b49304fcbce8" }, { "type": "route", "uuid": "aa8f375e-91e3-463b-80ec-ed0419f11fc7" }, { "type": "route", "uuid": "f72676de-c133-4d72-8ac8-e4623e72de5e" }, { "type": "route", "uuid": "97215490-206f-4c06-ab0e-07667fe422c7" }, { "type": "route", "uuid": "0a0f5fdb-b56a-441a-ad53-94febfadf920" }, { "type": "route", "uuid": "98e328ef-cf4f-4953-9c30-ea1c940c3000" }, { "type": "route", "uuid": "a2912eff-a6fa-43ae-9497-b4336247af6d" }, { "type": "route", "uuid": "21d3d0d4-2450-4d76-83c8-533b7b5c48fe" }, { "type": "route", "uuid": "0c1ba376-9f15-4950-a5f7-53098ddbd792" }, { "type": "route", "uuid": "67e9e3a9-1776-41d2-8aaa-12b62b6ad5d5" }, { "type": "route", "uuid": "9847cdd1-84be-431c-a573-b4c64796523e" }, { "type": "route", "uuid": "d778e9e6-c216-49fb-9acd-c83ffea6ce18" }, { "type": "route", "uuid": "8693f208-7d49-4bab-99a8-5541f3e1aae9" }, { "type": "route", "uuid": "8d73a63b-48c4-4040-bc57-948d32125cc6" }, { "type": "route", "uuid": "7e170cf3-6bf1-4bd0-818b-da46c2a8f9cc" }, { "type": "route", "uuid": "9066cbb0-3e43-41c9-a4e9-1fdea4c0771d" }, { "type": "route", "uuid": "28097365-f7b4-47d2-a434-f67749600eae" }, { "type": "route", "uuid": "1b2e85d5-b417-48ab-9ce9-957ccc4f18a8" }, { "type": "route", "uuid": "c1c5d501-90ae-4f22-b2a4-f5a3f6d59388" }, { "type": "route", "uuid": "140caf95-86b1-4735-b519-90cdc891c7b4" }, { "type": "route", "uuid": "5b764bf4-f3d8-4770-a0a2-8f58697993c2" }, { "type": "route", "uuid": "ffb28aac-cc44-4f7a-80db-b71f3059aa67" }, { "type": "route", "uuid": "5ca58a33-6e53-4daa-854e-bfcc121f7cbf" }, { "type": "route", "uuid": "77575b0b-391c-448d-9450-ba3d48f6c57c" }, { "type": "route", "uuid": "ee7695d6-d2b6-4c1f-b210-f8382b68ac14" }, { "type": "route", "uuid": "ca63e44a-5b27-4cd9-83ee-743389cdcbea" }, { "type": "route", "uuid": "e2ef15f4-cf20-456c-9c8e-be4bcc971bd8" }, { "type": "route", "uuid": "e9b5c0ea-9a47-4e9c-8a79-9913158aca71" }, { "type": "route", "uuid": "0818821b-0eae-44dd-95ba-5492b22ee5fc" }, { "type": "route", "uuid": "a451a31c-ffcc-48be-a1e6-0bab0db5d7db" }, { "type": "route", "uuid": "e266dfc8-2d3c-4ad6-ac7b-1c84d6072129" }, { "type": "route", "uuid": "04b1e097-018f-4853-9d7c-ed62844e7782" }, { "type": "route", "uuid": "4020336a-a618-4225-8fc7-64601a4d17f3" }, { "type": "route", "uuid": "fca8453c-bba2-4263-ad40-f8c4c9d1c701" }, { "type": "route", "uuid": "2faf17da-4fce-4c45-b27a-7bfb07221641" }, { "type": "route", "uuid": "370e9548-10e7-436d-969b-d91d62844d92" }, { "type": "route", "uuid": "0eca23c5-cea1-4fe6-bfc0-010f91a1c005" }, { "type": "route", "uuid": "b33c2c1b-e6c3-4358-81a5-65b4a43b0f71" }, { "type": "route", "uuid": "09bc23d0-c1e6-4393-adff-da5a8d816eac" }, { "type": "route", "uuid": "0e851d30-cf24-44be-82d1-5a3dec98c0fd" }, { "type": "route", "uuid": "b8df8cea-6d33-4ade-a871-2fd3a5899634" }, { "type": "route", "uuid": "d3c87927-500d-4771-b0c4-890b7b5f9ee6" }, { "type": "route", "uuid": "338814fa-5123-491d-8b15-14c9466851d5" }, { "type": "route", "uuid": "9a429b78-4988-48d6-addb-575315148fd6" }, { "type": "route", "uuid": "d458e0f7-b170-4ed5-b249-ad5991e70c39" }, { "type": "route", "uuid": "7870a6ff-046e-4597-98af-c9b35ff39039" }, { "type": "route", "uuid": "7413ef90-e601-48a0-b31e-3e610a429c75" }, { "type": "route", "uuid": "9c6f4cb1-93d3-4f4d-beb7-1ef54e8cde77" }, { "type": "route", "uuid": "7ad2b136-121b-4d95-aec5-bce2c91e17ea" }, { "type": "route", "uuid": "0b5d68d0-6e13-471e-908b-8795489f48bd" } ] }