├── BC API Template Environment.postman_environment.json ├── BC API v1.0 Demo.postman_collection.json └── BC API v2.0 Demo.postman_collection.json /BC API Template Environment.postman_environment.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "c57bfc21-8abd-44b5-9fda-21ca18b92c84", 3 | "name": "BC API Template Environment", 4 | "values": [ 5 | { 6 | "key": "url", 7 | "value": "", 8 | "enabled": true 9 | }, 10 | { 11 | "key": "user", 12 | "value": "", 13 | "enabled": true 14 | }, 15 | { 16 | "key": "password", 17 | "value": "", 18 | "enabled": true 19 | }, 20 | { 21 | "key": "tenant", 22 | "value": "", 23 | "enabled": true 24 | }, 25 | { 26 | "key": "environment", 27 | "value": "", 28 | "enabled": true 29 | }, 30 | { 31 | "key": "companyId", 32 | "value": "", 33 | "enabled": true 34 | }, 35 | { 36 | "key": "itemId", 37 | "value": "", 38 | "enabled": true 39 | }, 40 | { 41 | "key": "salesQuoteId", 42 | "value": "", 43 | "enabled": true 44 | }, 45 | { 46 | "key": "salesInvoiceId", 47 | "value": "", 48 | "enabled": true 49 | }, 50 | { 51 | "key": "customerId", 52 | "value": "", 53 | "enabled": true 54 | }, 55 | { 56 | "key": "journalId", 57 | "value": "", 58 | "enabled": true 59 | }, 60 | { 61 | "key": "accountId", 62 | "value": "", 63 | "enabled": true 64 | }, 65 | { 66 | "key": "journalLineId", 67 | "value": "", 68 | "enabled": true 69 | }, 70 | { 71 | "key": "attachmentId", 72 | "value": "", 73 | "enabled": true 74 | }, 75 | { 76 | "key": "parentId", 77 | "value": "", 78 | "enabled": true 79 | }, 80 | { 81 | "key": "dimensionId", 82 | "value": "", 83 | "enabled": true 84 | }, 85 | { 86 | "key": "employeeId", 87 | "value": "", 88 | "enabled": true 89 | }, 90 | { 91 | "key": "dimensionValueId", 92 | "value": "", 93 | "enabled": true 94 | }, 95 | { 96 | "key": "paymentTermsId", 97 | "value": "", 98 | "enabled": true 99 | }, 100 | { 101 | "key": "deltatoken", 102 | "value": "", 103 | "enabled": true 104 | }, 105 | { 106 | "key": "salesOrderId", 107 | "value": "", 108 | "enabled": true 109 | }, 110 | { 111 | "key": "timeRegistrationId", 112 | "value": "", 113 | "enabled": true 114 | } 115 | ], 116 | "_postman_variable_scope": "environment", 117 | "_postman_exported_at": "2021-10-07T20:11:37.700Z", 118 | "_postman_exported_using": "Postman/9.0.3" 119 | } -------------------------------------------------------------------------------- /BC API v1.0 Demo.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "b65c8e4b-c341-4bed-a2cc-37a5655fc79c", 4 | "name": "BC API v1.0 Demo", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "APIs", 10 | "item": [ 11 | { 12 | "name": "APIs", 13 | "event": [ 14 | { 15 | "listen": "test", 16 | "script": { 17 | "exec": [ 18 | "pm.test(\"Body matches string\", function () {", 19 | " pm.expect(pm.response.text()).to.include(\"customers\");", 20 | "});", 21 | "", 22 | "", 23 | "pm.test(\"Body matches string\", function () {", 24 | " pm.expect(pm.response.text()).to.include(\"customerPaymentJournals\");", 25 | "});", 26 | "", 27 | "pm.test(\"44 apis\", function () {", 28 | " var jsonData = pm.response.json();", 29 | " ", 30 | " console.log(\"count\" + jsonData.value.length);", 31 | " pm.expect(jsonData.value.length).to.eql(48);", 32 | "});", 33 | "", 34 | "", 35 | "", 36 | "", 37 | "//var url = pm.variables.get(\"url\");", 38 | "", 39 | "//pm.sendRequest(url, function (err, response) {", 40 | "// console.log(response.json());", 41 | "//});", 42 | "" 43 | ], 44 | "type": "text/javascript" 45 | } 46 | } 47 | ], 48 | "request": { 49 | "auth": { 50 | "type": "basic", 51 | "basic": [ 52 | { 53 | "key": "username", 54 | "value": "{{user}}", 55 | "type": "string" 56 | }, 57 | { 58 | "key": "password", 59 | "value": "{{password}}", 60 | "type": "string" 61 | }, 62 | { 63 | "key": "saveHelperData", 64 | "type": "any" 65 | }, 66 | { 67 | "key": "showPassword", 68 | "value": false, 69 | "type": "boolean" 70 | } 71 | ] 72 | }, 73 | "method": "GET", 74 | "header": [], 75 | "url": { 76 | "raw": "{{url}}/api/v1.0", 77 | "host": [ 78 | "{{url}}" 79 | ], 80 | "path": [ 81 | "api", 82 | "v1.0" 83 | ] 84 | } 85 | }, 86 | "response": [] 87 | }, 88 | { 89 | "name": "API metadata (nav links)", 90 | "request": { 91 | "auth": { 92 | "type": "basic", 93 | "basic": [ 94 | { 95 | "key": "username", 96 | "value": "{{user}}", 97 | "type": "string" 98 | }, 99 | { 100 | "key": "password", 101 | "value": "{{password}}", 102 | "type": "string" 103 | }, 104 | { 105 | "key": "saveHelperData", 106 | "type": "any" 107 | }, 108 | { 109 | "key": "showPassword", 110 | "value": false, 111 | "type": "boolean" 112 | } 113 | ] 114 | }, 115 | "method": "GET", 116 | "header": [], 117 | "url": { 118 | "raw": "{{url}}/api/v1.0/$metadata", 119 | "host": [ 120 | "{{url}}" 121 | ], 122 | "path": [ 123 | "api", 124 | "v1.0", 125 | "$metadata" 126 | ] 127 | } 128 | }, 129 | "response": [] 130 | } 131 | ] 132 | }, 133 | { 134 | "name": "Companies", 135 | "item": [ 136 | { 137 | "name": "companies", 138 | "event": [ 139 | { 140 | "listen": "test", 141 | "script": { 142 | "exec": [ 143 | "" 144 | ], 145 | "type": "text/javascript" 146 | } 147 | } 148 | ], 149 | "request": { 150 | "auth": { 151 | "type": "basic", 152 | "basic": [ 153 | { 154 | "key": "username", 155 | "value": "{{user}}", 156 | "type": "string" 157 | }, 158 | { 159 | "key": "password", 160 | "value": "{{password}}", 161 | "type": "string" 162 | }, 163 | { 164 | "key": "saveHelperData", 165 | "value": true, 166 | "type": "boolean" 167 | }, 168 | { 169 | "key": "showPassword", 170 | "value": false, 171 | "type": "boolean" 172 | } 173 | ] 174 | }, 175 | "method": "GET", 176 | "header": [], 177 | "url": { 178 | "raw": "{{url}}/api/v1.0/companies", 179 | "host": [ 180 | "{{url}}" 181 | ], 182 | "path": [ 183 | "api", 184 | "v1.0", 185 | "companies" 186 | ] 187 | } 188 | }, 189 | "response": [] 190 | }, 191 | { 192 | "name": "companies(id)", 193 | "event": [ 194 | { 195 | "listen": "test", 196 | "script": { 197 | "exec": [ 198 | "pm.test(\"Body matches string - a CRONUS company was found\", function () {", 199 | " pm.expect(pm.response.text()).to.include(\"CRONUS\");", 200 | "});", 201 | "", 202 | "tests[\"Status code is 200\"] = responseCode.code === 200;", 203 | "", 204 | "", 205 | "", 206 | "", 207 | "", 208 | "", 209 | "var schema = {", 210 | " \"$id\": \"http://example.com/example.json\",", 211 | " \"type\": \"object\",", 212 | " \"definitions\": {},", 213 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 214 | " \"properties\": {", 215 | " \"@odata.context\": {", 216 | " \"$id\": \"/properties/@odata.context\",", 217 | " \"type\": \"string\",", 218 | " \"title\": \"The @odata.context Schema \",", 219 | " \"default\": \"\",", 220 | " \"examples\": [", 221 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 222 | " ]", 223 | " },", 224 | " \"id\": {", 225 | " \"$id\": \"/properties/id\",", 226 | " \"type\": \"string\",", 227 | " \"title\": \"The Id Schema \",", 228 | " \"default\": \"\",", 229 | " \"examples\": [", 230 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 231 | " ]", 232 | " },", 233 | " \"systemVersion\": {", 234 | " \"$id\": \"/properties/systemVersion\",", 235 | " \"type\": \"string\",", 236 | " \"title\": \"The Systemversion Schema \",", 237 | " \"default\": \"\",", 238 | " \"examples\": [", 239 | " \"23720\"", 240 | " ]", 241 | " },", 242 | " \"name\": {", 243 | " \"$id\": \"/properties/name\",", 244 | " \"type\": \"string\",", 245 | " \"title\": \"The Name Schema \",", 246 | " \"default\": \"\",", 247 | " \"examples\": [", 248 | " \"CRONUS Danmark A/S\"", 249 | " ]", 250 | " },", 251 | " \"displayName\": {", 252 | " \"$id\": \"/properties/displayName\",", 253 | " \"type\": \"string\",", 254 | " \"title\": \"The Displayname Schema \",", 255 | " \"default\": \"\",", 256 | " \"examples\": [", 257 | " \"CRONUS Danmark A/S\"", 258 | " ]", 259 | " },", 260 | " \"businessProfileId\": {", 261 | " \"$id\": \"/properties/businessProfileId\",", 262 | " \"type\": \"string\",", 263 | " \"title\": \"The Businessprofileid Schema \",", 264 | " \"default\": \"\",", 265 | " \"examples\": [", 266 | " \"\"", 267 | " ]", 268 | " }", 269 | " }", 270 | "};", 271 | "", 272 | "", 273 | "", 274 | "", 275 | "", 276 | "", 277 | "pm.test(\"Body matches string\", function () {", 278 | " ", 279 | " var jsonData = pm.response.json();", 280 | " ", 281 | " console.log(\"id\" + JSON.stringify(jsonData));", 282 | " //pm.expect(jsonData.value.length).to.eql(43);", 283 | "", 284 | "", 285 | "pm.expect(tv4.validate(jsonData, schema)).to.be.true;", 286 | "});", 287 | "", 288 | "", 289 | "", 290 | "var badSchema = {", 291 | " \"$id\": \"http://example.com/example.json\",", 292 | " \"type\": \"object\",", 293 | " \"definitions\": {},", 294 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 295 | " \"properties\": {", 296 | " \"@odatacontext\": {", 297 | " \"$id\": \"/properties/@odata.context\",", 298 | " \"type\": \"string\",", 299 | " \"title\": \"The @odata.context Schema \",", 300 | " \"default\": \"\",", 301 | " \"examples\": [", 302 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 303 | " ]", 304 | " },", 305 | " \"idMISSING\": {", 306 | " \"$id\": \"/properties/id\",", 307 | " \"type\": \"string\",", 308 | " \"title\": \"The Id Schema \",", 309 | " \"default\": \"\",", 310 | " \"examples\": [", 311 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 312 | " ]", 313 | " },", 314 | " \"systemVersion\": {", 315 | " \"$id\": \"/properties/systemVersion\",", 316 | " \"type\": \"string\",", 317 | " \"title\": \"The Systemversion Schema \",", 318 | " \"default\": \"\",", 319 | " \"examples\": [", 320 | " \"23720\"", 321 | " ]", 322 | " },", 323 | " \"name\": {", 324 | " \"$id\": \"/properties/name\",", 325 | " \"type\": \"string\",", 326 | " \"title\": \"The Name Schema \",", 327 | " \"default\": \"\",", 328 | " \"examples\": [", 329 | " \"CRONUS Danmark A/S\"", 330 | " ]", 331 | " },", 332 | " \"displayName\": {", 333 | " \"$id\": \"/properties/displayName\",", 334 | " \"type\": \"string\",", 335 | " \"title\": \"The Displayname Schema \",", 336 | " \"default\": \"\",", 337 | " \"examples\": [", 338 | " \"CRONUS Danmark A/S\"", 339 | " ]", 340 | " },", 341 | " \"businessProfileId\": {", 342 | " \"$id\": \"/properties/businessProfileId\",", 343 | " \"type\": \"string\",", 344 | " \"title\": \"The Businessprofileid Schema \",", 345 | " \"default\": \"\",", 346 | " \"examples\": [", 347 | " \"\"", 348 | " ]", 349 | " }", 350 | " }", 351 | "};", 352 | "", 353 | "", 354 | "", 355 | "", 356 | "", 357 | "pm.test(\"Bad Schema should not validate\", function () {", 358 | " ", 359 | " var jsonData = pm.response.json();", 360 | " ", 361 | " console.log(\"id\" + JSON.stringify(jsonData));", 362 | " //pm.expect(jsonData.value.length).to.eql(43);", 363 | "", 364 | "//HWH: Fix - this is always true. Change schema and make it fail", 365 | "pm.expect(tv4.validate(jsonData, schema)).to.be.false;", 366 | "});" 367 | ], 368 | "type": "text/javascript" 369 | } 370 | } 371 | ], 372 | "request": { 373 | "auth": { 374 | "type": "basic", 375 | "basic": [ 376 | { 377 | "key": "username", 378 | "value": "{{user}}", 379 | "type": "string" 380 | }, 381 | { 382 | "key": "password", 383 | "value": "{{password}}", 384 | "type": "string" 385 | }, 386 | { 387 | "key": "saveHelperData", 388 | "value": true, 389 | "type": "boolean" 390 | }, 391 | { 392 | "key": "showPassword", 393 | "value": false, 394 | "type": "boolean" 395 | } 396 | ] 397 | }, 398 | "method": "GET", 399 | "header": [], 400 | "url": { 401 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/", 402 | "host": [ 403 | "{{url}}" 404 | ], 405 | "path": [ 406 | "api", 407 | "v1.0", 408 | "companies({{companyId}})", 409 | "" 410 | ] 411 | } 412 | }, 413 | "response": [] 414 | }, 415 | { 416 | "name": "companies property", 417 | "event": [ 418 | { 419 | "listen": "test", 420 | "script": { 421 | "exec": [ 422 | "pm.test(\"Exclude\", function () {", 423 | " pm.expect(pm.response.text()).to.not.include(\"systemVersion\");", 424 | " ", 425 | "});", 426 | "pm.test(\"Include only one\", function () {", 427 | " pm.expect(pm.response.text()).to.include(\"value\");", 428 | " ", 429 | "});" 430 | ], 431 | "type": "text/javascript" 432 | } 433 | } 434 | ], 435 | "request": { 436 | "auth": { 437 | "type": "basic", 438 | "basic": [ 439 | { 440 | "key": "username", 441 | "value": "{{user}}", 442 | "type": "string" 443 | }, 444 | { 445 | "key": "password", 446 | "value": "{{password}}", 447 | "type": "string" 448 | }, 449 | { 450 | "key": "saveHelperData", 451 | "value": true, 452 | "type": "boolean" 453 | }, 454 | { 455 | "key": "showPassword", 456 | "value": false, 457 | "type": "boolean" 458 | } 459 | ] 460 | }, 461 | "method": "GET", 462 | "header": [], 463 | "url": { 464 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/name", 465 | "host": [ 466 | "{{url}}" 467 | ], 468 | "path": [ 469 | "api", 470 | "v1.0", 471 | "companies({{companyId}})", 472 | "name" 473 | ] 474 | } 475 | }, 476 | "response": [] 477 | }, 478 | { 479 | "name": "companies property raw value", 480 | "request": { 481 | "auth": { 482 | "type": "basic", 483 | "basic": [ 484 | { 485 | "key": "username", 486 | "value": "{{user}}", 487 | "type": "string" 488 | }, 489 | { 490 | "key": "password", 491 | "value": "{{password}}", 492 | "type": "string" 493 | }, 494 | { 495 | "key": "saveHelperData", 496 | "value": true, 497 | "type": "boolean" 498 | }, 499 | { 500 | "key": "showPassword", 501 | "value": false, 502 | "type": "boolean" 503 | } 504 | ] 505 | }, 506 | "method": "GET", 507 | "header": [], 508 | "url": { 509 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/name/$value", 510 | "host": [ 511 | "{{url}}" 512 | ], 513 | "path": [ 514 | "api", 515 | "v1.0", 516 | "companies({{companyId}})", 517 | "name", 518 | "$value" 519 | ] 520 | } 521 | }, 522 | "response": [] 523 | } 524 | ] 525 | }, 526 | { 527 | "name": "Finance", 528 | "item": [ 529 | { 530 | "name": "GL Entries", 531 | "event": [ 532 | { 533 | "listen": "test", 534 | "script": { 535 | "exec": [ 536 | "pm.test(\"Body matches string - a CRONUS company was found\", function () {", 537 | " pm.expect(pm.response.text()).to.include(\"CRONUS\");", 538 | "});", 539 | "", 540 | "tests[\"Status code is 200\"] = responseCode.code === 200;", 541 | "", 542 | "", 543 | "", 544 | "", 545 | "", 546 | "", 547 | "var schema = {", 548 | " \"$id\": \"http://example.com/example.json\",", 549 | " \"type\": \"object\",", 550 | " \"definitions\": {},", 551 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 552 | " \"properties\": {", 553 | " \"@odata.context\": {", 554 | " \"$id\": \"/properties/@odata.context\",", 555 | " \"type\": \"string\",", 556 | " \"title\": \"The @odata.context Schema \",", 557 | " \"default\": \"\",", 558 | " \"examples\": [", 559 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 560 | " ]", 561 | " },", 562 | " \"id\": {", 563 | " \"$id\": \"/properties/id\",", 564 | " \"type\": \"string\",", 565 | " \"title\": \"The Id Schema \",", 566 | " \"default\": \"\",", 567 | " \"examples\": [", 568 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 569 | " ]", 570 | " },", 571 | " \"systemVersion\": {", 572 | " \"$id\": \"/properties/systemVersion\",", 573 | " \"type\": \"string\",", 574 | " \"title\": \"The Systemversion Schema \",", 575 | " \"default\": \"\",", 576 | " \"examples\": [", 577 | " \"23720\"", 578 | " ]", 579 | " },", 580 | " \"name\": {", 581 | " \"$id\": \"/properties/name\",", 582 | " \"type\": \"string\",", 583 | " \"title\": \"The Name Schema \",", 584 | " \"default\": \"\",", 585 | " \"examples\": [", 586 | " \"CRONUS Danmark A/S\"", 587 | " ]", 588 | " },", 589 | " \"displayName\": {", 590 | " \"$id\": \"/properties/displayName\",", 591 | " \"type\": \"string\",", 592 | " \"title\": \"The Displayname Schema \",", 593 | " \"default\": \"\",", 594 | " \"examples\": [", 595 | " \"CRONUS Danmark A/S\"", 596 | " ]", 597 | " },", 598 | " \"businessProfileId\": {", 599 | " \"$id\": \"/properties/businessProfileId\",", 600 | " \"type\": \"string\",", 601 | " \"title\": \"The Businessprofileid Schema \",", 602 | " \"default\": \"\",", 603 | " \"examples\": [", 604 | " \"\"", 605 | " ]", 606 | " }", 607 | " }", 608 | "};", 609 | "", 610 | "", 611 | "", 612 | "", 613 | "", 614 | "", 615 | "pm.test(\"Body matches string\", function () {", 616 | " ", 617 | " var jsonData = pm.response.json();", 618 | " ", 619 | " console.log(\"id\" + JSON.stringify(jsonData));", 620 | " //pm.expect(jsonData.value.length).to.eql(43);", 621 | "", 622 | "", 623 | "pm.expect(tv4.validate(jsonData, schema)).to.be.true;", 624 | "});", 625 | "", 626 | "", 627 | "", 628 | "var badSchema = {", 629 | " \"$id\": \"http://example.com/example.json\",", 630 | " \"type\": \"object\",", 631 | " \"definitions\": {},", 632 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 633 | " \"properties\": {", 634 | " \"@odatacontext\": {", 635 | " \"$id\": \"/properties/@odata.context\",", 636 | " \"type\": \"string\",", 637 | " \"title\": \"The @odata.context Schema \",", 638 | " \"default\": \"\",", 639 | " \"examples\": [", 640 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 641 | " ]", 642 | " },", 643 | " \"idMISSING\": {", 644 | " \"$id\": \"/properties/id\",", 645 | " \"type\": \"string\",", 646 | " \"title\": \"The Id Schema \",", 647 | " \"default\": \"\",", 648 | " \"examples\": [", 649 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 650 | " ]", 651 | " },", 652 | " \"systemVersion\": {", 653 | " \"$id\": \"/properties/systemVersion\",", 654 | " \"type\": \"string\",", 655 | " \"title\": \"The Systemversion Schema \",", 656 | " \"default\": \"\",", 657 | " \"examples\": [", 658 | " \"23720\"", 659 | " ]", 660 | " },", 661 | " \"name\": {", 662 | " \"$id\": \"/properties/name\",", 663 | " \"type\": \"string\",", 664 | " \"title\": \"The Name Schema \",", 665 | " \"default\": \"\",", 666 | " \"examples\": [", 667 | " \"CRONUS Danmark A/S\"", 668 | " ]", 669 | " },", 670 | " \"displayName\": {", 671 | " \"$id\": \"/properties/displayName\",", 672 | " \"type\": \"string\",", 673 | " \"title\": \"The Displayname Schema \",", 674 | " \"default\": \"\",", 675 | " \"examples\": [", 676 | " \"CRONUS Danmark A/S\"", 677 | " ]", 678 | " },", 679 | " \"businessProfileId\": {", 680 | " \"$id\": \"/properties/businessProfileId\",", 681 | " \"type\": \"string\",", 682 | " \"title\": \"The Businessprofileid Schema \",", 683 | " \"default\": \"\",", 684 | " \"examples\": [", 685 | " \"\"", 686 | " ]", 687 | " }", 688 | " }", 689 | "};", 690 | "", 691 | "", 692 | "", 693 | "", 694 | "", 695 | "pm.test(\"Bad Schema should not validate\", function () {", 696 | " ", 697 | " var jsonData = pm.response.json();", 698 | " ", 699 | " console.log(\"id\" + JSON.stringify(jsonData));", 700 | " //pm.expect(jsonData.value.length).to.eql(43);", 701 | "", 702 | "//HWH: Fix - this is always true. Change schema and make it fail", 703 | "pm.expect(tv4.validate(jsonData, schema)).to.be.false;", 704 | "});" 705 | ], 706 | "type": "text/javascript" 707 | } 708 | } 709 | ], 710 | "request": { 711 | "auth": { 712 | "type": "basic", 713 | "basic": [ 714 | { 715 | "key": "username", 716 | "value": "{{user}}", 717 | "type": "string" 718 | }, 719 | { 720 | "key": "password", 721 | "value": "{{password}}", 722 | "type": "string" 723 | }, 724 | { 725 | "key": "saveHelperData", 726 | "value": true, 727 | "type": "boolean" 728 | }, 729 | { 730 | "key": "showPassword", 731 | "value": false, 732 | "type": "boolean" 733 | } 734 | ] 735 | }, 736 | "method": "GET", 737 | "header": [], 738 | "url": { 739 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/generalLedgerEntries", 740 | "host": [ 741 | "{{url}}" 742 | ], 743 | "path": [ 744 | "api", 745 | "v1.0", 746 | "companies({{companyId}})", 747 | "generalLedgerEntries" 748 | ] 749 | } 750 | }, 751 | "response": [] 752 | }, 753 | { 754 | "name": "accounts", 755 | "request": { 756 | "auth": { 757 | "type": "basic", 758 | "basic": [ 759 | { 760 | "key": "username", 761 | "value": "{{user}}", 762 | "type": "string" 763 | }, 764 | { 765 | "key": "password", 766 | "value": "{{password}}", 767 | "type": "string" 768 | }, 769 | { 770 | "key": "saveHelperData", 771 | "value": true, 772 | "type": "boolean" 773 | }, 774 | { 775 | "key": "showPassword", 776 | "value": false, 777 | "type": "boolean" 778 | } 779 | ] 780 | }, 781 | "method": "GET", 782 | "header": [], 783 | "url": { 784 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/accounts", 785 | "host": [ 786 | "{{url}}" 787 | ], 788 | "path": [ 789 | "api", 790 | "v1.0", 791 | "companies({{companyId}})", 792 | "accounts" 793 | ] 794 | } 795 | }, 796 | "response": [] 797 | }, 798 | { 799 | "name": "journals", 800 | "request": { 801 | "auth": { 802 | "type": "basic", 803 | "basic": [ 804 | { 805 | "key": "username", 806 | "value": "{{user}}", 807 | "type": "string" 808 | }, 809 | { 810 | "key": "password", 811 | "value": "{{password}}", 812 | "type": "string" 813 | }, 814 | { 815 | "key": "saveHelperData", 816 | "value": true, 817 | "type": "boolean" 818 | }, 819 | { 820 | "key": "showPassword", 821 | "value": false, 822 | "type": "boolean" 823 | } 824 | ] 825 | }, 826 | "method": "GET", 827 | "header": [ 828 | { 829 | "key": "Authorization", 830 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 831 | } 832 | ], 833 | "url": { 834 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals", 835 | "host": [ 836 | "{{url}}" 837 | ], 838 | "path": [ 839 | "api", 840 | "v1.0", 841 | "companies({{companyId}})", 842 | "journals" 843 | ] 844 | } 845 | }, 846 | "response": [] 847 | }, 848 | { 849 | "name": "journals", 850 | "request": { 851 | "auth": { 852 | "type": "basic", 853 | "basic": [ 854 | { 855 | "key": "username", 856 | "value": "{{user}}", 857 | "type": "string" 858 | }, 859 | { 860 | "key": "password", 861 | "value": "{{password}}", 862 | "type": "string" 863 | }, 864 | { 865 | "key": "saveHelperData", 866 | "value": true, 867 | "type": "boolean" 868 | }, 869 | { 870 | "key": "showPassword", 871 | "value": false, 872 | "type": "boolean" 873 | } 874 | ] 875 | }, 876 | "method": "POST", 877 | "header": [ 878 | { 879 | "key": "Content-Type", 880 | "value": "application/json" 881 | } 882 | ], 883 | "body": { 884 | "mode": "raw", 885 | "raw": "{ \"code\": \"MyJournal\",\n \"displayName\": \"Custom Journal Batch\"\n}" 886 | }, 887 | "url": { 888 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals", 889 | "host": [ 890 | "{{url}}" 891 | ], 892 | "path": [ 893 | "api", 894 | "v1.0", 895 | "companies({{companyId}})", 896 | "journals" 897 | ] 898 | } 899 | }, 900 | "response": [] 901 | }, 902 | { 903 | "name": "journalLines", 904 | "request": { 905 | "auth": { 906 | "type": "basic", 907 | "basic": [ 908 | { 909 | "key": "username", 910 | "value": "{{user}}", 911 | "type": "string" 912 | }, 913 | { 914 | "key": "password", 915 | "value": "{{password}}", 916 | "type": "string" 917 | }, 918 | { 919 | "key": "saveHelperData", 920 | "value": true, 921 | "type": "boolean" 922 | }, 923 | { 924 | "key": "showPassword", 925 | "value": false, 926 | "type": "boolean" 927 | } 928 | ] 929 | }, 930 | "method": "GET", 931 | "header": [ 932 | { 933 | "key": "Authorization", 934 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 935 | } 936 | ], 937 | "url": { 938 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})/journalLines", 939 | "host": [ 940 | "{{url}}" 941 | ], 942 | "path": [ 943 | "api", 944 | "v1.0", 945 | "companies({{companyId}})", 946 | "journals({{journalId}})", 947 | "journalLines" 948 | ] 949 | } 950 | }, 951 | "response": [] 952 | }, 953 | { 954 | "name": "journalLines", 955 | "request": { 956 | "auth": { 957 | "type": "basic", 958 | "basic": [ 959 | { 960 | "key": "username", 961 | "value": "{{user}}", 962 | "type": "string" 963 | }, 964 | { 965 | "key": "password", 966 | "value": "{{password}}", 967 | "type": "string" 968 | }, 969 | { 970 | "key": "saveHelperData", 971 | "type": "any" 972 | }, 973 | { 974 | "key": "showPassword", 975 | "value": false, 976 | "type": "boolean" 977 | } 978 | ] 979 | }, 980 | "method": "POST", 981 | "header": [ 982 | { 983 | "key": "content", 984 | "value": "application/json" 985 | }, 986 | { 987 | "key": "Content-Type", 988 | "value": "application/json" 989 | } 990 | ], 991 | "body": { 992 | "mode": "raw", 993 | "raw": " {\n \"accountId\": \"{{accountId}}\",\n \"postingDate\": \"2017-11-23\",\n \"documentNumber\": \"12345\",\n \"externalDocumentNumber\": \"67890\",\n \"amount\": -10000.00,\n \"description\": \"Salary to Bob\",\n \"comment\": \"\",\n \"dimensions\": [\n {\n \"code\": \"DEPARTMENT\",\n \"valueCode\": \"SALES\"\n }\n ]\n }" 994 | }, 995 | "url": { 996 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})/journalLines", 997 | "host": [ 998 | "{{url}}" 999 | ], 1000 | "path": [ 1001 | "api", 1002 | "v1.0", 1003 | "companies({{companyId}})", 1004 | "journals({{journalId}})", 1005 | "journalLines" 1006 | ] 1007 | } 1008 | }, 1009 | "response": [] 1010 | }, 1011 | { 1012 | "name": "Multiple journalLines $batch", 1013 | "request": { 1014 | "auth": { 1015 | "type": "basic", 1016 | "basic": [ 1017 | { 1018 | "key": "username", 1019 | "value": "{{user}}", 1020 | "type": "string" 1021 | }, 1022 | { 1023 | "key": "password", 1024 | "value": "{{password}}", 1025 | "type": "string" 1026 | }, 1027 | { 1028 | "key": "saveHelperData", 1029 | "type": "any" 1030 | }, 1031 | { 1032 | "key": "showPassword", 1033 | "value": false, 1034 | "type": "boolean" 1035 | } 1036 | ] 1037 | }, 1038 | "method": "POST", 1039 | "header": [ 1040 | { 1041 | "key": "Content-Type", 1042 | "value": "application/json" 1043 | }, 1044 | { 1045 | "key": "Accept", 1046 | "value": "application/json", 1047 | "type": "text" 1048 | } 1049 | ], 1050 | "body": { 1051 | "mode": "raw", 1052 | "raw": "{\n\t\"requests\": [\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"id\": \"r1\",\n\t\t\t\"url\": \"companies({{companyId}})/journals({{journalId}})/journalLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\"\n\t\t\t},\n\t\t\t\"body\": {\n\t\t\t \"accountId\": \"{{accountId}}\",\n\t\t\t \"postingDate\": \"2020-08-27\",\n\t\t\t \"documentNumber\": \"12345\",\n\t\t\t \"externalDocumentNumber\": \"67890\",\n\t\t\t \"amount\": -3250,\n\t\t\t \"description\": \"Salary to Bob\",\n\t\t\t \"dimensions\": [\n {\n \"code\": \"DEPARTMENT\",\n \"valueCode\": \"SALES\"\n }\n\t\t\t ]\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"id\": \"r2\",\n\t\t\t\"url\": \"companies({{companyId}})/journals({{journalId}})/journalLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\"\n\t\t\t},\n\t\t\t\"body\": {\n\t\t\t \"accountId\": \"{{accountId}}\",\n\t\t\t \"postingDate\": \"2020-08-27\",\n\t\t\t \"documentNumber\": \"12345\",\n\t\t\t \"externalDocumentNumber\": \"67891\",\n\t\t\t \"amount\": -3500,\n\t\t\t \"description\": \"Salary to John\",\n\t\t\t \"dimensions\": [\n {\n \"code\": \"DEPARTMENT\",\n \"valueCode\": \"SALES\"\n }\n\t\t\t ]\n\t }\n\t\t},\n {\n \"method\": \"POST\",\n\t\t\t\"id\": \"r3\",\n \"dependsOn\": [\"r1\",\"r2\"],\n\t\t\t\"url\": \"companies({{companyId}})/journals({{journalId}})/Microsoft.NAV.post\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\"\n\t\t\t},\n\t\t\t\"body\": { }\n }\n ]\n}" 1053 | }, 1054 | "url": { 1055 | "raw": "{{url}}/api/v1.0/$batch", 1056 | "host": [ 1057 | "{{url}}" 1058 | ], 1059 | "path": [ 1060 | "api", 1061 | "v1.0", 1062 | "$batch" 1063 | ] 1064 | } 1065 | }, 1066 | "response": [] 1067 | }, 1068 | { 1069 | "name": "journal with journalLines", 1070 | "request": { 1071 | "auth": { 1072 | "type": "basic", 1073 | "basic": [ 1074 | { 1075 | "key": "username", 1076 | "value": "{{user}}", 1077 | "type": "string" 1078 | }, 1079 | { 1080 | "key": "password", 1081 | "value": "{{password}}", 1082 | "type": "string" 1083 | }, 1084 | { 1085 | "key": "saveHelperData", 1086 | "value": true, 1087 | "type": "boolean" 1088 | }, 1089 | { 1090 | "key": "showPassword", 1091 | "value": false, 1092 | "type": "boolean" 1093 | } 1094 | ] 1095 | }, 1096 | "method": "GET", 1097 | "header": [ 1098 | { 1099 | "key": "Authorization", 1100 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1101 | } 1102 | ], 1103 | "url": { 1104 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})/?$expand=journalLines", 1105 | "host": [ 1106 | "{{url}}" 1107 | ], 1108 | "path": [ 1109 | "api", 1110 | "v1.0", 1111 | "companies({{companyId}})", 1112 | "journals({{journalId}})", 1113 | "" 1114 | ], 1115 | "query": [ 1116 | { 1117 | "key": "$expand", 1118 | "value": "journalLines" 1119 | } 1120 | ] 1121 | } 1122 | }, 1123 | "response": [] 1124 | }, 1125 | { 1126 | "name": "Get Attachments", 1127 | "request": { 1128 | "auth": { 1129 | "type": "basic", 1130 | "basic": [ 1131 | { 1132 | "key": "username", 1133 | "value": "{{user}}", 1134 | "type": "string" 1135 | }, 1136 | { 1137 | "key": "password", 1138 | "value": "{{password}}", 1139 | "type": "string" 1140 | }, 1141 | { 1142 | "key": "saveHelperData", 1143 | "value": true, 1144 | "type": "boolean" 1145 | }, 1146 | { 1147 | "key": "showPassword", 1148 | "value": false, 1149 | "type": "boolean" 1150 | } 1151 | ] 1152 | }, 1153 | "method": "GET", 1154 | "header": [ 1155 | { 1156 | "key": "Authorization", 1157 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1158 | }, 1159 | { 1160 | "key": "Content-Type", 1161 | "value": "application/json" 1162 | } 1163 | ], 1164 | "url": { 1165 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/attachments?$filter=parentId eq {{journalLineId}}", 1166 | "host": [ 1167 | "{{url}}" 1168 | ], 1169 | "path": [ 1170 | "api", 1171 | "v1.0", 1172 | "companies({{companyId}})", 1173 | "attachments" 1174 | ], 1175 | "query": [ 1176 | { 1177 | "key": "$filter", 1178 | "value": "parentId eq {{journalLineId}}" 1179 | } 1180 | ] 1181 | } 1182 | }, 1183 | "response": [] 1184 | }, 1185 | { 1186 | "name": "Create new attachment", 1187 | "request": { 1188 | "auth": { 1189 | "type": "basic", 1190 | "basic": [ 1191 | { 1192 | "key": "username", 1193 | "value": "{{user}}", 1194 | "type": "string" 1195 | }, 1196 | { 1197 | "key": "password", 1198 | "value": "{{password}}", 1199 | "type": "string" 1200 | }, 1201 | { 1202 | "key": "saveHelperData", 1203 | "value": true, 1204 | "type": "boolean" 1205 | }, 1206 | { 1207 | "key": "showPassword", 1208 | "value": false, 1209 | "type": "boolean" 1210 | } 1211 | ] 1212 | }, 1213 | "method": "POST", 1214 | "header": [ 1215 | { 1216 | "key": "Authorization", 1217 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1218 | }, 1219 | { 1220 | "key": "Content-Type", 1221 | "value": "application/json" 1222 | } 1223 | ], 1224 | "body": { 1225 | "mode": "raw", 1226 | "raw": "{\n\t\"parentId\" : \"{{journalLineId}}\",\n\t\"fileName\": \"myPDF.pdf\"\n\t\n}" 1227 | }, 1228 | "url": { 1229 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/attachments", 1230 | "host": [ 1231 | "{{url}}" 1232 | ], 1233 | "path": [ 1234 | "api", 1235 | "v1.0", 1236 | "companies({{companyId}})", 1237 | "attachments" 1238 | ] 1239 | } 1240 | }, 1241 | "response": [] 1242 | }, 1243 | { 1244 | "name": "Upload attachment", 1245 | "request": { 1246 | "auth": { 1247 | "type": "basic", 1248 | "basic": [ 1249 | { 1250 | "key": "username", 1251 | "value": "{{user}}", 1252 | "type": "string" 1253 | }, 1254 | { 1255 | "key": "password", 1256 | "value": "{{password}}", 1257 | "type": "string" 1258 | }, 1259 | { 1260 | "key": "saveHelperData", 1261 | "value": true, 1262 | "type": "boolean" 1263 | }, 1264 | { 1265 | "key": "showPassword", 1266 | "value": false, 1267 | "type": "boolean" 1268 | } 1269 | ] 1270 | }, 1271 | "method": "PATCH", 1272 | "header": [ 1273 | { 1274 | "key": "Authorization", 1275 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1276 | }, 1277 | { 1278 | "key": "If-Match", 1279 | "value": "*" 1280 | }, 1281 | { 1282 | "key": "Content-Type", 1283 | "value": "application/octet-stream" 1284 | } 1285 | ], 1286 | "body": { 1287 | "mode": "file", 1288 | "file": { 1289 | "src": "/C:/Temp/2020-05-11_14-44-42.pdf" 1290 | } 1291 | }, 1292 | "url": { 1293 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/attachments(parentId={{parentId}},id={{attachmentId}})/content", 1294 | "host": [ 1295 | "{{url}}" 1296 | ], 1297 | "path": [ 1298 | "api", 1299 | "v1.0", 1300 | "companies({{companyId}})", 1301 | "attachments(parentId={{parentId}},id={{attachmentId}})", 1302 | "content" 1303 | ] 1304 | } 1305 | }, 1306 | "response": [] 1307 | }, 1308 | { 1309 | "name": "Delete Attachments", 1310 | "request": { 1311 | "auth": { 1312 | "type": "basic", 1313 | "basic": [ 1314 | { 1315 | "key": "username", 1316 | "value": "{{user}}", 1317 | "type": "string" 1318 | }, 1319 | { 1320 | "key": "password", 1321 | "value": "{{password}}", 1322 | "type": "string" 1323 | }, 1324 | { 1325 | "key": "saveHelperData", 1326 | "value": true, 1327 | "type": "boolean" 1328 | }, 1329 | { 1330 | "key": "showPassword", 1331 | "value": false, 1332 | "type": "boolean" 1333 | } 1334 | ] 1335 | }, 1336 | "method": "DELETE", 1337 | "header": [ 1338 | { 1339 | "key": "Authorization", 1340 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1341 | }, 1342 | { 1343 | "key": "Content-Type", 1344 | "value": "application/json" 1345 | } 1346 | ], 1347 | "body": { 1348 | "mode": "raw", 1349 | "raw": "{\n\t\"filename\"=\"myPDF.pdf\"\n}" 1350 | }, 1351 | "url": { 1352 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/attachments({{parentId}},{{attachmentId}})", 1353 | "host": [ 1354 | "{{url}}" 1355 | ], 1356 | "path": [ 1357 | "api", 1358 | "v1.0", 1359 | "companies({{companyId}})", 1360 | "attachments({{parentId}},{{attachmentId}})" 1361 | ] 1362 | } 1363 | }, 1364 | "response": [] 1365 | }, 1366 | { 1367 | "name": "journalLines Microsoft.NAV.post", 1368 | "request": { 1369 | "auth": { 1370 | "type": "basic", 1371 | "basic": [ 1372 | { 1373 | "key": "username", 1374 | "value": "{{user}}", 1375 | "type": "string" 1376 | }, 1377 | { 1378 | "key": "password", 1379 | "value": "{{password}}", 1380 | "type": "string" 1381 | }, 1382 | { 1383 | "key": "saveHelperData", 1384 | "type": "any" 1385 | }, 1386 | { 1387 | "key": "showPassword", 1388 | "value": false, 1389 | "type": "boolean" 1390 | } 1391 | ] 1392 | }, 1393 | "method": "POST", 1394 | "header": [ 1395 | { 1396 | "key": "content", 1397 | "value": "application/json" 1398 | }, 1399 | { 1400 | "key": "Content-Type", 1401 | "value": "application/json" 1402 | } 1403 | ], 1404 | "body": { 1405 | "mode": "raw", 1406 | "raw": "" 1407 | }, 1408 | "url": { 1409 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})/Microsoft.NAV.post", 1410 | "host": [ 1411 | "{{url}}" 1412 | ], 1413 | "path": [ 1414 | "api", 1415 | "v1.0", 1416 | "companies({{companyId}})", 1417 | "journals({{journalId}})", 1418 | "Microsoft.NAV.post" 1419 | ] 1420 | } 1421 | }, 1422 | "response": [] 1423 | }, 1424 | { 1425 | "name": "journalLines", 1426 | "request": { 1427 | "auth": { 1428 | "type": "basic", 1429 | "basic": [ 1430 | { 1431 | "key": "username", 1432 | "value": "{{user}}", 1433 | "type": "string" 1434 | }, 1435 | { 1436 | "key": "password", 1437 | "value": "{{password}}", 1438 | "type": "string" 1439 | }, 1440 | { 1441 | "key": "saveHelperData", 1442 | "value": true, 1443 | "type": "boolean" 1444 | }, 1445 | { 1446 | "key": "showPassword", 1447 | "value": false, 1448 | "type": "boolean" 1449 | } 1450 | ] 1451 | }, 1452 | "method": "DELETE", 1453 | "header": [ 1454 | { 1455 | "key": "content", 1456 | "value": "application/json" 1457 | }, 1458 | { 1459 | "key": "Content-Type", 1460 | "value": "application/json" 1461 | } 1462 | ], 1463 | "body": { 1464 | "mode": "raw", 1465 | "raw": "" 1466 | }, 1467 | "url": { 1468 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})/journalLines({{journalLineId}})", 1469 | "host": [ 1470 | "{{url}}" 1471 | ], 1472 | "path": [ 1473 | "api", 1474 | "v1.0", 1475 | "companies({{companyId}})", 1476 | "journals({{journalId}})", 1477 | "journalLines({{journalLineId}})" 1478 | ] 1479 | } 1480 | }, 1481 | "response": [] 1482 | }, 1483 | { 1484 | "name": "journals", 1485 | "request": { 1486 | "auth": { 1487 | "type": "basic", 1488 | "basic": [ 1489 | { 1490 | "key": "username", 1491 | "value": "{{user}}", 1492 | "type": "string" 1493 | }, 1494 | { 1495 | "key": "password", 1496 | "value": "{{password}}", 1497 | "type": "string" 1498 | }, 1499 | { 1500 | "key": "saveHelperData", 1501 | "value": true, 1502 | "type": "boolean" 1503 | }, 1504 | { 1505 | "key": "showPassword", 1506 | "value": false, 1507 | "type": "boolean" 1508 | } 1509 | ] 1510 | }, 1511 | "method": "DELETE", 1512 | "header": [ 1513 | { 1514 | "key": "Authorization", 1515 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1516 | } 1517 | ], 1518 | "body": { 1519 | "mode": "formdata", 1520 | "formdata": [] 1521 | }, 1522 | "url": { 1523 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/journals({{journalId}})", 1524 | "host": [ 1525 | "{{url}}" 1526 | ], 1527 | "path": [ 1528 | "api", 1529 | "v1.0", 1530 | "companies({{companyId}})", 1531 | "journals({{journalId}})" 1532 | ] 1533 | } 1534 | }, 1535 | "response": [] 1536 | }, 1537 | { 1538 | "name": "trialBalance", 1539 | "request": { 1540 | "auth": { 1541 | "type": "basic", 1542 | "basic": [ 1543 | { 1544 | "key": "username", 1545 | "value": "{{user}}", 1546 | "type": "string" 1547 | }, 1548 | { 1549 | "key": "password", 1550 | "value": "{{password}}", 1551 | "type": "string" 1552 | }, 1553 | { 1554 | "key": "saveHelperData", 1555 | "value": true, 1556 | "type": "boolean" 1557 | }, 1558 | { 1559 | "key": "showPassword", 1560 | "value": false, 1561 | "type": "boolean" 1562 | } 1563 | ] 1564 | }, 1565 | "method": "GET", 1566 | "header": [], 1567 | "url": { 1568 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/trialBalance", 1569 | "host": [ 1570 | "{{url}}" 1571 | ], 1572 | "path": [ 1573 | "api", 1574 | "v1.0", 1575 | "companies({{companyId}})", 1576 | "trialBalance" 1577 | ] 1578 | } 1579 | }, 1580 | "response": [] 1581 | } 1582 | ] 1583 | }, 1584 | { 1585 | "name": "Dimensions", 1586 | "item": [ 1587 | { 1588 | "name": "dimensions", 1589 | "request": { 1590 | "auth": { 1591 | "type": "basic", 1592 | "basic": [ 1593 | { 1594 | "key": "username", 1595 | "value": "{{user}}", 1596 | "type": "string" 1597 | }, 1598 | { 1599 | "key": "password", 1600 | "value": "{{password}}", 1601 | "type": "string" 1602 | }, 1603 | { 1604 | "key": "saveHelperData", 1605 | "value": true, 1606 | "type": "boolean" 1607 | }, 1608 | { 1609 | "key": "showPassword", 1610 | "value": false, 1611 | "type": "boolean" 1612 | } 1613 | ] 1614 | }, 1615 | "method": "GET", 1616 | "header": [ 1617 | { 1618 | "key": "Authorization", 1619 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1620 | } 1621 | ], 1622 | "url": { 1623 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/dimensions", 1624 | "host": [ 1625 | "{{url}}" 1626 | ], 1627 | "path": [ 1628 | "api", 1629 | "v1.0", 1630 | "companies({{companyId}})", 1631 | "dimensions" 1632 | ] 1633 | } 1634 | }, 1635 | "response": [] 1636 | }, 1637 | { 1638 | "name": "dimensionValues", 1639 | "request": { 1640 | "auth": { 1641 | "type": "basic", 1642 | "basic": [ 1643 | { 1644 | "key": "username", 1645 | "value": "{{user}}", 1646 | "type": "string" 1647 | }, 1648 | { 1649 | "key": "password", 1650 | "value": "{{password}}", 1651 | "type": "string" 1652 | }, 1653 | { 1654 | "key": "saveHelperData", 1655 | "value": true, 1656 | "type": "boolean" 1657 | }, 1658 | { 1659 | "key": "showPassword", 1660 | "value": false, 1661 | "type": "boolean" 1662 | } 1663 | ] 1664 | }, 1665 | "method": "GET", 1666 | "header": [ 1667 | { 1668 | "key": "Authorization", 1669 | "value": "Basic cGJvcnJpbmc6Wi9wQUZrdW4ya2hPanZwVldQeGlMMnpGMWZLR0NjanA2UGJvV2NZcnNqMD0=" 1670 | } 1671 | ], 1672 | "url": { 1673 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/dimensions({{dimensionId}})/dimensionValues", 1674 | "host": [ 1675 | "{{url}}" 1676 | ], 1677 | "path": [ 1678 | "api", 1679 | "v1.0", 1680 | "companies({{companyId}})", 1681 | "dimensions({{dimensionId}})", 1682 | "dimensionValues" 1683 | ] 1684 | } 1685 | }, 1686 | "response": [] 1687 | } 1688 | ] 1689 | }, 1690 | { 1691 | "name": "Sales", 1692 | "item": [ 1693 | { 1694 | "name": "Customers", 1695 | "item": [ 1696 | { 1697 | "name": "customers", 1698 | "request": { 1699 | "auth": { 1700 | "type": "basic", 1701 | "basic": [ 1702 | { 1703 | "key": "username", 1704 | "value": "{{user}}", 1705 | "type": "string" 1706 | }, 1707 | { 1708 | "key": "password", 1709 | "value": "{{password}}", 1710 | "type": "string" 1711 | }, 1712 | { 1713 | "key": "saveHelperData", 1714 | "value": true, 1715 | "type": "boolean" 1716 | }, 1717 | { 1718 | "key": "showPassword", 1719 | "value": false, 1720 | "type": "boolean" 1721 | } 1722 | ] 1723 | }, 1724 | "method": "GET", 1725 | "header": [ 1726 | { 1727 | "key": "Authorization", 1728 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1729 | } 1730 | ], 1731 | "url": { 1732 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers", 1733 | "host": [ 1734 | "{{url}}" 1735 | ], 1736 | "path": [ 1737 | "api", 1738 | "v1.0", 1739 | "companies({{companyId}})", 1740 | "customers" 1741 | ] 1742 | } 1743 | }, 1744 | "response": [] 1745 | }, 1746 | { 1747 | "name": "customers(id)", 1748 | "request": { 1749 | "auth": { 1750 | "type": "basic", 1751 | "basic": [ 1752 | { 1753 | "key": "username", 1754 | "value": "{{user}}", 1755 | "type": "string" 1756 | }, 1757 | { 1758 | "key": "password", 1759 | "value": "{{password}}", 1760 | "type": "string" 1761 | }, 1762 | { 1763 | "key": "saveHelperData", 1764 | "value": true, 1765 | "type": "boolean" 1766 | }, 1767 | { 1768 | "key": "showPassword", 1769 | "value": false, 1770 | "type": "boolean" 1771 | } 1772 | ] 1773 | }, 1774 | "method": "GET", 1775 | "header": [ 1776 | { 1777 | "key": "Authorization", 1778 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1779 | } 1780 | ], 1781 | "url": { 1782 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers({{customerId}})", 1783 | "host": [ 1784 | "{{url}}" 1785 | ], 1786 | "path": [ 1787 | "api", 1788 | "v1.0", 1789 | "companies({{companyId}})", 1790 | "customers({{customerId}})" 1791 | ] 1792 | } 1793 | }, 1794 | "response": [ 1795 | { 1796 | "name": "customers", 1797 | "originalRequest": { 1798 | "method": "GET", 1799 | "header": [ 1800 | { 1801 | "key": "Authorization", 1802 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 1803 | } 1804 | ], 1805 | "url": { 1806 | "raw": "{{url}}/companies({{companyId}})/customers", 1807 | "host": [ 1808 | "{{url}}" 1809 | ], 1810 | "path": [ 1811 | "companies({{companyId}})", 1812 | "customers" 1813 | ] 1814 | } 1815 | }, 1816 | "status": "OK", 1817 | "code": 200, 1818 | "_postman_previewlanguage": "json", 1819 | "header": [ 1820 | { 1821 | "key": "Access-Control-Allow-Credentials", 1822 | "value": "true", 1823 | "name": "Access-Control-Allow-Credentials", 1824 | "description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials." 1825 | }, 1826 | { 1827 | "key": "Access-Control-Allow-Headers", 1828 | "value": "Origin, X-Requested-With, Authorization", 1829 | "name": "Access-Control-Allow-Headers", 1830 | "description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request." 1831 | }, 1832 | { 1833 | "key": "Access-Control-Allow-Origin", 1834 | "value": "*", 1835 | "name": "Access-Control-Allow-Origin", 1836 | "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." 1837 | }, 1838 | { 1839 | "key": "Access-Control-Expose-Headers", 1840 | "value": "Date", 1841 | "name": "Access-Control-Expose-Headers", 1842 | "description": "Lets a server whitelist headers that browsers are allowed to access." 1843 | }, 1844 | { 1845 | "key": "Access-Control-Expose-Headers", 1846 | "value": "Content-Length", 1847 | "name": "Access-Control-Expose-Headers", 1848 | "description": "Lets a server whitelist headers that browsers are allowed to access." 1849 | }, 1850 | { 1851 | "key": "Access-Control-Expose-Headers", 1852 | "value": "Server", 1853 | "name": "Access-Control-Expose-Headers", 1854 | "description": "Lets a server whitelist headers that browsers are allowed to access." 1855 | }, 1856 | { 1857 | "key": "Access-Control-Expose-Headers", 1858 | "value": "OData-Version", 1859 | "name": "Access-Control-Expose-Headers", 1860 | "description": "Lets a server whitelist headers that browsers are allowed to access." 1861 | }, 1862 | { 1863 | "key": "Access-Control-Expose-Headers", 1864 | "value": "x-ms-correlation-id", 1865 | "name": "Access-Control-Expose-Headers", 1866 | "description": "Lets a server whitelist headers that browsers are allowed to access." 1867 | }, 1868 | { 1869 | "key": "Content-Encoding", 1870 | "value": "gzip", 1871 | "name": "Content-Encoding", 1872 | "description": "The type of encoding used on the data." 1873 | }, 1874 | { 1875 | "key": "Content-Length", 1876 | "value": "1600", 1877 | "name": "Content-Length", 1878 | "description": "The length of the response body in octets (8-bit bytes)" 1879 | }, 1880 | { 1881 | "key": "Content-Type", 1882 | "value": "application/json; odata.metadata=minimal", 1883 | "name": "Content-Type", 1884 | "description": "The mime type of this content" 1885 | }, 1886 | { 1887 | "key": "Date", 1888 | "value": "Thu, 22 Mar 2018 10:13:07 GMT", 1889 | "name": "Date", 1890 | "description": "The date and time that the message was sent" 1891 | }, 1892 | { 1893 | "key": "OData-Version", 1894 | "value": "4.0", 1895 | "name": "OData-Version", 1896 | "description": "Custom header" 1897 | }, 1898 | { 1899 | "key": "Server", 1900 | "value": "Microsoft-HTTPAPI/2.0", 1901 | "name": "Server", 1902 | "description": "A name for the server" 1903 | }, 1904 | { 1905 | "key": "request-id", 1906 | "value": "f14c4386-cc16-498f-ab75-d973b830ed16", 1907 | "name": "request-id", 1908 | "description": "Custom header" 1909 | }, 1910 | { 1911 | "key": "x-content-type-options", 1912 | "value": "nosniff", 1913 | "name": "x-content-type-options", 1914 | "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" 1915 | }, 1916 | { 1917 | "key": "x-ms-correlation-id", 1918 | "value": "9c7532af-e6c3-453e-9f12-0f0c78ab393f", 1919 | "name": "x-ms-correlation-id", 1920 | "description": "Custom header" 1921 | } 1922 | ], 1923 | "cookie": [], 1924 | "body": "{\"@odata.context\":\"https://api.financials.dynamics.com/v1.0/M365x142550.OnMicrosoft.com/api/beta/$metadata#companies(7192822e-6ea1-49ab-b8df-288cf9d1cd63)/customers\",\"value\":[{\"@odata.etag\":\"W/\\\"JzQ0O0FZVU5yQU15bEpMb1Z6OHhIQmJGV01vQkFPdkFhSlVaMXNZN1RXMWlSQ1U9MTswMDsn\\\"\",\"id\":\"321ebd32-98cc-4209-915b-0123c62417bb\",\"number\":\"50000\",\"displayName\":\"Relecloud\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jesse.homer@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":8836.8,\"overdueAmount\":5754.96,\"totalSalesExcludingTax\":76713,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.457Z\",\"address\":{\"street\":\"25 Water Way\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3NidkdoVXgrMnBxd011TW1yb1UzQjdTanBZNjBpUml6Yng2N1dUemdrV2c9MTswMDsn\\\"\",\"id\":\"c4233376-4425-4eb1-9517-7ceea5d2f6a7\",\"number\":\"40000\",\"displayName\":\"Alpine Ski House\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"paul.cannon@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"502e8056-8412-4bdf-a1f7-a58fff1e31f3\",\"taxAreaDisplayName\":\"Atlanta, GA - North\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":4316.92,\"overdueAmount\":0,\"totalSalesExcludingTax\":61704.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.377Z\",\"address\":{\"street\":\"10 Deerfield Road\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0OzJNbWNwRXBza0M2N3FxaGNteG9IRWhib0d1ZkNibkNxWE00Wlg5ejVhRG89MTswMDsn\\\"\",\"id\":\"7e174d9d-afa3-4651-8dac-93e165291fd5\",\"number\":\"30000\",\"displayName\":\"Litware, Inc.\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"meagan.bond@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"dcee8d4f-5ea3-4aab-a105-d7b53cf9d569\",\"taxAreaDisplayName\":\"MIAMI, FL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"460d5634-ad4f-4b31-b3af-952fcf06aebf\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":53833.52,\"overdueAmount\":31848.98,\"totalSalesExcludingTax\":198604.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.303Z\",\"address\":{\"street\":\"10 High Tower Green\",\"city\":\"Miami\",\"state\":\"FL\",\"countryLetterCode\":\"US\",\"postalCode\":\"37125\"},\"paymentTerms\":{\"code\":\"CM\",\"description\":\"Current Month\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3loYWFDTEVnQ2FYc2QxelpoYWZFQTRBUEV2VTd5cHB5S0dnSVVHbExieUU9MTswMDsn\\\"\",\"id\":\"e533af1e-6f6b-4d59-b355-a8619407b2d0\",\"number\":\"10000\",\"displayName\":\"Coho Winery\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jim.glynn@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":0,\"overdueAmount\":0,\"totalSalesExcludingTax\":214536,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.13Z\",\"address\":{\"street\":\"192 Market Square\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O25SdlNmbmxSckcyRVFLVEU1d1ZZNFRoZGlpVjVGQ2FjMUtNWlByZVFOT289MTswMDsn\\\"\",\"id\":\"f86d8af3-4785-474d-8d6c-c0e4018af815\",\"number\":\"20000\",\"displayName\":\"Trey Research\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"helen.ray@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"5def96b4-c7f4-491c-8527-c0425559707f\",\"taxAreaDisplayName\":\"CHICAGO, IL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":3036.6,\"overdueAmount\":2024.4,\"totalSalesExcludingTax\":47927.4,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.217Z\",\"address\":{\"street\":\"153 Thomas Drive\",\"city\":\"Chicago\",\"state\":\"IL\",\"countryLetterCode\":\"US\",\"postalCode\":\"61236\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}}]}" 1925 | } 1926 | ] 1927 | }, 1928 | { 1929 | "name": "customers ?$select", 1930 | "request": { 1931 | "auth": { 1932 | "type": "basic", 1933 | "basic": [ 1934 | { 1935 | "key": "username", 1936 | "value": "{{user}}", 1937 | "type": "string" 1938 | }, 1939 | { 1940 | "key": "password", 1941 | "value": "{{password}}", 1942 | "type": "string" 1943 | }, 1944 | { 1945 | "key": "saveHelperData", 1946 | "value": true, 1947 | "type": "boolean" 1948 | }, 1949 | { 1950 | "key": "showPassword", 1951 | "value": false, 1952 | "type": "boolean" 1953 | } 1954 | ] 1955 | }, 1956 | "method": "GET", 1957 | "header": [], 1958 | "url": { 1959 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$select=email,type", 1960 | "host": [ 1961 | "{{url}}" 1962 | ], 1963 | "path": [ 1964 | "api", 1965 | "v1.0", 1966 | "companies({{companyId}})", 1967 | "customers" 1968 | ], 1969 | "query": [ 1970 | { 1971 | "key": "$select", 1972 | "value": "email,type" 1973 | } 1974 | ] 1975 | } 1976 | }, 1977 | "response": [] 1978 | }, 1979 | { 1980 | "name": "customers ?$top", 1981 | "request": { 1982 | "auth": { 1983 | "type": "basic", 1984 | "basic": [ 1985 | { 1986 | "key": "username", 1987 | "value": "{{user}}", 1988 | "type": "string" 1989 | }, 1990 | { 1991 | "key": "password", 1992 | "value": "{{password}}", 1993 | "type": "string" 1994 | }, 1995 | { 1996 | "key": "saveHelperData", 1997 | "value": true, 1998 | "type": "boolean" 1999 | }, 2000 | { 2001 | "key": "showPassword", 2002 | "value": false, 2003 | "type": "boolean" 2004 | } 2005 | ] 2006 | }, 2007 | "method": "GET", 2008 | "header": [ 2009 | { 2010 | "key": "Authorization", 2011 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2012 | } 2013 | ], 2014 | "url": { 2015 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$top=3", 2016 | "host": [ 2017 | "{{url}}" 2018 | ], 2019 | "path": [ 2020 | "api", 2021 | "v1.0", 2022 | "companies({{companyId}})", 2023 | "customers" 2024 | ], 2025 | "query": [ 2026 | { 2027 | "key": "$top", 2028 | "value": "3" 2029 | } 2030 | ] 2031 | } 2032 | }, 2033 | "response": [] 2034 | }, 2035 | { 2036 | "name": "customers ?$skip", 2037 | "request": { 2038 | "auth": { 2039 | "type": "basic", 2040 | "basic": [ 2041 | { 2042 | "key": "username", 2043 | "value": "{{user}}", 2044 | "type": "string" 2045 | }, 2046 | { 2047 | "key": "password", 2048 | "value": "{{password}}", 2049 | "type": "string" 2050 | }, 2051 | { 2052 | "key": "saveHelperData", 2053 | "value": true, 2054 | "type": "boolean" 2055 | }, 2056 | { 2057 | "key": "showPassword", 2058 | "value": false, 2059 | "type": "boolean" 2060 | } 2061 | ] 2062 | }, 2063 | "method": "GET", 2064 | "header": [ 2065 | { 2066 | "key": "Authorization", 2067 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2068 | } 2069 | ], 2070 | "url": { 2071 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$skip=2", 2072 | "host": [ 2073 | "{{url}}" 2074 | ], 2075 | "path": [ 2076 | "api", 2077 | "v1.0", 2078 | "companies({{companyId}})", 2079 | "customers" 2080 | ], 2081 | "query": [ 2082 | { 2083 | "key": "$skip", 2084 | "value": "2" 2085 | } 2086 | ] 2087 | } 2088 | }, 2089 | "response": [] 2090 | }, 2091 | { 2092 | "name": "customers Deltatokens", 2093 | "request": { 2094 | "auth": { 2095 | "type": "basic", 2096 | "basic": [ 2097 | { 2098 | "key": "username", 2099 | "value": "{{user}}", 2100 | "type": "string" 2101 | }, 2102 | { 2103 | "key": "password", 2104 | "value": "{{password}}", 2105 | "type": "string" 2106 | }, 2107 | { 2108 | "key": "saveHelperData", 2109 | "value": true, 2110 | "type": "boolean" 2111 | }, 2112 | { 2113 | "key": "showPassword", 2114 | "value": false, 2115 | "type": "boolean" 2116 | } 2117 | ] 2118 | }, 2119 | "method": "GET", 2120 | "header": [ 2121 | { 2122 | "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.", 2123 | "key": "Authorization", 2124 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2125 | }, 2126 | { 2127 | "key": "prefer", 2128 | "value": "odata.track-changes", 2129 | "type": "text" 2130 | } 2131 | ], 2132 | "url": { 2133 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers", 2134 | "host": [ 2135 | "{{url}}" 2136 | ], 2137 | "path": [ 2138 | "api", 2139 | "v1.0", 2140 | "companies({{companyId}})", 2141 | "customers" 2142 | ] 2143 | } 2144 | }, 2145 | "response": [ 2146 | { 2147 | "name": "customers", 2148 | "originalRequest": { 2149 | "method": "GET", 2150 | "header": [ 2151 | { 2152 | "key": "Authorization", 2153 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2154 | } 2155 | ], 2156 | "url": { 2157 | "raw": "{{url}}/companies({{companyId}})/customers", 2158 | "host": [ 2159 | "{{url}}" 2160 | ], 2161 | "path": [ 2162 | "companies({{companyId}})", 2163 | "customers" 2164 | ] 2165 | } 2166 | }, 2167 | "status": "OK", 2168 | "code": 200, 2169 | "_postman_previewlanguage": "json", 2170 | "header": [ 2171 | { 2172 | "key": "Access-Control-Allow-Credentials", 2173 | "value": "true", 2174 | "name": "Access-Control-Allow-Credentials", 2175 | "description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials." 2176 | }, 2177 | { 2178 | "key": "Access-Control-Allow-Headers", 2179 | "value": "Origin, X-Requested-With, Authorization", 2180 | "name": "Access-Control-Allow-Headers", 2181 | "description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request." 2182 | }, 2183 | { 2184 | "key": "Access-Control-Allow-Origin", 2185 | "value": "*", 2186 | "name": "Access-Control-Allow-Origin", 2187 | "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." 2188 | }, 2189 | { 2190 | "key": "Access-Control-Expose-Headers", 2191 | "value": "Date", 2192 | "name": "Access-Control-Expose-Headers", 2193 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2194 | }, 2195 | { 2196 | "key": "Access-Control-Expose-Headers", 2197 | "value": "Content-Length", 2198 | "name": "Access-Control-Expose-Headers", 2199 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2200 | }, 2201 | { 2202 | "key": "Access-Control-Expose-Headers", 2203 | "value": "Server", 2204 | "name": "Access-Control-Expose-Headers", 2205 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2206 | }, 2207 | { 2208 | "key": "Access-Control-Expose-Headers", 2209 | "value": "OData-Version", 2210 | "name": "Access-Control-Expose-Headers", 2211 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2212 | }, 2213 | { 2214 | "key": "Access-Control-Expose-Headers", 2215 | "value": "x-ms-correlation-id", 2216 | "name": "Access-Control-Expose-Headers", 2217 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2218 | }, 2219 | { 2220 | "key": "Content-Encoding", 2221 | "value": "gzip", 2222 | "name": "Content-Encoding", 2223 | "description": "The type of encoding used on the data." 2224 | }, 2225 | { 2226 | "key": "Content-Length", 2227 | "value": "1600", 2228 | "name": "Content-Length", 2229 | "description": "The length of the response body in octets (8-bit bytes)" 2230 | }, 2231 | { 2232 | "key": "Content-Type", 2233 | "value": "application/json; odata.metadata=minimal", 2234 | "name": "Content-Type", 2235 | "description": "The mime type of this content" 2236 | }, 2237 | { 2238 | "key": "Date", 2239 | "value": "Thu, 22 Mar 2018 10:13:07 GMT", 2240 | "name": "Date", 2241 | "description": "The date and time that the message was sent" 2242 | }, 2243 | { 2244 | "key": "OData-Version", 2245 | "value": "4.0", 2246 | "name": "OData-Version", 2247 | "description": "Custom header" 2248 | }, 2249 | { 2250 | "key": "Server", 2251 | "value": "Microsoft-HTTPAPI/2.0", 2252 | "name": "Server", 2253 | "description": "A name for the server" 2254 | }, 2255 | { 2256 | "key": "request-id", 2257 | "value": "f14c4386-cc16-498f-ab75-d973b830ed16", 2258 | "name": "request-id", 2259 | "description": "Custom header" 2260 | }, 2261 | { 2262 | "key": "x-content-type-options", 2263 | "value": "nosniff", 2264 | "name": "x-content-type-options", 2265 | "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" 2266 | }, 2267 | { 2268 | "key": "x-ms-correlation-id", 2269 | "value": "9c7532af-e6c3-453e-9f12-0f0c78ab393f", 2270 | "name": "x-ms-correlation-id", 2271 | "description": "Custom header" 2272 | } 2273 | ], 2274 | "cookie": [], 2275 | "body": "{\"@odata.context\":\"https://api.financials.dynamics.com/v1.0/M365x142550.OnMicrosoft.com/api/beta/$metadata#companies(7192822e-6ea1-49ab-b8df-288cf9d1cd63)/customers\",\"value\":[{\"@odata.etag\":\"W/\\\"JzQ0O0FZVU5yQU15bEpMb1Z6OHhIQmJGV01vQkFPdkFhSlVaMXNZN1RXMWlSQ1U9MTswMDsn\\\"\",\"id\":\"321ebd32-98cc-4209-915b-0123c62417bb\",\"number\":\"50000\",\"displayName\":\"Relecloud\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jesse.homer@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":8836.8,\"overdueAmount\":5754.96,\"totalSalesExcludingTax\":76713,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.457Z\",\"address\":{\"street\":\"25 Water Way\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3NidkdoVXgrMnBxd011TW1yb1UzQjdTanBZNjBpUml6Yng2N1dUemdrV2c9MTswMDsn\\\"\",\"id\":\"c4233376-4425-4eb1-9517-7ceea5d2f6a7\",\"number\":\"40000\",\"displayName\":\"Alpine Ski House\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"paul.cannon@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"502e8056-8412-4bdf-a1f7-a58fff1e31f3\",\"taxAreaDisplayName\":\"Atlanta, GA - North\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":4316.92,\"overdueAmount\":0,\"totalSalesExcludingTax\":61704.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.377Z\",\"address\":{\"street\":\"10 Deerfield Road\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0OzJNbWNwRXBza0M2N3FxaGNteG9IRWhib0d1ZkNibkNxWE00Wlg5ejVhRG89MTswMDsn\\\"\",\"id\":\"7e174d9d-afa3-4651-8dac-93e165291fd5\",\"number\":\"30000\",\"displayName\":\"Litware, Inc.\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"meagan.bond@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"dcee8d4f-5ea3-4aab-a105-d7b53cf9d569\",\"taxAreaDisplayName\":\"MIAMI, FL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"460d5634-ad4f-4b31-b3af-952fcf06aebf\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":53833.52,\"overdueAmount\":31848.98,\"totalSalesExcludingTax\":198604.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.303Z\",\"address\":{\"street\":\"10 High Tower Green\",\"city\":\"Miami\",\"state\":\"FL\",\"countryLetterCode\":\"US\",\"postalCode\":\"37125\"},\"paymentTerms\":{\"code\":\"CM\",\"description\":\"Current Month\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3loYWFDTEVnQ2FYc2QxelpoYWZFQTRBUEV2VTd5cHB5S0dnSVVHbExieUU9MTswMDsn\\\"\",\"id\":\"e533af1e-6f6b-4d59-b355-a8619407b2d0\",\"number\":\"10000\",\"displayName\":\"Coho Winery\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jim.glynn@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":0,\"overdueAmount\":0,\"totalSalesExcludingTax\":214536,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.13Z\",\"address\":{\"street\":\"192 Market Square\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O25SdlNmbmxSckcyRVFLVEU1d1ZZNFRoZGlpVjVGQ2FjMUtNWlByZVFOT289MTswMDsn\\\"\",\"id\":\"f86d8af3-4785-474d-8d6c-c0e4018af815\",\"number\":\"20000\",\"displayName\":\"Trey Research\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"helen.ray@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"5def96b4-c7f4-491c-8527-c0425559707f\",\"taxAreaDisplayName\":\"CHICAGO, IL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":3036.6,\"overdueAmount\":2024.4,\"totalSalesExcludingTax\":47927.4,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.217Z\",\"address\":{\"street\":\"153 Thomas Drive\",\"city\":\"Chicago\",\"state\":\"IL\",\"countryLetterCode\":\"US\",\"postalCode\":\"61236\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}}]}" 2276 | } 2277 | ] 2278 | }, 2279 | { 2280 | "name": "customers Deltatokens Copy", 2281 | "request": { 2282 | "auth": { 2283 | "type": "basic", 2284 | "basic": [ 2285 | { 2286 | "key": "username", 2287 | "value": "{{user}}", 2288 | "type": "string" 2289 | }, 2290 | { 2291 | "key": "password", 2292 | "value": "{{password}}", 2293 | "type": "string" 2294 | }, 2295 | { 2296 | "key": "saveHelperData", 2297 | "value": true, 2298 | "type": "boolean" 2299 | }, 2300 | { 2301 | "key": "showPassword", 2302 | "value": false, 2303 | "type": "boolean" 2304 | } 2305 | ] 2306 | }, 2307 | "method": "GET", 2308 | "header": [ 2309 | { 2310 | "key": "Authorization", 2311 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2312 | } 2313 | ], 2314 | "url": { 2315 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$deltatoken={{deltatoken}}", 2316 | "host": [ 2317 | "{{url}}" 2318 | ], 2319 | "path": [ 2320 | "api", 2321 | "v1.0", 2322 | "companies({{companyId}})", 2323 | "customers" 2324 | ], 2325 | "query": [ 2326 | { 2327 | "key": "$deltatoken", 2328 | "value": "{{deltatoken}}" 2329 | } 2330 | ] 2331 | } 2332 | }, 2333 | "response": [ 2334 | { 2335 | "name": "customers", 2336 | "originalRequest": { 2337 | "method": "GET", 2338 | "header": [ 2339 | { 2340 | "key": "Authorization", 2341 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 2342 | } 2343 | ], 2344 | "url": { 2345 | "raw": "{{url}}/companies({{companyId}})/customers", 2346 | "host": [ 2347 | "{{url}}" 2348 | ], 2349 | "path": [ 2350 | "companies({{companyId}})", 2351 | "customers" 2352 | ] 2353 | } 2354 | }, 2355 | "status": "OK", 2356 | "code": 200, 2357 | "_postman_previewlanguage": "json", 2358 | "header": [ 2359 | { 2360 | "key": "Access-Control-Allow-Credentials", 2361 | "value": "true", 2362 | "name": "Access-Control-Allow-Credentials", 2363 | "description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials." 2364 | }, 2365 | { 2366 | "key": "Access-Control-Allow-Headers", 2367 | "value": "Origin, X-Requested-With, Authorization", 2368 | "name": "Access-Control-Allow-Headers", 2369 | "description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request." 2370 | }, 2371 | { 2372 | "key": "Access-Control-Allow-Origin", 2373 | "value": "*", 2374 | "name": "Access-Control-Allow-Origin", 2375 | "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." 2376 | }, 2377 | { 2378 | "key": "Access-Control-Expose-Headers", 2379 | "value": "Date", 2380 | "name": "Access-Control-Expose-Headers", 2381 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2382 | }, 2383 | { 2384 | "key": "Access-Control-Expose-Headers", 2385 | "value": "Content-Length", 2386 | "name": "Access-Control-Expose-Headers", 2387 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2388 | }, 2389 | { 2390 | "key": "Access-Control-Expose-Headers", 2391 | "value": "Server", 2392 | "name": "Access-Control-Expose-Headers", 2393 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2394 | }, 2395 | { 2396 | "key": "Access-Control-Expose-Headers", 2397 | "value": "OData-Version", 2398 | "name": "Access-Control-Expose-Headers", 2399 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2400 | }, 2401 | { 2402 | "key": "Access-Control-Expose-Headers", 2403 | "value": "x-ms-correlation-id", 2404 | "name": "Access-Control-Expose-Headers", 2405 | "description": "Lets a server whitelist headers that browsers are allowed to access." 2406 | }, 2407 | { 2408 | "key": "Content-Encoding", 2409 | "value": "gzip", 2410 | "name": "Content-Encoding", 2411 | "description": "The type of encoding used on the data." 2412 | }, 2413 | { 2414 | "key": "Content-Length", 2415 | "value": "1600", 2416 | "name": "Content-Length", 2417 | "description": "The length of the response body in octets (8-bit bytes)" 2418 | }, 2419 | { 2420 | "key": "Content-Type", 2421 | "value": "application/json; odata.metadata=minimal", 2422 | "name": "Content-Type", 2423 | "description": "The mime type of this content" 2424 | }, 2425 | { 2426 | "key": "Date", 2427 | "value": "Thu, 22 Mar 2018 10:13:07 GMT", 2428 | "name": "Date", 2429 | "description": "The date and time that the message was sent" 2430 | }, 2431 | { 2432 | "key": "OData-Version", 2433 | "value": "4.0", 2434 | "name": "OData-Version", 2435 | "description": "Custom header" 2436 | }, 2437 | { 2438 | "key": "Server", 2439 | "value": "Microsoft-HTTPAPI/2.0", 2440 | "name": "Server", 2441 | "description": "A name for the server" 2442 | }, 2443 | { 2444 | "key": "request-id", 2445 | "value": "f14c4386-cc16-498f-ab75-d973b830ed16", 2446 | "name": "request-id", 2447 | "description": "Custom header" 2448 | }, 2449 | { 2450 | "key": "x-content-type-options", 2451 | "value": "nosniff", 2452 | "name": "x-content-type-options", 2453 | "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" 2454 | }, 2455 | { 2456 | "key": "x-ms-correlation-id", 2457 | "value": "9c7532af-e6c3-453e-9f12-0f0c78ab393f", 2458 | "name": "x-ms-correlation-id", 2459 | "description": "Custom header" 2460 | } 2461 | ], 2462 | "cookie": [], 2463 | "body": "{\"@odata.context\":\"https://api.financials.dynamics.com/v1.0/M365x142550.OnMicrosoft.com/api/beta/$metadata#companies(7192822e-6ea1-49ab-b8df-288cf9d1cd63)/customers\",\"value\":[{\"@odata.etag\":\"W/\\\"JzQ0O0FZVU5yQU15bEpMb1Z6OHhIQmJGV01vQkFPdkFhSlVaMXNZN1RXMWlSQ1U9MTswMDsn\\\"\",\"id\":\"321ebd32-98cc-4209-915b-0123c62417bb\",\"number\":\"50000\",\"displayName\":\"Relecloud\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jesse.homer@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":8836.8,\"overdueAmount\":5754.96,\"totalSalesExcludingTax\":76713,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.457Z\",\"address\":{\"street\":\"25 Water Way\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3NidkdoVXgrMnBxd011TW1yb1UzQjdTanBZNjBpUml6Yng2N1dUemdrV2c9MTswMDsn\\\"\",\"id\":\"c4233376-4425-4eb1-9517-7ceea5d2f6a7\",\"number\":\"40000\",\"displayName\":\"Alpine Ski House\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"paul.cannon@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"502e8056-8412-4bdf-a1f7-a58fff1e31f3\",\"taxAreaDisplayName\":\"Atlanta, GA - North\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":4316.92,\"overdueAmount\":0,\"totalSalesExcludingTax\":61704.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.377Z\",\"address\":{\"street\":\"10 Deerfield Road\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0OzJNbWNwRXBza0M2N3FxaGNteG9IRWhib0d1ZkNibkNxWE00Wlg5ejVhRG89MTswMDsn\\\"\",\"id\":\"7e174d9d-afa3-4651-8dac-93e165291fd5\",\"number\":\"30000\",\"displayName\":\"Litware, Inc.\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"meagan.bond@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"dcee8d4f-5ea3-4aab-a105-d7b53cf9d569\",\"taxAreaDisplayName\":\"MIAMI, FL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"460d5634-ad4f-4b31-b3af-952fcf06aebf\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":53833.52,\"overdueAmount\":31848.98,\"totalSalesExcludingTax\":198604.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.303Z\",\"address\":{\"street\":\"10 High Tower Green\",\"city\":\"Miami\",\"state\":\"FL\",\"countryLetterCode\":\"US\",\"postalCode\":\"37125\"},\"paymentTerms\":{\"code\":\"CM\",\"description\":\"Current Month\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3loYWFDTEVnQ2FYc2QxelpoYWZFQTRBUEV2VTd5cHB5S0dnSVVHbExieUU9MTswMDsn\\\"\",\"id\":\"e533af1e-6f6b-4d59-b355-a8619407b2d0\",\"number\":\"10000\",\"displayName\":\"Coho Winery\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jim.glynn@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":0,\"overdueAmount\":0,\"totalSalesExcludingTax\":214536,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.13Z\",\"address\":{\"street\":\"192 Market Square\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O25SdlNmbmxSckcyRVFLVEU1d1ZZNFRoZGlpVjVGQ2FjMUtNWlByZVFOT289MTswMDsn\\\"\",\"id\":\"f86d8af3-4785-474d-8d6c-c0e4018af815\",\"number\":\"20000\",\"displayName\":\"Trey Research\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"helen.ray@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"5def96b4-c7f4-491c-8527-c0425559707f\",\"taxAreaDisplayName\":\"CHICAGO, IL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":3036.6,\"overdueAmount\":2024.4,\"totalSalesExcludingTax\":47927.4,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.217Z\",\"address\":{\"street\":\"153 Thomas Drive\",\"city\":\"Chicago\",\"state\":\"IL\",\"countryLetterCode\":\"US\",\"postalCode\":\"61236\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}}]}" 2464 | } 2465 | ] 2466 | }, 2467 | { 2468 | "name": "customerSales", 2469 | "event": [ 2470 | { 2471 | "listen": "test", 2472 | "script": { 2473 | "exec": [ 2474 | "pm.test(\"Body matches string - a CRONUS company was found\", function () {", 2475 | " pm.expect(pm.response.text()).to.include(\"CRONUS\");", 2476 | "});", 2477 | "", 2478 | "tests[\"Status code is 200\"] = responseCode.code === 200;", 2479 | "", 2480 | "", 2481 | "", 2482 | "", 2483 | "", 2484 | "", 2485 | "var schema = {", 2486 | " \"$id\": \"http://example.com/example.json\",", 2487 | " \"type\": \"object\",", 2488 | " \"definitions\": {},", 2489 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 2490 | " \"properties\": {", 2491 | " \"@odata.context\": {", 2492 | " \"$id\": \"/properties/@odata.context\",", 2493 | " \"type\": \"string\",", 2494 | " \"title\": \"The @odata.context Schema \",", 2495 | " \"default\": \"\",", 2496 | " \"examples\": [", 2497 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 2498 | " ]", 2499 | " },", 2500 | " \"id\": {", 2501 | " \"$id\": \"/properties/id\",", 2502 | " \"type\": \"string\",", 2503 | " \"title\": \"The Id Schema \",", 2504 | " \"default\": \"\",", 2505 | " \"examples\": [", 2506 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 2507 | " ]", 2508 | " },", 2509 | " \"systemVersion\": {", 2510 | " \"$id\": \"/properties/systemVersion\",", 2511 | " \"type\": \"string\",", 2512 | " \"title\": \"The Systemversion Schema \",", 2513 | " \"default\": \"\",", 2514 | " \"examples\": [", 2515 | " \"23720\"", 2516 | " ]", 2517 | " },", 2518 | " \"name\": {", 2519 | " \"$id\": \"/properties/name\",", 2520 | " \"type\": \"string\",", 2521 | " \"title\": \"The Name Schema \",", 2522 | " \"default\": \"\",", 2523 | " \"examples\": [", 2524 | " \"CRONUS Danmark A/S\"", 2525 | " ]", 2526 | " },", 2527 | " \"displayName\": {", 2528 | " \"$id\": \"/properties/displayName\",", 2529 | " \"type\": \"string\",", 2530 | " \"title\": \"The Displayname Schema \",", 2531 | " \"default\": \"\",", 2532 | " \"examples\": [", 2533 | " \"CRONUS Danmark A/S\"", 2534 | " ]", 2535 | " },", 2536 | " \"businessProfileId\": {", 2537 | " \"$id\": \"/properties/businessProfileId\",", 2538 | " \"type\": \"string\",", 2539 | " \"title\": \"The Businessprofileid Schema \",", 2540 | " \"default\": \"\",", 2541 | " \"examples\": [", 2542 | " \"\"", 2543 | " ]", 2544 | " }", 2545 | " }", 2546 | "};", 2547 | "", 2548 | "", 2549 | "", 2550 | "", 2551 | "", 2552 | "", 2553 | "pm.test(\"Body matches string\", function () {", 2554 | " ", 2555 | " var jsonData = pm.response.json();", 2556 | " ", 2557 | " console.log(\"id\" + JSON.stringify(jsonData));", 2558 | " //pm.expect(jsonData.value.length).to.eql(43);", 2559 | "", 2560 | "", 2561 | "pm.expect(tv4.validate(jsonData, schema)).to.be.true;", 2562 | "});", 2563 | "", 2564 | "", 2565 | "", 2566 | "var badSchema = {", 2567 | " \"$id\": \"http://example.com/example.json\",", 2568 | " \"type\": \"object\",", 2569 | " \"definitions\": {},", 2570 | " \"$schema\": \"http://json-schema.org/draft-07/schema#\",", 2571 | " \"properties\": {", 2572 | " \"@odatacontext\": {", 2573 | " \"$id\": \"/properties/@odata.context\",", 2574 | " \"type\": \"string\",", 2575 | " \"title\": \"The @odata.context Schema \",", 2576 | " \"default\": \"\",", 2577 | " \"examples\": [", 2578 | " \"https://api.businesscentral.dynamics-tie.com/v1.0/21a44bbd-7658-4701-8662-1a7764053819/api/beta/$metadata#companies/$entity\"", 2579 | " ]", 2580 | " },", 2581 | " \"idMISSING\": {", 2582 | " \"$id\": \"/properties/id\",", 2583 | " \"type\": \"string\",", 2584 | " \"title\": \"The Id Schema \",", 2585 | " \"default\": \"\",", 2586 | " \"examples\": [", 2587 | " \"b5a76e55-5e18-4b03-91c8-95d4ec3a7ff3\"", 2588 | " ]", 2589 | " },", 2590 | " \"systemVersion\": {", 2591 | " \"$id\": \"/properties/systemVersion\",", 2592 | " \"type\": \"string\",", 2593 | " \"title\": \"The Systemversion Schema \",", 2594 | " \"default\": \"\",", 2595 | " \"examples\": [", 2596 | " \"23720\"", 2597 | " ]", 2598 | " },", 2599 | " \"name\": {", 2600 | " \"$id\": \"/properties/name\",", 2601 | " \"type\": \"string\",", 2602 | " \"title\": \"The Name Schema \",", 2603 | " \"default\": \"\",", 2604 | " \"examples\": [", 2605 | " \"CRONUS Danmark A/S\"", 2606 | " ]", 2607 | " },", 2608 | " \"displayName\": {", 2609 | " \"$id\": \"/properties/displayName\",", 2610 | " \"type\": \"string\",", 2611 | " \"title\": \"The Displayname Schema \",", 2612 | " \"default\": \"\",", 2613 | " \"examples\": [", 2614 | " \"CRONUS Danmark A/S\"", 2615 | " ]", 2616 | " },", 2617 | " \"businessProfileId\": {", 2618 | " \"$id\": \"/properties/businessProfileId\",", 2619 | " \"type\": \"string\",", 2620 | " \"title\": \"The Businessprofileid Schema \",", 2621 | " \"default\": \"\",", 2622 | " \"examples\": [", 2623 | " \"\"", 2624 | " ]", 2625 | " }", 2626 | " }", 2627 | "};", 2628 | "", 2629 | "", 2630 | "", 2631 | "", 2632 | "", 2633 | "pm.test(\"Bad Schema should not validate\", function () {", 2634 | " ", 2635 | " var jsonData = pm.response.json();", 2636 | " ", 2637 | " console.log(\"id\" + JSON.stringify(jsonData));", 2638 | " //pm.expect(jsonData.value.length).to.eql(43);", 2639 | "", 2640 | "//HWH: Fix - this is always true. Change schema and make it fail", 2641 | "pm.expect(tv4.validate(jsonData, schema)).to.be.false;", 2642 | "});" 2643 | ], 2644 | "type": "text/javascript" 2645 | } 2646 | } 2647 | ], 2648 | "request": { 2649 | "auth": { 2650 | "type": "basic", 2651 | "basic": [ 2652 | { 2653 | "key": "username", 2654 | "value": "{{user}}", 2655 | "type": "string" 2656 | }, 2657 | { 2658 | "key": "password", 2659 | "value": "{{password}}", 2660 | "type": "string" 2661 | }, 2662 | { 2663 | "key": "saveHelperData", 2664 | "value": true, 2665 | "type": "boolean" 2666 | }, 2667 | { 2668 | "key": "showPassword", 2669 | "value": false, 2670 | "type": "boolean" 2671 | } 2672 | ] 2673 | }, 2674 | "method": "GET", 2675 | "header": [], 2676 | "url": { 2677 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customerSales", 2678 | "host": [ 2679 | "{{url}}" 2680 | ], 2681 | "path": [ 2682 | "api", 2683 | "v1.0", 2684 | "companies({{companyId}})", 2685 | "customerSales" 2686 | ] 2687 | } 2688 | }, 2689 | "response": [] 2690 | }, 2691 | { 2692 | "name": "customers", 2693 | "request": { 2694 | "auth": { 2695 | "type": "basic", 2696 | "basic": [ 2697 | { 2698 | "key": "username", 2699 | "value": "{{user}}", 2700 | "type": "string" 2701 | }, 2702 | { 2703 | "key": "password", 2704 | "value": "{{password}}", 2705 | "type": "string" 2706 | }, 2707 | { 2708 | "key": "saveHelperData", 2709 | "type": "any" 2710 | }, 2711 | { 2712 | "key": "showPassword", 2713 | "value": false, 2714 | "type": "boolean" 2715 | } 2716 | ] 2717 | }, 2718 | "method": "POST", 2719 | "header": [ 2720 | { 2721 | "key": "Content-Type", 2722 | "value": "application/json" 2723 | }, 2724 | { 2725 | "key": "If-Match", 2726 | "value": "*" 2727 | }, 2728 | { 2729 | "key": "Authorization", 2730 | "value": "Basic cGJvcnJpbmc6Wi9wQUZrdW4ya2hPanZwVldQeGlMMnpGMWZLR0NjanA2UGJvV2NZcnNqMD0=" 2731 | } 2732 | ], 2733 | "body": { 2734 | "mode": "raw", 2735 | "raw": " {\n \"displayName\": \"Business Central Training\"\n }" 2736 | }, 2737 | "url": { 2738 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers", 2739 | "host": [ 2740 | "{{url}}" 2741 | ], 2742 | "path": [ 2743 | "api", 2744 | "v1.0", 2745 | "companies({{companyId}})", 2746 | "customers" 2747 | ] 2748 | } 2749 | }, 2750 | "response": [] 2751 | }, 2752 | { 2753 | "name": "paymentterms", 2754 | "request": { 2755 | "auth": { 2756 | "type": "basic", 2757 | "basic": [ 2758 | { 2759 | "key": "username", 2760 | "value": "{{user}}", 2761 | "type": "string" 2762 | }, 2763 | { 2764 | "key": "password", 2765 | "value": "{{password}}", 2766 | "type": "string" 2767 | }, 2768 | { 2769 | "key": "saveHelperData", 2770 | "value": true, 2771 | "type": "boolean" 2772 | }, 2773 | { 2774 | "key": "showPassword", 2775 | "value": false, 2776 | "type": "boolean" 2777 | } 2778 | ] 2779 | }, 2780 | "method": "GET", 2781 | "header": [], 2782 | "url": { 2783 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/paymentTerms", 2784 | "host": [ 2785 | "{{url}}" 2786 | ], 2787 | "path": [ 2788 | "api", 2789 | "v1.0", 2790 | "companies({{companyId}})", 2791 | "paymentTerms" 2792 | ] 2793 | } 2794 | }, 2795 | "response": [] 2796 | } 2797 | ] 2798 | }, 2799 | { 2800 | "name": "Quotes", 2801 | "item": [ 2802 | { 2803 | "name": "salesQuotes", 2804 | "request": { 2805 | "auth": { 2806 | "type": "basic", 2807 | "basic": [ 2808 | { 2809 | "key": "username", 2810 | "value": "{{user}}", 2811 | "type": "string" 2812 | }, 2813 | { 2814 | "key": "password", 2815 | "value": "{{password}}", 2816 | "type": "string" 2817 | }, 2818 | { 2819 | "key": "saveHelperData", 2820 | "value": true, 2821 | "type": "boolean" 2822 | }, 2823 | { 2824 | "key": "showPassword", 2825 | "value": false, 2826 | "type": "boolean" 2827 | } 2828 | ] 2829 | }, 2830 | "method": "GET", 2831 | "header": [], 2832 | "url": { 2833 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesQuotes", 2834 | "host": [ 2835 | "{{url}}" 2836 | ], 2837 | "path": [ 2838 | "api", 2839 | "v1.0", 2840 | "companies({{companyId}})", 2841 | "salesQuotes" 2842 | ] 2843 | } 2844 | }, 2845 | "response": [] 2846 | }, 2847 | { 2848 | "name": "salesQuotes(id)", 2849 | "request": { 2850 | "auth": { 2851 | "type": "basic", 2852 | "basic": [ 2853 | { 2854 | "key": "username", 2855 | "value": "{{user}}", 2856 | "type": "string" 2857 | }, 2858 | { 2859 | "key": "password", 2860 | "value": "{{password}}", 2861 | "type": "string" 2862 | }, 2863 | { 2864 | "key": "saveHelperData", 2865 | "value": true, 2866 | "type": "boolean" 2867 | }, 2868 | { 2869 | "key": "showPassword", 2870 | "value": false, 2871 | "type": "boolean" 2872 | } 2873 | ] 2874 | }, 2875 | "method": "GET", 2876 | "header": [], 2877 | "url": { 2878 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesQuotes({{salesQuoteId}})", 2879 | "host": [ 2880 | "{{url}}" 2881 | ], 2882 | "path": [ 2883 | "api", 2884 | "v1.0", 2885 | "companies({{companyId}})", 2886 | "salesQuotes({{salesQuoteId}})" 2887 | ] 2888 | } 2889 | }, 2890 | "response": [] 2891 | }, 2892 | { 2893 | "name": "salesQuotes lines", 2894 | "request": { 2895 | "auth": { 2896 | "type": "basic", 2897 | "basic": [ 2898 | { 2899 | "key": "username", 2900 | "value": "{{user}}", 2901 | "type": "string" 2902 | }, 2903 | { 2904 | "key": "password", 2905 | "value": "{{password}}", 2906 | "type": "string" 2907 | }, 2908 | { 2909 | "key": "saveHelperData", 2910 | "value": true, 2911 | "type": "boolean" 2912 | }, 2913 | { 2914 | "key": "showPassword", 2915 | "value": false, 2916 | "type": "boolean" 2917 | } 2918 | ] 2919 | }, 2920 | "method": "GET", 2921 | "header": [], 2922 | "url": { 2923 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesQuotes({{salesQuoteId}})/?$expand=salesQuoteLines", 2924 | "host": [ 2925 | "{{url}}" 2926 | ], 2927 | "path": [ 2928 | "api", 2929 | "v1.0", 2930 | "companies({{companyId}})", 2931 | "salesQuotes({{salesQuoteId}})", 2932 | "" 2933 | ], 2934 | "query": [ 2935 | { 2936 | "key": "$expand", 2937 | "value": "salesQuoteLines" 2938 | } 2939 | ] 2940 | } 2941 | }, 2942 | "response": [] 2943 | }, 2944 | { 2945 | "name": "salesQuotesLine", 2946 | "request": { 2947 | "auth": { 2948 | "type": "basic", 2949 | "basic": [ 2950 | { 2951 | "key": "username", 2952 | "value": "{{user}}", 2953 | "type": "string" 2954 | }, 2955 | { 2956 | "key": "password", 2957 | "value": "{{password}}", 2958 | "type": "string" 2959 | }, 2960 | { 2961 | "key": "saveHelperData", 2962 | "value": true, 2963 | "type": "boolean" 2964 | }, 2965 | { 2966 | "key": "showPassword", 2967 | "value": false, 2968 | "type": "boolean" 2969 | } 2970 | ] 2971 | }, 2972 | "method": "POST", 2973 | "header": [ 2974 | { 2975 | "key": "Content-Type", 2976 | "name": "Content-Type", 2977 | "value": "application/json", 2978 | "type": "text" 2979 | } 2980 | ], 2981 | "body": { 2982 | "mode": "raw", 2983 | "raw": "{\n \"itemId\": \"{{itemId}}\",\n \"quantity\": 2\n}" 2984 | }, 2985 | "url": { 2986 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesQuotes({{salesQuoteId}})/salesQuoteLines", 2987 | "host": [ 2988 | "{{url}}" 2989 | ], 2990 | "path": [ 2991 | "api", 2992 | "v1.0", 2993 | "companies({{companyId}})", 2994 | "salesQuotes({{salesQuoteId}})", 2995 | "salesQuoteLines" 2996 | ] 2997 | } 2998 | }, 2999 | "response": [] 3000 | }, 3001 | { 3002 | "name": "salesQuotes deep insert", 3003 | "request": { 3004 | "auth": { 3005 | "type": "basic", 3006 | "basic": [ 3007 | { 3008 | "key": "username", 3009 | "value": "{{user}}", 3010 | "type": "string" 3011 | }, 3012 | { 3013 | "key": "password", 3014 | "value": "{{password}}", 3015 | "type": "string" 3016 | }, 3017 | { 3018 | "key": "saveHelperData", 3019 | "value": true, 3020 | "type": "boolean" 3021 | }, 3022 | { 3023 | "key": "showPassword", 3024 | "value": false, 3025 | "type": "boolean" 3026 | } 3027 | ] 3028 | }, 3029 | "method": "POST", 3030 | "header": [ 3031 | { 3032 | "key": "Content-Type", 3033 | "name": "Content-Type", 3034 | "type": "text", 3035 | "value": "application/json" 3036 | } 3037 | ], 3038 | "body": { 3039 | "mode": "raw", 3040 | "raw": "{\n\t\"customerId\": \"{{customerId}}\",\n\t \"salesQuoteLines\" : \n\t\t[\n\t\t{\"itemId\": \"{{itemId}}\", \"quantity\": 4}\n\t\t]\n}" 3041 | }, 3042 | "url": { 3043 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesQuotes", 3044 | "host": [ 3045 | "{{url}}" 3046 | ], 3047 | "path": [ 3048 | "api", 3049 | "v1.0", 3050 | "companies({{companyId}})", 3051 | "salesQuotes" 3052 | ] 3053 | } 3054 | }, 3055 | "response": [] 3056 | } 3057 | ] 3058 | }, 3059 | { 3060 | "name": "Orders", 3061 | "item": [ 3062 | { 3063 | "name": "salesOrders", 3064 | "request": { 3065 | "auth": { 3066 | "type": "basic", 3067 | "basic": [ 3068 | { 3069 | "key": "username", 3070 | "value": "{{user}}", 3071 | "type": "string" 3072 | }, 3073 | { 3074 | "key": "password", 3075 | "value": "{{password}}", 3076 | "type": "string" 3077 | }, 3078 | { 3079 | "key": "saveHelperData", 3080 | "value": true, 3081 | "type": "boolean" 3082 | }, 3083 | { 3084 | "key": "showPassword", 3085 | "value": false, 3086 | "type": "boolean" 3087 | } 3088 | ] 3089 | }, 3090 | "method": "GET", 3091 | "header": [], 3092 | "url": { 3093 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders", 3094 | "host": [ 3095 | "{{url}}" 3096 | ], 3097 | "path": [ 3098 | "api", 3099 | "v1.0", 3100 | "companies({{companyId}})", 3101 | "salesOrders" 3102 | ] 3103 | } 3104 | }, 3105 | "response": [] 3106 | }, 3107 | { 3108 | "name": "salesOrder $expand", 3109 | "request": { 3110 | "auth": { 3111 | "type": "basic", 3112 | "basic": [ 3113 | { 3114 | "key": "username", 3115 | "value": "{{user}}", 3116 | "type": "string" 3117 | }, 3118 | { 3119 | "key": "password", 3120 | "value": "{{password}}", 3121 | "type": "string" 3122 | }, 3123 | { 3124 | "key": "saveHelperData", 3125 | "value": true, 3126 | "type": "boolean" 3127 | }, 3128 | { 3129 | "key": "showPassword", 3130 | "value": false, 3131 | "type": "boolean" 3132 | } 3133 | ] 3134 | }, 3135 | "method": "GET", 3136 | "header": [], 3137 | "url": { 3138 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders({{salesOrderId}})?$expand=salesOrderLines", 3139 | "host": [ 3140 | "{{url}}" 3141 | ], 3142 | "path": [ 3143 | "api", 3144 | "v1.0", 3145 | "companies({{companyId}})", 3146 | "salesOrders({{salesOrderId}})" 3147 | ], 3148 | "query": [ 3149 | { 3150 | "key": "$expand", 3151 | "value": "salesOrderLines" 3152 | } 3153 | ] 3154 | } 3155 | }, 3156 | "response": [] 3157 | }, 3158 | { 3159 | "name": "salesOrderLines", 3160 | "request": { 3161 | "auth": { 3162 | "type": "basic", 3163 | "basic": [ 3164 | { 3165 | "key": "username", 3166 | "value": "{{user}}", 3167 | "type": "string" 3168 | }, 3169 | { 3170 | "key": "password", 3171 | "value": "{{password}}", 3172 | "type": "string" 3173 | }, 3174 | { 3175 | "key": "saveHelperData", 3176 | "value": true, 3177 | "type": "boolean" 3178 | }, 3179 | { 3180 | "key": "showPassword", 3181 | "value": false, 3182 | "type": "boolean" 3183 | } 3184 | ] 3185 | }, 3186 | "method": "GET", 3187 | "header": [], 3188 | "url": { 3189 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders({{salesOrderId}})/salesOrderLines", 3190 | "host": [ 3191 | "{{url}}" 3192 | ], 3193 | "path": [ 3194 | "api", 3195 | "v1.0", 3196 | "companies({{companyId}})", 3197 | "salesOrders({{salesOrderId}})", 3198 | "salesOrderLines" 3199 | ] 3200 | } 3201 | }, 3202 | "response": [] 3203 | }, 3204 | { 3205 | "name": "salesorder", 3206 | "request": { 3207 | "auth": { 3208 | "type": "basic", 3209 | "basic": [ 3210 | { 3211 | "key": "username", 3212 | "value": "{{user}}", 3213 | "type": "string" 3214 | }, 3215 | { 3216 | "key": "password", 3217 | "value": "{{password}}", 3218 | "type": "string" 3219 | }, 3220 | { 3221 | "key": "saveHelperData", 3222 | "value": true, 3223 | "type": "boolean" 3224 | }, 3225 | { 3226 | "key": "showPassword", 3227 | "value": false, 3228 | "type": "boolean" 3229 | } 3230 | ] 3231 | }, 3232 | "method": "POST", 3233 | "header": [ 3234 | { 3235 | "key": "Content-Type", 3236 | "name": "Content-Type", 3237 | "value": "application/json", 3238 | "type": "text" 3239 | } 3240 | ], 3241 | "body": { 3242 | "mode": "raw", 3243 | "raw": "{\r\n \"customerId\": \"{{customerId}}\",\r\n \"currencyCode\": \"USD\",\r\n \"paymentTermsId\": \"{{paymentTermsId}}\",\r\n \"salesOrderLines\": [\r\n\t{\r\n\t\t\"itemId\": \"{{itemId}}\",\r\n\t\t\"quantity\": 1\r\n\t},\r\n\t{\r\n\t\t\r\n\t}\r\n ]\r\n}" 3244 | }, 3245 | "url": { 3246 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders", 3247 | "host": [ 3248 | "{{url}}" 3249 | ], 3250 | "path": [ 3251 | "api", 3252 | "v1.0", 3253 | "companies({{companyId}})", 3254 | "salesOrders" 3255 | ] 3256 | } 3257 | }, 3258 | "response": [] 3259 | }, 3260 | { 3261 | "name": "Create salesOrders", 3262 | "request": { 3263 | "auth": { 3264 | "type": "basic", 3265 | "basic": [ 3266 | { 3267 | "key": "username", 3268 | "value": "{{user}}", 3269 | "type": "string" 3270 | }, 3271 | { 3272 | "key": "password", 3273 | "value": "{{password}}", 3274 | "type": "string" 3275 | }, 3276 | { 3277 | "key": "saveHelperData", 3278 | "value": true, 3279 | "type": "boolean" 3280 | }, 3281 | { 3282 | "key": "showPassword", 3283 | "value": false, 3284 | "type": "boolean" 3285 | } 3286 | ] 3287 | }, 3288 | "method": "POST", 3289 | "header": [ 3290 | { 3291 | "key": "Content-Type", 3292 | "value": "application/json" 3293 | } 3294 | ], 3295 | "body": { 3296 | "mode": "raw", 3297 | "raw": "{ \n\t\t\n \"customerId\": \"{{customerId}}\",\n \"contactId\": \"\"\n\n}" 3298 | }, 3299 | "url": { 3300 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders", 3301 | "host": [ 3302 | "{{url}}" 3303 | ], 3304 | "path": [ 3305 | "api", 3306 | "v1.0", 3307 | "companies({{companyId}})", 3308 | "salesOrders" 3309 | ] 3310 | } 3311 | }, 3312 | "response": [] 3313 | }, 3314 | { 3315 | "name": "Create salesOrders deep insert", 3316 | "request": { 3317 | "auth": { 3318 | "type": "basic", 3319 | "basic": [ 3320 | { 3321 | "key": "username", 3322 | "value": "{{user}}", 3323 | "type": "string" 3324 | }, 3325 | { 3326 | "key": "password", 3327 | "value": "{{password}}", 3328 | "type": "string" 3329 | }, 3330 | { 3331 | "key": "saveHelperData", 3332 | "value": true, 3333 | "type": "boolean" 3334 | }, 3335 | { 3336 | "key": "showPassword", 3337 | "value": false, 3338 | "type": "boolean" 3339 | } 3340 | ] 3341 | }, 3342 | "method": "POST", 3343 | "header": [ 3344 | { 3345 | "key": "Content-Type", 3346 | "value": "application/json" 3347 | }, 3348 | { 3349 | "key": "Prefer", 3350 | "value": "return-no-content", 3351 | "type": "text", 3352 | "disabled": true 3353 | } 3354 | ], 3355 | "body": { 3356 | "mode": "raw", 3357 | "raw": "{ \t\n \"customerId\": \"{{customerId}}\",\n \"salesOrderLines\": [\n {\n \"itemId\": \"{{itemId}}\",\n \"quantity\": 1\n },\n {\n \"itemId\": \"{{itemId2}}\",\n \"quantity\": 6\n }\n ]\n}" 3358 | }, 3359 | "url": { 3360 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders?$expand=salesOrderLines", 3361 | "host": [ 3362 | "{{url}}" 3363 | ], 3364 | "path": [ 3365 | "api", 3366 | "v1.0", 3367 | "companies({{companyId}})", 3368 | "salesOrders" 3369 | ], 3370 | "query": [ 3371 | { 3372 | "key": "$expand", 3373 | "value": "salesOrderLines" 3374 | } 3375 | ] 3376 | } 3377 | }, 3378 | "response": [] 3379 | }, 3380 | { 3381 | "name": "create salesOrderLines", 3382 | "request": { 3383 | "auth": { 3384 | "type": "basic", 3385 | "basic": [ 3386 | { 3387 | "key": "username", 3388 | "value": "{{user}}", 3389 | "type": "string" 3390 | }, 3391 | { 3392 | "key": "password", 3393 | "value": "{{password}}", 3394 | "type": "string" 3395 | }, 3396 | { 3397 | "key": "saveHelperData", 3398 | "value": true, 3399 | "type": "boolean" 3400 | }, 3401 | { 3402 | "key": "showPassword", 3403 | "value": false, 3404 | "type": "boolean" 3405 | } 3406 | ] 3407 | }, 3408 | "method": "POST", 3409 | "header": [], 3410 | "body": { 3411 | "mode": "raw", 3412 | "raw": " {\n \n \"itemId\": \"{{itemId}}\",\n \"quantity\": 2\n \n }" 3413 | }, 3414 | "url": { 3415 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders({{salesOrderId}})/salesOrderLines", 3416 | "host": [ 3417 | "{{url}}" 3418 | ], 3419 | "path": [ 3420 | "api", 3421 | "v1.0", 3422 | "companies({{companyId}})", 3423 | "salesOrders({{salesOrderId}})", 3424 | "salesOrderLines" 3425 | ] 3426 | } 3427 | }, 3428 | "response": [] 3429 | }, 3430 | { 3431 | "name": "salesOrders(id)", 3432 | "request": { 3433 | "auth": { 3434 | "type": "basic", 3435 | "basic": [ 3436 | { 3437 | "key": "username", 3438 | "value": "{{user}}", 3439 | "type": "string" 3440 | }, 3441 | { 3442 | "key": "password", 3443 | "value": "{{password}}", 3444 | "type": "string" 3445 | }, 3446 | { 3447 | "key": "saveHelperData", 3448 | "value": true, 3449 | "type": "boolean" 3450 | }, 3451 | { 3452 | "key": "showPassword", 3453 | "value": false, 3454 | "type": "boolean" 3455 | } 3456 | ] 3457 | }, 3458 | "method": "GET", 3459 | "header": [], 3460 | "url": { 3461 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders({{salesOrderId}})/?$expand=salesOrderLines,customer($select=displayName, phoneNumber)", 3462 | "host": [ 3463 | "{{url}}" 3464 | ], 3465 | "path": [ 3466 | "api", 3467 | "v1.0", 3468 | "companies({{companyId}})", 3469 | "salesOrders({{salesOrderId}})", 3470 | "" 3471 | ], 3472 | "query": [ 3473 | { 3474 | "key": "$expand", 3475 | "value": "salesOrderLines,customer($select=displayName, phoneNumber)" 3476 | } 3477 | ] 3478 | } 3479 | }, 3480 | "response": [] 3481 | } 3482 | ] 3483 | }, 3484 | { 3485 | "name": "Invoices", 3486 | "item": [ 3487 | { 3488 | "name": "salesInvoices", 3489 | "request": { 3490 | "auth": { 3491 | "type": "basic", 3492 | "basic": [ 3493 | { 3494 | "key": "username", 3495 | "value": "{{user}}", 3496 | "type": "string" 3497 | }, 3498 | { 3499 | "key": "password", 3500 | "value": "{{password}}", 3501 | "type": "string" 3502 | }, 3503 | { 3504 | "key": "saveHelperData", 3505 | "value": true, 3506 | "type": "boolean" 3507 | }, 3508 | { 3509 | "key": "showPassword", 3510 | "value": false, 3511 | "type": "boolean" 3512 | } 3513 | ] 3514 | }, 3515 | "method": "GET", 3516 | "header": [], 3517 | "url": { 3518 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices", 3519 | "host": [ 3520 | "{{url}}" 3521 | ], 3522 | "path": [ 3523 | "api", 3524 | "v1.0", 3525 | "companies({{companyId}})", 3526 | "salesInvoices" 3527 | ] 3528 | } 3529 | }, 3530 | "response": [] 3531 | }, 3532 | { 3533 | "name": "salesInvoices $expand lines", 3534 | "request": { 3535 | "auth": { 3536 | "type": "basic", 3537 | "basic": [ 3538 | { 3539 | "key": "username", 3540 | "value": "{{user}}", 3541 | "type": "string" 3542 | }, 3543 | { 3544 | "key": "password", 3545 | "value": "{{password}}", 3546 | "type": "string" 3547 | }, 3548 | { 3549 | "key": "saveHelperData", 3550 | "value": true, 3551 | "type": "boolean" 3552 | }, 3553 | { 3554 | "key": "showPassword", 3555 | "value": false, 3556 | "type": "boolean" 3557 | } 3558 | ] 3559 | }, 3560 | "method": "GET", 3561 | "header": [], 3562 | "url": { 3563 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices?$expand=salesInvoiceLines", 3564 | "host": [ 3565 | "{{url}}" 3566 | ], 3567 | "path": [ 3568 | "api", 3569 | "v1.0", 3570 | "companies({{companyId}})", 3571 | "salesInvoices" 3572 | ], 3573 | "query": [ 3574 | { 3575 | "key": "$expand", 3576 | "value": "salesInvoiceLines" 3577 | } 3578 | ] 3579 | } 3580 | }, 3581 | "response": [] 3582 | }, 3583 | { 3584 | "name": "salesInvoices $expand multiple", 3585 | "request": { 3586 | "auth": { 3587 | "type": "basic", 3588 | "basic": [ 3589 | { 3590 | "key": "username", 3591 | "value": "{{user}}", 3592 | "type": "string" 3593 | }, 3594 | { 3595 | "key": "password", 3596 | "value": "{{password}}", 3597 | "type": "string" 3598 | }, 3599 | { 3600 | "key": "saveHelperData", 3601 | "type": "any" 3602 | }, 3603 | { 3604 | "key": "showPassword", 3605 | "value": false, 3606 | "type": "boolean" 3607 | } 3608 | ] 3609 | }, 3610 | "method": "GET", 3611 | "header": [], 3612 | "url": { 3613 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/?$expand=salesInvoiceLines,customer,paymentTerm,shipmentMethod", 3614 | "host": [ 3615 | "{{url}}" 3616 | ], 3617 | "path": [ 3618 | "api", 3619 | "v1.0", 3620 | "companies({{companyId}})", 3621 | "salesInvoices({{salesInvoiceId}})", 3622 | "" 3623 | ], 3624 | "query": [ 3625 | { 3626 | "key": "$expand", 3627 | "value": "salesInvoiceLines,customer,paymentTerm,shipmentMethod" 3628 | } 3629 | ] 3630 | } 3631 | }, 3632 | "response": [] 3633 | }, 3634 | { 3635 | "name": "salesInvoices $expand customer number", 3636 | "request": { 3637 | "auth": { 3638 | "type": "basic", 3639 | "basic": [ 3640 | { 3641 | "key": "username", 3642 | "value": "{{user}}", 3643 | "type": "string" 3644 | }, 3645 | { 3646 | "key": "password", 3647 | "value": "{{password}}", 3648 | "type": "string" 3649 | }, 3650 | { 3651 | "key": "saveHelperData", 3652 | "type": "any" 3653 | }, 3654 | { 3655 | "key": "showPassword", 3656 | "value": false, 3657 | "type": "boolean" 3658 | } 3659 | ] 3660 | }, 3661 | "method": "GET", 3662 | "header": [], 3663 | "url": { 3664 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})?$expand=customer($select=number), salesInvoiceLines", 3665 | "host": [ 3666 | "{{url}}" 3667 | ], 3668 | "path": [ 3669 | "api", 3670 | "v1.0", 3671 | "companies({{companyId}})", 3672 | "salesInvoices({{salesInvoiceId}})" 3673 | ], 3674 | "query": [ 3675 | { 3676 | "key": "$expand", 3677 | "value": "customer($select=number), salesInvoiceLines" 3678 | } 3679 | ] 3680 | } 3681 | }, 3682 | "response": [] 3683 | }, 3684 | { 3685 | "name": "salesInvoiceLines", 3686 | "request": { 3687 | "auth": { 3688 | "type": "basic", 3689 | "basic": [ 3690 | { 3691 | "key": "username", 3692 | "value": "{{user}}", 3693 | "type": "string" 3694 | }, 3695 | { 3696 | "key": "password", 3697 | "value": "{{password}}", 3698 | "type": "string" 3699 | }, 3700 | { 3701 | "key": "saveHelperData", 3702 | "value": true, 3703 | "type": "boolean" 3704 | }, 3705 | { 3706 | "key": "showPassword", 3707 | "value": false, 3708 | "type": "boolean" 3709 | } 3710 | ] 3711 | }, 3712 | "method": "GET", 3713 | "header": [], 3714 | "url": { 3715 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines", 3716 | "host": [ 3717 | "{{url}}" 3718 | ], 3719 | "path": [ 3720 | "api", 3721 | "v1.0", 3722 | "companies({{companyId}})", 3723 | "salesInvoices({{salesInvoiceId}})", 3724 | "salesInvoiceLines" 3725 | ] 3726 | } 3727 | }, 3728 | "response": [] 3729 | }, 3730 | { 3731 | "name": "salesInvoiceLines with header", 3732 | "request": { 3733 | "auth": { 3734 | "type": "basic", 3735 | "basic": [ 3736 | { 3737 | "key": "username", 3738 | "value": "{{user}}", 3739 | "type": "string" 3740 | }, 3741 | { 3742 | "key": "password", 3743 | "value": "{{password}}", 3744 | "type": "string" 3745 | }, 3746 | { 3747 | "key": "saveHelperData", 3748 | "value": true, 3749 | "type": "boolean" 3750 | }, 3751 | { 3752 | "key": "showPassword", 3753 | "value": false, 3754 | "type": "boolean" 3755 | } 3756 | ] 3757 | }, 3758 | "method": "GET", 3759 | "header": [], 3760 | "url": { 3761 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/?$expand=salesInvoiceLines", 3762 | "host": [ 3763 | "{{url}}" 3764 | ], 3765 | "path": [ 3766 | "api", 3767 | "v1.0", 3768 | "companies({{companyId}})", 3769 | "salesInvoices({{salesInvoiceId}})", 3770 | "" 3771 | ], 3772 | "query": [ 3773 | { 3774 | "key": "$expand", 3775 | "value": "salesInvoiceLines" 3776 | } 3777 | ] 3778 | } 3779 | }, 3780 | "response": [] 3781 | }, 3782 | { 3783 | "name": "salesInvoices(id) heavy expand", 3784 | "request": { 3785 | "auth": { 3786 | "type": "basic", 3787 | "basic": [ 3788 | { 3789 | "key": "username", 3790 | "value": "{{user}}", 3791 | "type": "string" 3792 | }, 3793 | { 3794 | "key": "password", 3795 | "value": "{{password}}", 3796 | "type": "string" 3797 | }, 3798 | { 3799 | "key": "saveHelperData", 3800 | "type": "any" 3801 | }, 3802 | { 3803 | "key": "showPassword", 3804 | "value": false, 3805 | "type": "boolean" 3806 | } 3807 | ] 3808 | }, 3809 | "method": "GET", 3810 | "header": [], 3811 | "url": { 3812 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/?$expand=salesInvoiceLines($expand=account,item($expand=itemCategory))", 3813 | "host": [ 3814 | "{{url}}" 3815 | ], 3816 | "path": [ 3817 | "api", 3818 | "v1.0", 3819 | "companies({{companyId}})", 3820 | "salesInvoices({{salesInvoiceId}})", 3821 | "" 3822 | ], 3823 | "query": [ 3824 | { 3825 | "key": "$expand", 3826 | "value": "salesInvoiceLines($expand=account,item($expand=itemCategory))" 3827 | } 3828 | ] 3829 | } 3830 | }, 3831 | "response": [] 3832 | }, 3833 | { 3834 | "name": "salesInvoices", 3835 | "request": { 3836 | "auth": { 3837 | "type": "basic", 3838 | "basic": [ 3839 | { 3840 | "key": "username", 3841 | "value": "{{user}}", 3842 | "type": "string" 3843 | }, 3844 | { 3845 | "key": "password", 3846 | "value": "{{password}}", 3847 | "type": "string" 3848 | }, 3849 | { 3850 | "key": "saveHelperData", 3851 | "value": true, 3852 | "type": "boolean" 3853 | }, 3854 | { 3855 | "key": "showPassword", 3856 | "value": false, 3857 | "type": "boolean" 3858 | } 3859 | ] 3860 | }, 3861 | "method": "POST", 3862 | "header": [ 3863 | { 3864 | "key": "Content-Type", 3865 | "value": "application/json" 3866 | } 3867 | ], 3868 | "body": { 3869 | "mode": "raw", 3870 | "raw": " { \"externalDocumentNumber\": \"\",\n \"invoiceDate\": \"2020-05-26\",\n \"dueDate\": \"2020-06-25\",\n \"customerId\": \"{{customerId}}\"\n }" 3871 | }, 3872 | "url": { 3873 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices", 3874 | "host": [ 3875 | "{{url}}" 3876 | ], 3877 | "path": [ 3878 | "api", 3879 | "v1.0", 3880 | "companies({{companyId}})", 3881 | "salesInvoices" 3882 | ] 3883 | } 3884 | }, 3885 | "response": [] 3886 | }, 3887 | { 3888 | "name": "salesInvoices Post", 3889 | "request": { 3890 | "auth": { 3891 | "type": "basic", 3892 | "basic": [ 3893 | { 3894 | "key": "username", 3895 | "value": "{{user}}", 3896 | "type": "string" 3897 | }, 3898 | { 3899 | "key": "password", 3900 | "value": "{{password}}", 3901 | "type": "string" 3902 | }, 3903 | { 3904 | "key": "saveHelperData", 3905 | "value": true, 3906 | "type": "boolean" 3907 | }, 3908 | { 3909 | "key": "showPassword", 3910 | "value": false, 3911 | "type": "boolean" 3912 | } 3913 | ] 3914 | }, 3915 | "method": "POST", 3916 | "header": [ 3917 | { 3918 | "key": "Content-Type", 3919 | "value": "application/json" 3920 | } 3921 | ], 3922 | "url": { 3923 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/Microsoft.NAV.post", 3924 | "host": [ 3925 | "{{url}}" 3926 | ], 3927 | "path": [ 3928 | "api", 3929 | "v1.0", 3930 | "companies({{companyId}})", 3931 | "salesInvoices({{salesInvoiceId}})", 3932 | "Microsoft.NAV.post" 3933 | ] 3934 | } 3935 | }, 3936 | "response": [] 3937 | }, 3938 | { 3939 | "name": "salesInvoiceLines", 3940 | "request": { 3941 | "auth": { 3942 | "type": "basic", 3943 | "basic": [ 3944 | { 3945 | "key": "username", 3946 | "value": "{{user}}", 3947 | "type": "string" 3948 | }, 3949 | { 3950 | "key": "password", 3951 | "value": "{{password}}", 3952 | "type": "string" 3953 | }, 3954 | { 3955 | "key": "saveHelperData", 3956 | "value": true, 3957 | "type": "boolean" 3958 | }, 3959 | { 3960 | "key": "showPassword", 3961 | "value": false, 3962 | "type": "boolean" 3963 | } 3964 | ] 3965 | }, 3966 | "method": "POST", 3967 | "header": [ 3968 | { 3969 | "key": "Content-Type", 3970 | "value": "application/json" 3971 | } 3972 | ], 3973 | "body": { 3974 | "mode": "raw", 3975 | "raw": " {\n \"sequence\": 10000,\n \"itemId\": \"{{itemId}}\",\n \"quantity\": 2\n }" 3976 | }, 3977 | "url": { 3978 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines", 3979 | "host": [ 3980 | "{{url}}" 3981 | ], 3982 | "path": [ 3983 | "api", 3984 | "v1.0", 3985 | "companies({{companyId}})", 3986 | "salesInvoices({{salesInvoiceId}})", 3987 | "salesInvoiceLines" 3988 | ] 3989 | } 3990 | }, 3991 | "response": [] 3992 | }, 3993 | { 3994 | "name": "salesInvoices deep insert", 3995 | "request": { 3996 | "auth": { 3997 | "type": "basic", 3998 | "basic": [ 3999 | { 4000 | "key": "username", 4001 | "value": "{{user}}", 4002 | "type": "string" 4003 | }, 4004 | { 4005 | "key": "password", 4006 | "value": "{{password}}", 4007 | "type": "string" 4008 | }, 4009 | { 4010 | "key": "saveHelperData", 4011 | "type": "any" 4012 | }, 4013 | { 4014 | "key": "showPassword", 4015 | "value": false, 4016 | "type": "boolean" 4017 | } 4018 | ] 4019 | }, 4020 | "method": "POST", 4021 | "header": [ 4022 | { 4023 | "key": "Content-Type", 4024 | "value": "application/json" 4025 | } 4026 | ], 4027 | "body": { 4028 | "mode": "raw", 4029 | "raw": " {\n \t\"externalDocumentNumber\": \"1234\",\n \"invoiceDate\": \"2020-05-25\",\n \"dueDate\": \"2020-06-24\",\n \"customerId\": \"{{customerId}}\",\n \"salesInvoiceLines\" : \n\t [\n\t {\"itemId\": \"{{itemId}}\", \"quantity\": 4},\n\t {\"itemId\": \"{{itemId}}\", \"quantity\": 6}\n\t\t]\n }" 4030 | }, 4031 | "url": { 4032 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesInvoices/?$expand=salesInvoiceLines", 4033 | "host": [ 4034 | "{{url}}" 4035 | ], 4036 | "path": [ 4037 | "api", 4038 | "v1.0", 4039 | "companies({{companyId}})", 4040 | "salesInvoices", 4041 | "" 4042 | ], 4043 | "query": [ 4044 | { 4045 | "key": "$expand", 4046 | "value": "salesInvoiceLines" 4047 | } 4048 | ] 4049 | } 4050 | }, 4051 | "response": [] 4052 | }, 4053 | { 4054 | "name": "salesInvoiceLines $batch", 4055 | "request": { 4056 | "auth": { 4057 | "type": "basic", 4058 | "basic": [ 4059 | { 4060 | "key": "username", 4061 | "value": "{{user}}", 4062 | "type": "string" 4063 | }, 4064 | { 4065 | "key": "password", 4066 | "value": "{{password}}", 4067 | "type": "string" 4068 | }, 4069 | { 4070 | "key": "saveHelperData", 4071 | "value": true, 4072 | "type": "boolean" 4073 | }, 4074 | { 4075 | "key": "showPassword", 4076 | "value": false, 4077 | "type": "boolean" 4078 | } 4079 | ] 4080 | }, 4081 | "method": "POST", 4082 | "header": [ 4083 | { 4084 | "key": "Content-Type", 4085 | "value": "application/json" 4086 | }, 4087 | { 4088 | "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.", 4089 | "key": "Authorization", 4090 | "value": "Basic cGJvcnJpbmc6dWtFTTk4SUE0Rk1TRmQxOU85eTNmeHQ1V21pQ1hxa0gvOHpad3RxZDR0ND0=", 4091 | "disabled": true 4092 | }, 4093 | { 4094 | "key": "Accept", 4095 | "value": "application/json", 4096 | "type": "text" 4097 | } 4098 | ], 4099 | "body": { 4100 | "mode": "raw", 4101 | "raw": "{\n\t\"requests\": [\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"atomicityGroup\" : \"g1\",\n\t\t\t\"id\": \"g1-r1\",\n\t\t\t\"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json; odata.metadata=minimal; odata.streaming=true\"\n\t\t\t},\n\t\t\t\"body\":\n\t \t{\n\t \"itemId\": \"{{itemId}}\",\n\t \"quantity\": 2\n\t }\n\t\t},\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"atomicityGroup\" : \"g2\",\n\t\t\t\"id\": \"g2-r1\",\n\t\t\t\"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json; odata.metadata=minimal; odata.streaming=true\"\n\t\t\t},\n\t\t\t\"body\":\n\t \t{\n\t \"itemId\": \"{{itemId}}\",\n\t \"quantity\": 2\n\t }\n\t\t}\n ]\n}" 4102 | }, 4103 | "url": { 4104 | "raw": "{{url}}/api/v1.0/$batch", 4105 | "host": [ 4106 | "{{url}}" 4107 | ], 4108 | "path": [ 4109 | "api", 4110 | "v1.0", 4111 | "$batch" 4112 | ] 4113 | } 4114 | }, 4115 | "response": [] 4116 | }, 4117 | { 4118 | "name": "salesInvoiceLines + Post $batch", 4119 | "request": { 4120 | "auth": { 4121 | "type": "basic", 4122 | "basic": [ 4123 | { 4124 | "key": "username", 4125 | "value": "{{user}}", 4126 | "type": "string" 4127 | }, 4128 | { 4129 | "key": "password", 4130 | "value": "{{password}}", 4131 | "type": "string" 4132 | }, 4133 | { 4134 | "key": "saveHelperData", 4135 | "value": true, 4136 | "type": "boolean" 4137 | }, 4138 | { 4139 | "key": "showPassword", 4140 | "value": false, 4141 | "type": "boolean" 4142 | } 4143 | ] 4144 | }, 4145 | "method": "POST", 4146 | "header": [ 4147 | { 4148 | "key": "Content-Type", 4149 | "value": "application/json" 4150 | }, 4151 | { 4152 | "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.", 4153 | "key": "Authorization", 4154 | "value": "Basic cGJvcnJpbmc6dWtFTTk4SUE0Rk1TRmQxOU85eTNmeHQ1V21pQ1hxa0gvOHpad3RxZDR0ND0=", 4155 | "disabled": true 4156 | }, 4157 | { 4158 | "key": "Accept", 4159 | "value": "application/json", 4160 | "type": "text" 4161 | } 4162 | ], 4163 | "body": { 4164 | "mode": "raw", 4165 | "raw": "{\n\t\"requests\": [\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"id\": \"r1\",\n\t\t\t\"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\",\n \"Prefer\": \"return-no-content\"\n\t\t\t},\n\t\t\t\"body\":\n\t \t{\n\t \"itemId\": \"{{itemId}}\",\n\t \"quantity\": 1\n\t }\n\t\t},\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"id\": \"r2\",\n\t\t\t\"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\",\n \"Prefer\": \"return-no-content\"\n\t\t\t},\n\t\t\t\"body\":\n\t \t{\n\t \"itemId\": \"{{itemId2}}\",\n\t \"quantity\": 4\n\t }\n\t\t},\n\t\t{\n\t\t\t\"method\": \"POST\",\n\t\t\t\"id\": \"r3\",\n \"dependsOn\": [\"r1\",\"r2\"],\n\t\t\t\"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})/Microsoft.NAV.post\",\n\t\t\t\"headers\": {\n\t\t\t\t\"Content-Type\": \"application/json\"\n\t\t\t},\n\t\t\t\"body\":{ }\n\t\t},\n {\n \"method\": \"GET\",\n \"id\": \"r4\",\n \"dependsOn\": [\"r3\"],\n \"url\": \"companies({{companyId}})/salesInvoices({{salesInvoiceId}})?$expand=salesInvoiceLines\"\n } \n ]\n}" 4166 | }, 4167 | "url": { 4168 | "raw": "{{url}}/api/v1.0/$batch", 4169 | "host": [ 4170 | "{{url}}" 4171 | ], 4172 | "path": [ 4173 | "api", 4174 | "v1.0", 4175 | "$batch" 4176 | ] 4177 | } 4178 | }, 4179 | "response": [] 4180 | }, 4181 | { 4182 | "name": "SalesInvoice + Post $batch json format", 4183 | "request": { 4184 | "auth": { 4185 | "type": "basic", 4186 | "basic": [ 4187 | { 4188 | "key": "username", 4189 | "value": "{{user}}", 4190 | "type": "string" 4191 | }, 4192 | { 4193 | "key": "password", 4194 | "value": "{{password}}", 4195 | "type": "string" 4196 | }, 4197 | { 4198 | "key": "saveHelperData", 4199 | "value": true, 4200 | "type": "boolean" 4201 | }, 4202 | { 4203 | "key": "showPassword", 4204 | "value": false, 4205 | "type": "boolean" 4206 | } 4207 | ] 4208 | }, 4209 | "method": "POST", 4210 | "header": [ 4211 | { 4212 | "key": "Content-Type", 4213 | "value": "application/json" 4214 | }, 4215 | { 4216 | "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.", 4217 | "key": "Authorization", 4218 | "value": "Basic cGJvcnJpbmc6dWtFTTk4SUE0Rk1TRmQxOU85eTNmeHQ1V21pQ1hxa0gvOHpad3RxZDR0ND0=", 4219 | "disabled": true 4220 | }, 4221 | { 4222 | "key": "Accept", 4223 | "value": "application/json", 4224 | "type": "text" 4225 | } 4226 | ], 4227 | "body": { 4228 | "mode": "raw", 4229 | "raw": "{\n \"requests\": [\n {\n \"method\": \"POST\",\n \"atomicityGroup\": \"g1\",\n \"id\": \"1\",\n \"url\": \"companies({{companyId}})/salesInvoices\",\n \"headers\": {\n \"Content-Type\": \"application/json; odata.metadata=minimal; odata.streaming=true\"\n },\n \"body\": {\n \"externalDocumentNumber\": \"1234\",\n \"invoiceDate\": \"2020-05-25\",\n \"dueDate\": \"2020-06-24\",\n \"customerId\": \"{{customerId}}\",\n \"salesInvoiceLines\": [\n {\n \"itemId\": \"{{itemId}}\",\n \"quantity\": 4\n },\n {\n \"itemId\": \"{{itemId}}\",\n \"quantity\": 6\n }\n ]\n }\n },\n {\n \"method\": \"GET\",\n \"atomicityGroup\": \"g1\",\n \"id\": \"2\",\n \"url\": \"$1\",\n \"dependsOn\": [\"1\"],\n \"headers\": {\n \"Content-Type\": \"application/json; odata.metadata=minimal; odata.streaming=true\"\n },\n \"body\": {\n \"invoiceDate\": \"2020-05-25\"\n }\n },\n {\n \"method\": \"POST\",\n \"id\": \"3\",\n \"url\": \"{{url}}/$1/Microsoft.NAV.Post\",\n \"dependsOn\": [\n \"g1\"\n ],\n \"headers\": {\n \"Content-Type\": \"application/json; odata.metadata=minimal; odata.streaming=true\"\n },\n \"body\": {}\n }\n ]\n}" 4230 | }, 4231 | "url": { 4232 | "raw": "{{url}}/api/v1.0/$batch", 4233 | "host": [ 4234 | "{{url}}" 4235 | ], 4236 | "path": [ 4237 | "api", 4238 | "v1.0", 4239 | "$batch" 4240 | ] 4241 | } 4242 | }, 4243 | "response": [] 4244 | }, 4245 | { 4246 | "name": "SalesInvoice + Post $batch multipart/mixed", 4247 | "request": { 4248 | "auth": { 4249 | "type": "basic", 4250 | "basic": [ 4251 | { 4252 | "key": "username", 4253 | "value": "{{user}}", 4254 | "type": "string" 4255 | }, 4256 | { 4257 | "key": "password", 4258 | "value": "{{password}}", 4259 | "type": "string" 4260 | }, 4261 | { 4262 | "key": "saveHelperData", 4263 | "value": true, 4264 | "type": "boolean" 4265 | }, 4266 | { 4267 | "key": "showPassword", 4268 | "value": false, 4269 | "type": "boolean" 4270 | } 4271 | ] 4272 | }, 4273 | "method": "POST", 4274 | "header": [ 4275 | { 4276 | "key": "Content-Type", 4277 | "value": "multipart/mixed; boundary=batch_36522ad7-fc75-4b56-8c71-56071383e77b" 4278 | }, 4279 | { 4280 | "key": "Accept", 4281 | "type": "text", 4282 | "value": "application/json" 4283 | } 4284 | ], 4285 | "body": { 4286 | "mode": "raw", 4287 | "raw": "--batch_36522ad7-fc75-4b56-8c71-56071383e77b\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nPOST companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines HTTP/1.1\r\nContent-Type: application/json\r\nPrefer: return-no-content\r\nContent-ID: 1\r\n\r\n{\r\n \"itemId\": \"{{itemId}}\",\r\n \"quantity\": 1\r\n}\r\n\r\n--batch_36522ad7-fc75-4b56-8c71-56071383e77b\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPOST companies({{companyId}})/salesInvoices({{salesInvoiceId}})/salesInvoiceLines HTTP/1.1\r\nContent-Type: application/json\r\nPrefer: return-no-content\r\n\r\n{\r\n \"itemId\": \"{{itemId}}\",\r\n \"quantity\": 1\r\n}\r\n\r\n--batch_36522ad7-fc75-4b56-8c71-56071383e77b\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 3\r\n\r\nPOST companies({{companyId}})/salesInvoices({{salesInvoiceId}})/Microsoft.NAV.post HTTP/1.1\r\nContent-Type: application/json\r\n\r\n{}\r\n\r\n--batch_36522ad7-fc75-4b56-8c71-56071383e77b\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 4\r\n\r\nGET companies({{companyId}})/salesInvoices({{salesInvoiceId}})?$expand=salesInvoiceLines HTTP/1.1\r\n", 4288 | "options": { 4289 | "raw": { 4290 | "language": "text" 4291 | } 4292 | } 4293 | }, 4294 | "url": { 4295 | "raw": "{{url}}/api/v1.0/$batch", 4296 | "host": [ 4297 | "{{url}}" 4298 | ], 4299 | "path": [ 4300 | "api", 4301 | "v1.0", 4302 | "$batch" 4303 | ] 4304 | } 4305 | }, 4306 | "response": [] 4307 | } 4308 | ] 4309 | } 4310 | ] 4311 | }, 4312 | { 4313 | "name": "Inventory", 4314 | "item": [ 4315 | { 4316 | "name": "items", 4317 | "request": { 4318 | "auth": { 4319 | "type": "basic", 4320 | "basic": [ 4321 | { 4322 | "key": "username", 4323 | "value": "{{user}}", 4324 | "type": "string" 4325 | }, 4326 | { 4327 | "key": "password", 4328 | "value": "{{password}}", 4329 | "type": "string" 4330 | }, 4331 | { 4332 | "key": "saveHelperData", 4333 | "value": true, 4334 | "type": "boolean" 4335 | }, 4336 | { 4337 | "key": "showPassword", 4338 | "value": false, 4339 | "type": "boolean" 4340 | } 4341 | ] 4342 | }, 4343 | "method": "GET", 4344 | "header": [], 4345 | "url": { 4346 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items/", 4347 | "host": [ 4348 | "{{url}}" 4349 | ], 4350 | "path": [ 4351 | "api", 4352 | "v1.0", 4353 | "companies({{companyId}})", 4354 | "items", 4355 | "" 4356 | ] 4357 | } 4358 | }, 4359 | "response": [] 4360 | }, 4361 | { 4362 | "name": "items create", 4363 | "request": { 4364 | "auth": { 4365 | "type": "basic", 4366 | "basic": [ 4367 | { 4368 | "key": "username", 4369 | "value": "{{user}}", 4370 | "type": "string" 4371 | }, 4372 | { 4373 | "key": "password", 4374 | "value": "{{password}}", 4375 | "type": "string" 4376 | }, 4377 | { 4378 | "key": "saveHelperData", 4379 | "value": true, 4380 | "type": "boolean" 4381 | }, 4382 | { 4383 | "key": "showPassword", 4384 | "value": false, 4385 | "type": "boolean" 4386 | } 4387 | ] 4388 | }, 4389 | "method": "POST", 4390 | "header": [ 4391 | { 4392 | "key": "Content-Type", 4393 | "name": "Content-Type", 4394 | "value": "application/json", 4395 | "type": "text" 4396 | } 4397 | ], 4398 | "body": { 4399 | "mode": "raw", 4400 | "raw": "{\n \"displayName\" : \"My chair\",\n \"itemCategoryCode\" :\"CHAIR\"\n}" 4401 | }, 4402 | "url": { 4403 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items", 4404 | "host": [ 4405 | "{{url}}" 4406 | ], 4407 | "path": [ 4408 | "api", 4409 | "v1.0", 4410 | "companies({{companyId}})", 4411 | "items" 4412 | ] 4413 | } 4414 | }, 4415 | "response": [] 4416 | }, 4417 | { 4418 | "name": "items set inventory", 4419 | "request": { 4420 | "auth": { 4421 | "type": "basic", 4422 | "basic": [ 4423 | { 4424 | "key": "username", 4425 | "value": "{{user}}", 4426 | "type": "string" 4427 | }, 4428 | { 4429 | "key": "password", 4430 | "value": "{{password}}", 4431 | "type": "string" 4432 | }, 4433 | { 4434 | "key": "saveHelperData", 4435 | "value": true, 4436 | "type": "boolean" 4437 | }, 4438 | { 4439 | "key": "showPassword", 4440 | "value": false, 4441 | "type": "boolean" 4442 | } 4443 | ] 4444 | }, 4445 | "method": "PATCH", 4446 | "header": [ 4447 | { 4448 | "key": "Content-Type", 4449 | "name": "Content-Type", 4450 | "value": "application/json", 4451 | "type": "text" 4452 | }, 4453 | { 4454 | "key": "If-Match", 4455 | "value": "*", 4456 | "type": "text" 4457 | } 4458 | ], 4459 | "body": { 4460 | "mode": "raw", 4461 | "raw": "{\n\t\"inventory\" : 10\n}\n" 4462 | }, 4463 | "url": { 4464 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items({{itemId}})", 4465 | "host": [ 4466 | "{{url}}" 4467 | ], 4468 | "path": [ 4469 | "api", 4470 | "v1.0", 4471 | "companies({{companyId}})", 4472 | "items({{itemId}})" 4473 | ] 4474 | } 4475 | }, 4476 | "response": [] 4477 | }, 4478 | { 4479 | "name": "picture", 4480 | "request": { 4481 | "auth": { 4482 | "type": "basic", 4483 | "basic": [ 4484 | { 4485 | "key": "username", 4486 | "value": "{{user}}", 4487 | "type": "string" 4488 | }, 4489 | { 4490 | "key": "password", 4491 | "value": "{{password}}", 4492 | "type": "string" 4493 | }, 4494 | { 4495 | "key": "saveHelperData", 4496 | "value": true, 4497 | "type": "boolean" 4498 | }, 4499 | { 4500 | "key": "showPassword", 4501 | "value": false, 4502 | "type": "boolean" 4503 | } 4504 | ] 4505 | }, 4506 | "method": "GET", 4507 | "header": [], 4508 | "url": { 4509 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items({{itemId}})/picture", 4510 | "host": [ 4511 | "{{url}}" 4512 | ], 4513 | "path": [ 4514 | "api", 4515 | "v1.0", 4516 | "companies({{companyId}})", 4517 | "items({{itemId}})", 4518 | "picture" 4519 | ] 4520 | } 4521 | }, 4522 | "response": [] 4523 | }, 4524 | { 4525 | "name": "picture alternative", 4526 | "request": { 4527 | "auth": { 4528 | "type": "basic", 4529 | "basic": [ 4530 | { 4531 | "key": "username", 4532 | "value": "{{user}}", 4533 | "type": "string" 4534 | }, 4535 | { 4536 | "key": "password", 4537 | "value": "{{password}}", 4538 | "type": "string" 4539 | }, 4540 | { 4541 | "key": "saveHelperData", 4542 | "value": true, 4543 | "type": "boolean" 4544 | }, 4545 | { 4546 | "key": "showPassword", 4547 | "value": false, 4548 | "type": "boolean" 4549 | } 4550 | ] 4551 | }, 4552 | "method": "GET", 4553 | "header": [], 4554 | "url": { 4555 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/picture?$filter=id eq {{itemId}}", 4556 | "host": [ 4557 | "{{url}}" 4558 | ], 4559 | "path": [ 4560 | "api", 4561 | "v1.0", 4562 | "companies({{companyId}})", 4563 | "picture" 4564 | ], 4565 | "query": [ 4566 | { 4567 | "key": "$filter", 4568 | "value": "id eq {{itemId}}" 4569 | } 4570 | ] 4571 | } 4572 | }, 4573 | "response": [] 4574 | } 4575 | ] 4576 | }, 4577 | { 4578 | "name": "Purchase", 4579 | "item": [ 4580 | { 4581 | "name": "vendors", 4582 | "request": { 4583 | "auth": { 4584 | "type": "basic", 4585 | "basic": [ 4586 | { 4587 | "key": "username", 4588 | "value": "{{user}}", 4589 | "type": "string" 4590 | }, 4591 | { 4592 | "key": "password", 4593 | "value": "{{password}}", 4594 | "type": "string" 4595 | }, 4596 | { 4597 | "key": "saveHelperData", 4598 | "value": true, 4599 | "type": "boolean" 4600 | }, 4601 | { 4602 | "key": "showPassword", 4603 | "value": false, 4604 | "type": "boolean" 4605 | } 4606 | ] 4607 | }, 4608 | "method": "GET", 4609 | "header": [ 4610 | { 4611 | "key": "Authorization", 4612 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 4613 | } 4614 | ], 4615 | "url": { 4616 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/vendors?$expand=currency,paymentTerm,paymentMethod", 4617 | "host": [ 4618 | "{{url}}" 4619 | ], 4620 | "path": [ 4621 | "api", 4622 | "v1.0", 4623 | "companies({{companyId}})", 4624 | "vendors" 4625 | ], 4626 | "query": [ 4627 | { 4628 | "key": "$expand", 4629 | "value": "currency,paymentTerm,paymentMethod" 4630 | } 4631 | ] 4632 | } 4633 | }, 4634 | "response": [] 4635 | }, 4636 | { 4637 | "name": "paymentTerms", 4638 | "request": { 4639 | "auth": { 4640 | "type": "basic", 4641 | "basic": [ 4642 | { 4643 | "key": "username", 4644 | "value": "{{user}}", 4645 | "type": "string" 4646 | }, 4647 | { 4648 | "key": "password", 4649 | "value": "{{password}}", 4650 | "type": "string" 4651 | }, 4652 | { 4653 | "key": "saveHelperData", 4654 | "value": true, 4655 | "type": "boolean" 4656 | }, 4657 | { 4658 | "key": "showPassword", 4659 | "value": false, 4660 | "type": "boolean" 4661 | } 4662 | ] 4663 | }, 4664 | "method": "GET", 4665 | "header": [ 4666 | { 4667 | "key": "Authorization", 4668 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 4669 | } 4670 | ], 4671 | "url": { 4672 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/paymentTerms", 4673 | "host": [ 4674 | "{{url}}" 4675 | ], 4676 | "path": [ 4677 | "api", 4678 | "v1.0", 4679 | "companies({{companyId}})", 4680 | "paymentTerms" 4681 | ] 4682 | } 4683 | }, 4684 | "response": [] 4685 | }, 4686 | { 4687 | "name": "purchaseInvoices", 4688 | "request": { 4689 | "auth": { 4690 | "type": "basic", 4691 | "basic": [ 4692 | { 4693 | "key": "username", 4694 | "value": "{{user}}", 4695 | "type": "string" 4696 | }, 4697 | { 4698 | "key": "password", 4699 | "value": "{{password}}", 4700 | "type": "string" 4701 | }, 4702 | { 4703 | "key": "saveHelperData", 4704 | "value": true, 4705 | "type": "boolean" 4706 | }, 4707 | { 4708 | "key": "showPassword", 4709 | "value": false, 4710 | "type": "boolean" 4711 | } 4712 | ] 4713 | }, 4714 | "method": "GET", 4715 | "header": [], 4716 | "url": { 4717 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/purchaseInvoices", 4718 | "host": [ 4719 | "{{url}}" 4720 | ], 4721 | "path": [ 4722 | "api", 4723 | "v1.0", 4724 | "companies({{companyId}})", 4725 | "purchaseInvoices" 4726 | ] 4727 | } 4728 | }, 4729 | "response": [] 4730 | } 4731 | ] 4732 | }, 4733 | { 4734 | "name": "Employees", 4735 | "item": [ 4736 | { 4737 | "name": "employees", 4738 | "request": { 4739 | "auth": { 4740 | "type": "basic", 4741 | "basic": [ 4742 | { 4743 | "key": "username", 4744 | "value": "{{user}}", 4745 | "type": "string" 4746 | }, 4747 | { 4748 | "key": "password", 4749 | "value": "{{password}}", 4750 | "type": "string" 4751 | }, 4752 | { 4753 | "key": "saveHelperData", 4754 | "value": true, 4755 | "type": "boolean" 4756 | }, 4757 | { 4758 | "key": "showPassword", 4759 | "value": false, 4760 | "type": "boolean" 4761 | } 4762 | ] 4763 | }, 4764 | "method": "GET", 4765 | "header": [ 4766 | { 4767 | "key": "Authorization", 4768 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 4769 | } 4770 | ], 4771 | "url": { 4772 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/employees", 4773 | "host": [ 4774 | "{{url}}" 4775 | ], 4776 | "path": [ 4777 | "api", 4778 | "v1.0", 4779 | "companies({{companyId}})", 4780 | "employees" 4781 | ] 4782 | } 4783 | }, 4784 | "response": [] 4785 | }, 4786 | { 4787 | "name": "employees with dimensions", 4788 | "request": { 4789 | "auth": { 4790 | "type": "basic", 4791 | "basic": [ 4792 | { 4793 | "key": "username", 4794 | "value": "{{user}}", 4795 | "type": "string" 4796 | }, 4797 | { 4798 | "key": "password", 4799 | "value": "{{password}}", 4800 | "type": "string" 4801 | }, 4802 | { 4803 | "key": "saveHelperData", 4804 | "value": true, 4805 | "type": "boolean" 4806 | }, 4807 | { 4808 | "key": "showPassword", 4809 | "value": false, 4810 | "type": "boolean" 4811 | } 4812 | ] 4813 | }, 4814 | "method": "GET", 4815 | "header": [ 4816 | { 4817 | "key": "Authorization", 4818 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 4819 | } 4820 | ], 4821 | "url": { 4822 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/employees?$expand=defaultDimensions", 4823 | "host": [ 4824 | "{{url}}" 4825 | ], 4826 | "path": [ 4827 | "api", 4828 | "v1.0", 4829 | "companies({{companyId}})", 4830 | "employees" 4831 | ], 4832 | "query": [ 4833 | { 4834 | "key": "$expand", 4835 | "value": "defaultDimensions" 4836 | } 4837 | ] 4838 | } 4839 | }, 4840 | "response": [] 4841 | }, 4842 | { 4843 | "name": "employees, create awesome employee", 4844 | "request": { 4845 | "auth": { 4846 | "type": "basic", 4847 | "basic": [ 4848 | { 4849 | "key": "username", 4850 | "value": "{{user}}", 4851 | "type": "string" 4852 | }, 4853 | { 4854 | "key": "password", 4855 | "value": "{{password}}", 4856 | "type": "string" 4857 | }, 4858 | { 4859 | "key": "saveHelperData", 4860 | "value": true, 4861 | "type": "boolean" 4862 | }, 4863 | { 4864 | "key": "showPassword", 4865 | "value": false, 4866 | "type": "boolean" 4867 | } 4868 | ] 4869 | }, 4870 | "method": "POST", 4871 | "header": [ 4872 | { 4873 | "key": "Authorization", 4874 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 4875 | }, 4876 | { 4877 | "key": "Content-Type", 4878 | "name": "Content-Type", 4879 | "value": "application/json", 4880 | "type": "text" 4881 | } 4882 | ], 4883 | "body": { 4884 | "mode": "raw", 4885 | "raw": "{\n\t \n \"number\": \"AJK\",\n \"givenName\": \"Arend-Jan\",\n \"middleName\": \"\",\n \"surname\": \"Kauffmann\",\n \"jobTitle\": \"MVP\",\n \"mobilePhone\": \"+31634868959\",\n \"email\": \"aj@kauffmann.nl\"\n\n}" 4886 | }, 4887 | "url": { 4888 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/employees", 4889 | "host": [ 4890 | "{{url}}" 4891 | ], 4892 | "path": [ 4893 | "api", 4894 | "v1.0", 4895 | "companies({{companyId}})", 4896 | "employees" 4897 | ] 4898 | } 4899 | }, 4900 | "response": [] 4901 | }, 4902 | { 4903 | "name": "employees", 4904 | "request": { 4905 | "auth": { 4906 | "type": "basic", 4907 | "basic": [ 4908 | { 4909 | "key": "username", 4910 | "value": "{{user}}", 4911 | "type": "string" 4912 | }, 4913 | { 4914 | "key": "password", 4915 | "value": "{{password}}", 4916 | "type": "string" 4917 | }, 4918 | { 4919 | "key": "saveHelperData", 4920 | "type": "any" 4921 | }, 4922 | { 4923 | "key": "showPassword", 4924 | "value": false, 4925 | "type": "boolean" 4926 | } 4927 | ] 4928 | }, 4929 | "method": "PATCH", 4930 | "header": [ 4931 | { 4932 | "key": "Content-Type", 4933 | "value": "application/json" 4934 | }, 4935 | { 4936 | "key": "If-Match", 4937 | "value": "*" 4938 | }, 4939 | { 4940 | "key": "Authorization", 4941 | "value": "Basic cGJvcnJpbmc6Wi9wQUZrdW4ya2hPanZwVldQeGlMMnpGMWZLR0NjanA2UGJvV2NZcnNqMD0=" 4942 | } 4943 | ], 4944 | "body": { 4945 | "mode": "raw", 4946 | "raw": " {\n \"phoneNumber\": \"555-555-555\",\n \"defaultDimensions\": [\n {\n \"dimensionId\": \"{{dimensionId}}\",\n \"dimensionValueId\": \"{{dimensionValueId}}\"\n }\n ]\n }" 4947 | }, 4948 | "url": { 4949 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/employees({{employeeId}})?$expand=defaultDimensions", 4950 | "host": [ 4951 | "{{url}}" 4952 | ], 4953 | "path": [ 4954 | "api", 4955 | "v1.0", 4956 | "companies({{companyId}})", 4957 | "employees({{employeeId}})" 4958 | ], 4959 | "query": [ 4960 | { 4961 | "key": "$expand", 4962 | "value": "defaultDimensions" 4963 | } 4964 | ] 4965 | } 4966 | }, 4967 | "response": [] 4968 | }, 4969 | { 4970 | "name": "employees upload picture", 4971 | "request": { 4972 | "auth": { 4973 | "type": "basic", 4974 | "basic": [ 4975 | { 4976 | "key": "username", 4977 | "value": "{{user}}", 4978 | "type": "string" 4979 | }, 4980 | { 4981 | "key": "password", 4982 | "value": "{{password}}", 4983 | "type": "string" 4984 | }, 4985 | { 4986 | "key": "saveHelperData", 4987 | "type": "any" 4988 | }, 4989 | { 4990 | "key": "showPassword", 4991 | "value": false, 4992 | "type": "boolean" 4993 | } 4994 | ] 4995 | }, 4996 | "method": "PATCH", 4997 | "header": [ 4998 | { 4999 | "key": "Content-Type", 5000 | "value": "application/octet-stream" 5001 | }, 5002 | { 5003 | "key": "If-Match", 5004 | "value": "*" 5005 | }, 5006 | { 5007 | "key": "Authorization", 5008 | "value": "Basic cGJvcnJpbmc6Wi9wQUZrdW4ya2hPanZwVldQeGlMMnpGMWZLR0NjanA2UGJvV2NZcnNqMD0=" 5009 | } 5010 | ], 5011 | "body": { 5012 | "mode": "file", 5013 | "file": { 5014 | "src": "" 5015 | } 5016 | }, 5017 | "url": { 5018 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/employees({{employeeId}})/picture({{employeeId}})/content", 5019 | "host": [ 5020 | "{{url}}" 5021 | ], 5022 | "path": [ 5023 | "api", 5024 | "v1.0", 5025 | "companies({{companyId}})", 5026 | "employees({{employeeId}})", 5027 | "picture({{employeeId}})", 5028 | "content" 5029 | ] 5030 | } 5031 | }, 5032 | "response": [] 5033 | }, 5034 | { 5035 | "name": "TimeSheets", 5036 | "request": { 5037 | "auth": { 5038 | "type": "basic", 5039 | "basic": [ 5040 | { 5041 | "key": "username", 5042 | "value": "{{user}}", 5043 | "type": "string" 5044 | }, 5045 | { 5046 | "key": "password", 5047 | "value": "{{password}}", 5048 | "type": "string" 5049 | }, 5050 | { 5051 | "key": "saveHelperData", 5052 | "value": true, 5053 | "type": "boolean" 5054 | }, 5055 | { 5056 | "key": "showPassword", 5057 | "value": false, 5058 | "type": "boolean" 5059 | } 5060 | ] 5061 | }, 5062 | "method": "GET", 5063 | "header": [], 5064 | "url": { 5065 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/timeRegistrationEntries?$filter=employeeId eq {{employeeId}}", 5066 | "host": [ 5067 | "{{url}}" 5068 | ], 5069 | "path": [ 5070 | "api", 5071 | "v1.0", 5072 | "companies({{companyId}})", 5073 | "timeRegistrationEntries" 5074 | ], 5075 | "query": [ 5076 | { 5077 | "key": "$filter", 5078 | "value": "employeeId eq {{employeeId}}" 5079 | } 5080 | ] 5081 | } 5082 | }, 5083 | "response": [] 5084 | }, 5085 | { 5086 | "name": "TimeSheets - using employeeNumber", 5087 | "request": { 5088 | "auth": { 5089 | "type": "basic", 5090 | "basic": [ 5091 | { 5092 | "key": "username", 5093 | "value": "{{user}}", 5094 | "type": "string" 5095 | }, 5096 | { 5097 | "key": "password", 5098 | "value": "{{password}}", 5099 | "type": "string" 5100 | }, 5101 | { 5102 | "key": "saveHelperData", 5103 | "value": true, 5104 | "type": "boolean" 5105 | }, 5106 | { 5107 | "key": "showPassword", 5108 | "value": false, 5109 | "type": "boolean" 5110 | } 5111 | ] 5112 | }, 5113 | "method": "POST", 5114 | "header": [ 5115 | { 5116 | "key": "Content-Type", 5117 | "name": "Content-Type", 5118 | "value": "application/json", 5119 | "type": "text" 5120 | } 5121 | ], 5122 | "body": { 5123 | "mode": "raw", 5124 | "raw": "{\n\t\"employeeId\" : \"{{employeeId}}\",\n\t\"quantity\": 8,\n\t\"date\" : \"2020-05-25\"\n}" 5125 | }, 5126 | "url": { 5127 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/timeRegistrationEntries", 5128 | "host": [ 5129 | "{{url}}" 5130 | ], 5131 | "path": [ 5132 | "api", 5133 | "v1.0", 5134 | "companies({{companyId}})", 5135 | "timeRegistrationEntries" 5136 | ] 5137 | } 5138 | }, 5139 | "response": [] 5140 | }, 5141 | { 5142 | "name": "TimeSheets", 5143 | "request": { 5144 | "auth": { 5145 | "type": "basic", 5146 | "basic": [ 5147 | { 5148 | "key": "username", 5149 | "value": "{{user}}", 5150 | "type": "string" 5151 | }, 5152 | { 5153 | "key": "password", 5154 | "value": "{{password}}", 5155 | "type": "string" 5156 | }, 5157 | { 5158 | "key": "saveHelperData", 5159 | "value": true, 5160 | "type": "boolean" 5161 | }, 5162 | { 5163 | "key": "showPassword", 5164 | "value": false, 5165 | "type": "boolean" 5166 | } 5167 | ] 5168 | }, 5169 | "method": "PATCH", 5170 | "header": [ 5171 | { 5172 | "key": "Content-Type", 5173 | "name": "Content-Type", 5174 | "value": "application/json", 5175 | "type": "text" 5176 | }, 5177 | { 5178 | "key": "If-Match", 5179 | "value": "*", 5180 | "type": "text" 5181 | } 5182 | ], 5183 | "body": { 5184 | "mode": "raw", 5185 | "raw": "{\n\t\"quantity\": 9\n}" 5186 | }, 5187 | "url": { 5188 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/timeRegistrationEntries({{timeRegistrationId}})", 5189 | "host": [ 5190 | "{{url}}" 5191 | ], 5192 | "path": [ 5193 | "api", 5194 | "v1.0", 5195 | "companies({{companyId}})", 5196 | "timeRegistrationEntries({{timeRegistrationId}})" 5197 | ] 5198 | } 5199 | }, 5200 | "response": [] 5201 | }, 5202 | { 5203 | "name": "TimeSheets", 5204 | "request": { 5205 | "auth": { 5206 | "type": "basic", 5207 | "basic": [ 5208 | { 5209 | "key": "username", 5210 | "value": "{{user}}", 5211 | "type": "string" 5212 | }, 5213 | { 5214 | "key": "password", 5215 | "value": "{{password}}", 5216 | "type": "string" 5217 | }, 5218 | { 5219 | "key": "saveHelperData", 5220 | "value": true, 5221 | "type": "boolean" 5222 | }, 5223 | { 5224 | "key": "showPassword", 5225 | "value": false, 5226 | "type": "boolean" 5227 | } 5228 | ] 5229 | }, 5230 | "method": "DELETE", 5231 | "header": [ 5232 | { 5233 | "key": "Authorization", 5234 | "value": "Basic cGJvcnJpbmc6dWtFTTk4SUE0Rk1TRmQxOU85eTNmeHQ1V21pQ1hxa0gvOHpad3RxZDR0ND0=", 5235 | "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman." 5236 | }, 5237 | { 5238 | "key": "Content-Type", 5239 | "name": "Content-Type", 5240 | "type": "text", 5241 | "value": "application/json" 5242 | }, 5243 | { 5244 | "key": "If-Match", 5245 | "type": "text", 5246 | "value": "*" 5247 | } 5248 | ], 5249 | "body": { 5250 | "mode": "raw", 5251 | "raw": "" 5252 | }, 5253 | "url": { 5254 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/timeRegistrationEntries({{timeRegistrationId}})", 5255 | "host": [ 5256 | "{{url}}" 5257 | ], 5258 | "path": [ 5259 | "api", 5260 | "v1.0", 5261 | "companies({{companyId}})", 5262 | "timeRegistrationEntries({{timeRegistrationId}})" 5263 | ] 5264 | } 5265 | }, 5266 | "response": [] 5267 | } 5268 | ] 5269 | }, 5270 | { 5271 | "name": "Filtering", 5272 | "item": [ 5273 | { 5274 | "name": "items filter eq", 5275 | "request": { 5276 | "auth": { 5277 | "type": "basic", 5278 | "basic": [ 5279 | { 5280 | "key": "username", 5281 | "value": "{{user}}", 5282 | "type": "string" 5283 | }, 5284 | { 5285 | "key": "password", 5286 | "value": "{{password}}", 5287 | "type": "string" 5288 | }, 5289 | { 5290 | "key": "saveHelperData", 5291 | "value": true, 5292 | "type": "boolean" 5293 | }, 5294 | { 5295 | "key": "showPassword", 5296 | "value": false, 5297 | "type": "boolean" 5298 | } 5299 | ] 5300 | }, 5301 | "method": "GET", 5302 | "header": [], 5303 | "url": { 5304 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items/?$filter=displayName eq '*Chair*'", 5305 | "host": [ 5306 | "{{url}}" 5307 | ], 5308 | "path": [ 5309 | "api", 5310 | "v1.0", 5311 | "companies({{companyId}})", 5312 | "items", 5313 | "" 5314 | ], 5315 | "query": [ 5316 | { 5317 | "key": "$filter", 5318 | "value": "displayName eq '*Chair*'" 5319 | } 5320 | ] 5321 | } 5322 | }, 5323 | "response": [] 5324 | }, 5325 | { 5326 | "name": "items filter ne", 5327 | "request": { 5328 | "auth": { 5329 | "type": "basic", 5330 | "basic": [ 5331 | { 5332 | "key": "username", 5333 | "value": "{{user}}", 5334 | "type": "string" 5335 | }, 5336 | { 5337 | "key": "password", 5338 | "value": "{{password}}", 5339 | "type": "string" 5340 | }, 5341 | { 5342 | "key": "saveHelperData", 5343 | "value": true, 5344 | "type": "boolean" 5345 | }, 5346 | { 5347 | "key": "showPassword", 5348 | "value": false, 5349 | "type": "boolean" 5350 | } 5351 | ] 5352 | }, 5353 | "method": "GET", 5354 | "header": [], 5355 | "url": { 5356 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items/?$filter=unitPrice ne 0", 5357 | "host": [ 5358 | "{{url}}" 5359 | ], 5360 | "path": [ 5361 | "api", 5362 | "v1.0", 5363 | "companies({{companyId}})", 5364 | "items", 5365 | "" 5366 | ], 5367 | "query": [ 5368 | { 5369 | "key": "$filter", 5370 | "value": "unitPrice ne 0" 5371 | } 5372 | ] 5373 | } 5374 | }, 5375 | "response": [] 5376 | }, 5377 | { 5378 | "name": "items filter gt", 5379 | "request": { 5380 | "auth": { 5381 | "type": "basic", 5382 | "basic": [ 5383 | { 5384 | "key": "username", 5385 | "value": "{{user}}", 5386 | "type": "string" 5387 | }, 5388 | { 5389 | "key": "password", 5390 | "value": "{{password}}", 5391 | "type": "string" 5392 | }, 5393 | { 5394 | "key": "saveHelperData", 5395 | "value": true, 5396 | "type": "boolean" 5397 | }, 5398 | { 5399 | "key": "showPassword", 5400 | "value": false, 5401 | "type": "boolean" 5402 | } 5403 | ] 5404 | }, 5405 | "method": "GET", 5406 | "header": [], 5407 | "url": { 5408 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items/?$filter=unitPrice gt 1000", 5409 | "host": [ 5410 | "{{url}}" 5411 | ], 5412 | "path": [ 5413 | "api", 5414 | "v1.0", 5415 | "companies({{companyId}})", 5416 | "items", 5417 | "" 5418 | ], 5419 | "query": [ 5420 | { 5421 | "key": "$filter", 5422 | "value": "unitPrice gt 1000" 5423 | } 5424 | ] 5425 | } 5426 | }, 5427 | "response": [] 5428 | }, 5429 | { 5430 | "name": "customers ?$filter", 5431 | "request": { 5432 | "auth": { 5433 | "type": "basic", 5434 | "basic": [ 5435 | { 5436 | "key": "username", 5437 | "value": "{{user}}", 5438 | "type": "string" 5439 | }, 5440 | { 5441 | "key": "password", 5442 | "value": "{{password}}", 5443 | "type": "string" 5444 | }, 5445 | { 5446 | "key": "saveHelperData", 5447 | "value": true, 5448 | "type": "boolean" 5449 | }, 5450 | { 5451 | "key": "showPassword", 5452 | "value": false, 5453 | "type": "boolean" 5454 | } 5455 | ] 5456 | }, 5457 | "method": "GET", 5458 | "header": [], 5459 | "url": { 5460 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers/?$filter=displayName eq 'Alpine Ski House'", 5461 | "host": [ 5462 | "{{url}}" 5463 | ], 5464 | "path": [ 5465 | "api", 5466 | "v1.0", 5467 | "companies({{companyId}})", 5468 | "customers", 5469 | "" 5470 | ], 5471 | "query": [ 5472 | { 5473 | "key": "$filter", 5474 | "value": "displayName eq 'Alpine Ski House'" 5475 | } 5476 | ] 5477 | } 5478 | }, 5479 | "response": [] 5480 | }, 5481 | { 5482 | "name": "accounts filtered", 5483 | "request": { 5484 | "auth": { 5485 | "type": "basic", 5486 | "basic": [ 5487 | { 5488 | "key": "username", 5489 | "value": "{{user}}", 5490 | "type": "string" 5491 | }, 5492 | { 5493 | "key": "password", 5494 | "value": "{{password}}", 5495 | "type": "string" 5496 | }, 5497 | { 5498 | "key": "saveHelperData", 5499 | "value": true, 5500 | "type": "boolean" 5501 | }, 5502 | { 5503 | "key": "showPassword", 5504 | "value": false, 5505 | "type": "boolean" 5506 | } 5507 | ] 5508 | }, 5509 | "method": "GET", 5510 | "header": [], 5511 | "url": { 5512 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/accounts/?$filter=category eq 'Expense' ", 5513 | "host": [ 5514 | "{{url}}" 5515 | ], 5516 | "path": [ 5517 | "api", 5518 | "v1.0", 5519 | "companies({{companyId}})", 5520 | "accounts", 5521 | "" 5522 | ], 5523 | "query": [ 5524 | { 5525 | "key": "$filter", 5526 | "value": "category eq 'Expense' " 5527 | } 5528 | ] 5529 | } 5530 | }, 5531 | "response": [] 5532 | }, 5533 | { 5534 | "name": "accounts filter and", 5535 | "request": { 5536 | "auth": { 5537 | "type": "basic", 5538 | "basic": [ 5539 | { 5540 | "key": "username", 5541 | "value": "{{user}}", 5542 | "type": "string" 5543 | }, 5544 | { 5545 | "key": "password", 5546 | "value": "{{password}}", 5547 | "type": "string" 5548 | }, 5549 | { 5550 | "key": "saveHelperData", 5551 | "value": true, 5552 | "type": "boolean" 5553 | }, 5554 | { 5555 | "key": "showPassword", 5556 | "value": false, 5557 | "type": "boolean" 5558 | } 5559 | ] 5560 | }, 5561 | "method": "GET", 5562 | "header": [], 5563 | "url": { 5564 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/accounts/?$filter=number ge '50000' and number lt '60000'", 5565 | "host": [ 5566 | "{{url}}" 5567 | ], 5568 | "path": [ 5569 | "api", 5570 | "v1.0", 5571 | "companies({{companyId}})", 5572 | "accounts", 5573 | "" 5574 | ], 5575 | "query": [ 5576 | { 5577 | "key": "$filter", 5578 | "value": "number ge '50000' and number lt '60000'" 5579 | } 5580 | ] 5581 | } 5582 | }, 5583 | "response": [] 5584 | }, 5585 | { 5586 | "name": "accounts filter or", 5587 | "request": { 5588 | "auth": { 5589 | "type": "basic", 5590 | "basic": [ 5591 | { 5592 | "key": "username", 5593 | "value": "{{user}}", 5594 | "type": "string" 5595 | }, 5596 | { 5597 | "key": "password", 5598 | "value": "{{password}}", 5599 | "type": "string" 5600 | }, 5601 | { 5602 | "key": "saveHelperData", 5603 | "value": true, 5604 | "type": "boolean" 5605 | }, 5606 | { 5607 | "key": "showPassword", 5608 | "value": false, 5609 | "type": "boolean" 5610 | } 5611 | ] 5612 | }, 5613 | "method": "GET", 5614 | "header": [], 5615 | "url": { 5616 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/accounts/?$filter=category eq 'Expense' or category eq 'Income'", 5617 | "host": [ 5618 | "{{url}}" 5619 | ], 5620 | "path": [ 5621 | "api", 5622 | "v1.0", 5623 | "companies({{companyId}})", 5624 | "accounts", 5625 | "" 5626 | ], 5627 | "query": [ 5628 | { 5629 | "key": "$filter", 5630 | "value": "category eq 'Expense' or category eq 'Income'" 5631 | } 5632 | ] 5633 | } 5634 | }, 5635 | "response": [] 5636 | }, 5637 | { 5638 | "name": "accounts filter grouping", 5639 | "request": { 5640 | "auth": { 5641 | "type": "basic", 5642 | "basic": [ 5643 | { 5644 | "key": "username", 5645 | "value": "{{user}}", 5646 | "type": "string" 5647 | }, 5648 | { 5649 | "key": "password", 5650 | "value": "{{password}}", 5651 | "type": "string" 5652 | }, 5653 | { 5654 | "key": "saveHelperData", 5655 | "value": true, 5656 | "type": "boolean" 5657 | }, 5658 | { 5659 | "key": "showPassword", 5660 | "value": false, 5661 | "type": "boolean" 5662 | } 5663 | ] 5664 | }, 5665 | "method": "GET", 5666 | "header": [], 5667 | "url": { 5668 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/accounts/?$filter=(category eq 'Expense' or category eq 'Income') and (number ge '40000' and number lt '50000')", 5669 | "host": [ 5670 | "{{url}}" 5671 | ], 5672 | "path": [ 5673 | "api", 5674 | "v1.0", 5675 | "companies({{companyId}})", 5676 | "accounts", 5677 | "" 5678 | ], 5679 | "query": [ 5680 | { 5681 | "key": "$filter", 5682 | "value": "(category eq 'Expense' or category eq 'Income') and (number ge '40000' and number lt '50000')" 5683 | } 5684 | ] 5685 | } 5686 | }, 5687 | "response": [] 5688 | }, 5689 | { 5690 | "name": "items filter contains", 5691 | "request": { 5692 | "auth": { 5693 | "type": "basic", 5694 | "basic": [ 5695 | { 5696 | "key": "username", 5697 | "value": "{{user}}", 5698 | "type": "string" 5699 | }, 5700 | { 5701 | "key": "password", 5702 | "value": "{{password}}", 5703 | "type": "string" 5704 | }, 5705 | { 5706 | "key": "saveHelperData", 5707 | "value": true, 5708 | "type": "boolean" 5709 | }, 5710 | { 5711 | "key": "showPassword", 5712 | "value": false, 5713 | "type": "boolean" 5714 | } 5715 | ] 5716 | }, 5717 | "method": "GET", 5718 | "header": [], 5719 | "url": { 5720 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items/?$filter=contains(displayName, 'red')", 5721 | "host": [ 5722 | "{{url}}" 5723 | ], 5724 | "path": [ 5725 | "api", 5726 | "v1.0", 5727 | "companies({{companyId}})", 5728 | "items", 5729 | "" 5730 | ], 5731 | "query": [ 5732 | { 5733 | "key": "$filter", 5734 | "value": "contains(displayName, 'red')" 5735 | } 5736 | ] 5737 | } 5738 | }, 5739 | "response": [] 5740 | }, 5741 | { 5742 | "name": "customers filter endswith", 5743 | "request": { 5744 | "auth": { 5745 | "type": "basic", 5746 | "basic": [ 5747 | { 5748 | "key": "username", 5749 | "value": "{{user}}", 5750 | "type": "string" 5751 | }, 5752 | { 5753 | "key": "password", 5754 | "value": "{{password}}", 5755 | "type": "string" 5756 | }, 5757 | { 5758 | "key": "saveHelperData", 5759 | "value": true, 5760 | "type": "boolean" 5761 | }, 5762 | { 5763 | "key": "showPassword", 5764 | "value": false, 5765 | "type": "boolean" 5766 | } 5767 | ] 5768 | }, 5769 | "method": "GET", 5770 | "header": [], 5771 | "url": { 5772 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers/?$filter=endswith(email,'contoso.com')", 5773 | "host": [ 5774 | "{{url}}" 5775 | ], 5776 | "path": [ 5777 | "api", 5778 | "v1.0", 5779 | "companies({{companyId}})", 5780 | "customers", 5781 | "" 5782 | ], 5783 | "query": [ 5784 | { 5785 | "key": "$filter", 5786 | "value": "endswith(email,'contoso.com')" 5787 | } 5788 | ] 5789 | } 5790 | }, 5791 | "response": [] 5792 | }, 5793 | { 5794 | "name": "customers filter startswith", 5795 | "request": { 5796 | "auth": { 5797 | "type": "basic", 5798 | "basic": [ 5799 | { 5800 | "key": "username", 5801 | "value": "{{user}}", 5802 | "type": "string" 5803 | }, 5804 | { 5805 | "key": "password", 5806 | "value": "{{password}}", 5807 | "type": "string" 5808 | }, 5809 | { 5810 | "key": "saveHelperData", 5811 | "value": true, 5812 | "type": "boolean" 5813 | }, 5814 | { 5815 | "key": "showPassword", 5816 | "value": false, 5817 | "type": "boolean" 5818 | } 5819 | ] 5820 | }, 5821 | "method": "GET", 5822 | "header": [], 5823 | "url": { 5824 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers/?$filter=startswith(email,'aj')", 5825 | "host": [ 5826 | "{{url}}" 5827 | ], 5828 | "path": [ 5829 | "api", 5830 | "v1.0", 5831 | "companies({{companyId}})", 5832 | "customers", 5833 | "" 5834 | ], 5835 | "query": [ 5836 | { 5837 | "key": "$filter", 5838 | "value": "startswith(email,'aj')" 5839 | } 5840 | ] 5841 | } 5842 | }, 5843 | "response": [] 5844 | } 5845 | ] 5846 | }, 5847 | { 5848 | "name": "Sorting", 5849 | "item": [ 5850 | { 5851 | "name": "customers ?$orderby", 5852 | "request": { 5853 | "auth": { 5854 | "type": "basic", 5855 | "basic": [ 5856 | { 5857 | "key": "username", 5858 | "value": "{{user}}", 5859 | "type": "string" 5860 | }, 5861 | { 5862 | "key": "password", 5863 | "value": "{{password}}", 5864 | "type": "string" 5865 | }, 5866 | { 5867 | "key": "saveHelperData", 5868 | "value": true, 5869 | "type": "boolean" 5870 | }, 5871 | { 5872 | "key": "showPassword", 5873 | "value": false, 5874 | "type": "boolean" 5875 | } 5876 | ] 5877 | }, 5878 | "method": "GET", 5879 | "header": [ 5880 | { 5881 | "key": "Authorization", 5882 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 5883 | } 5884 | ], 5885 | "url": { 5886 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$orderby=number desc ", 5887 | "host": [ 5888 | "{{url}}" 5889 | ], 5890 | "path": [ 5891 | "api", 5892 | "v1.0", 5893 | "companies({{companyId}})", 5894 | "customers" 5895 | ], 5896 | "query": [ 5897 | { 5898 | "key": "$orderby", 5899 | "value": "number desc " 5900 | } 5901 | ] 5902 | } 5903 | }, 5904 | "response": [] 5905 | } 5906 | ] 5907 | }, 5908 | { 5909 | "name": "Expanding", 5910 | "item": [ 5911 | { 5912 | "name": "customers expand financial details", 5913 | "request": { 5914 | "auth": { 5915 | "type": "basic", 5916 | "basic": [ 5917 | { 5918 | "key": "username", 5919 | "value": "{{user}}", 5920 | "type": "string" 5921 | }, 5922 | { 5923 | "key": "password", 5924 | "value": "{{password}}", 5925 | "type": "string" 5926 | }, 5927 | { 5928 | "key": "saveHelperData", 5929 | "value": true, 5930 | "type": "boolean" 5931 | }, 5932 | { 5933 | "key": "showPassword", 5934 | "value": false, 5935 | "type": "boolean" 5936 | } 5937 | ] 5938 | }, 5939 | "method": "GET", 5940 | "header": [ 5941 | { 5942 | "key": "Authorization", 5943 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 5944 | } 5945 | ], 5946 | "url": { 5947 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers?$expand=customerFinancialDetails", 5948 | "host": [ 5949 | "{{url}}" 5950 | ], 5951 | "path": [ 5952 | "api", 5953 | "v1.0", 5954 | "companies({{companyId}})", 5955 | "customers" 5956 | ], 5957 | "query": [ 5958 | { 5959 | "key": "$expand", 5960 | "value": "customerFinancialDetails" 5961 | } 5962 | ] 5963 | } 5964 | }, 5965 | "response": [ 5966 | { 5967 | "name": "customers", 5968 | "originalRequest": { 5969 | "method": "GET", 5970 | "header": [ 5971 | { 5972 | "key": "Authorization", 5973 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 5974 | } 5975 | ], 5976 | "url": { 5977 | "raw": "{{url}}/companies({{companyId}})/customers", 5978 | "host": [ 5979 | "{{url}}" 5980 | ], 5981 | "path": [ 5982 | "companies({{companyId}})", 5983 | "customers" 5984 | ] 5985 | } 5986 | }, 5987 | "status": "OK", 5988 | "code": 200, 5989 | "_postman_previewlanguage": "json", 5990 | "header": [ 5991 | { 5992 | "key": "Access-Control-Allow-Credentials", 5993 | "value": "true", 5994 | "name": "Access-Control-Allow-Credentials", 5995 | "description": "Indicates whether or not the response to the request can be exposed when the credentials flag is true. When used as part of a response to a preflight request, this indicates whether or not the actual request can be made using credentials." 5996 | }, 5997 | { 5998 | "key": "Access-Control-Allow-Headers", 5999 | "value": "Origin, X-Requested-With, Authorization", 6000 | "name": "Access-Control-Allow-Headers", 6001 | "description": "Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request." 6002 | }, 6003 | { 6004 | "key": "Access-Control-Allow-Origin", 6005 | "value": "*", 6006 | "name": "Access-Control-Allow-Origin", 6007 | "description": "Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource." 6008 | }, 6009 | { 6010 | "key": "Access-Control-Expose-Headers", 6011 | "value": "Date", 6012 | "name": "Access-Control-Expose-Headers", 6013 | "description": "Lets a server whitelist headers that browsers are allowed to access." 6014 | }, 6015 | { 6016 | "key": "Access-Control-Expose-Headers", 6017 | "value": "Content-Length", 6018 | "name": "Access-Control-Expose-Headers", 6019 | "description": "Lets a server whitelist headers that browsers are allowed to access." 6020 | }, 6021 | { 6022 | "key": "Access-Control-Expose-Headers", 6023 | "value": "Server", 6024 | "name": "Access-Control-Expose-Headers", 6025 | "description": "Lets a server whitelist headers that browsers are allowed to access." 6026 | }, 6027 | { 6028 | "key": "Access-Control-Expose-Headers", 6029 | "value": "OData-Version", 6030 | "name": "Access-Control-Expose-Headers", 6031 | "description": "Lets a server whitelist headers that browsers are allowed to access." 6032 | }, 6033 | { 6034 | "key": "Access-Control-Expose-Headers", 6035 | "value": "x-ms-correlation-id", 6036 | "name": "Access-Control-Expose-Headers", 6037 | "description": "Lets a server whitelist headers that browsers are allowed to access." 6038 | }, 6039 | { 6040 | "key": "Content-Encoding", 6041 | "value": "gzip", 6042 | "name": "Content-Encoding", 6043 | "description": "The type of encoding used on the data." 6044 | }, 6045 | { 6046 | "key": "Content-Length", 6047 | "value": "1600", 6048 | "name": "Content-Length", 6049 | "description": "The length of the response body in octets (8-bit bytes)" 6050 | }, 6051 | { 6052 | "key": "Content-Type", 6053 | "value": "application/json; odata.metadata=minimal", 6054 | "name": "Content-Type", 6055 | "description": "The mime type of this content" 6056 | }, 6057 | { 6058 | "key": "Date", 6059 | "value": "Thu, 22 Mar 2018 10:13:07 GMT", 6060 | "name": "Date", 6061 | "description": "The date and time that the message was sent" 6062 | }, 6063 | { 6064 | "key": "OData-Version", 6065 | "value": "4.0", 6066 | "name": "OData-Version", 6067 | "description": "Custom header" 6068 | }, 6069 | { 6070 | "key": "Server", 6071 | "value": "Microsoft-HTTPAPI/2.0", 6072 | "name": "Server", 6073 | "description": "A name for the server" 6074 | }, 6075 | { 6076 | "key": "request-id", 6077 | "value": "f14c4386-cc16-498f-ab75-d973b830ed16", 6078 | "name": "request-id", 6079 | "description": "Custom header" 6080 | }, 6081 | { 6082 | "key": "x-content-type-options", 6083 | "value": "nosniff", 6084 | "name": "x-content-type-options", 6085 | "description": "The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type" 6086 | }, 6087 | { 6088 | "key": "x-ms-correlation-id", 6089 | "value": "9c7532af-e6c3-453e-9f12-0f0c78ab393f", 6090 | "name": "x-ms-correlation-id", 6091 | "description": "Custom header" 6092 | } 6093 | ], 6094 | "cookie": [], 6095 | "body": "{\"@odata.context\":\"https://api.financials.dynamics.com/v1.0/M365x142550.OnMicrosoft.com/api/beta/$metadata#companies(7192822e-6ea1-49ab-b8df-288cf9d1cd63)/customers\",\"value\":[{\"@odata.etag\":\"W/\\\"JzQ0O0FZVU5yQU15bEpMb1Z6OHhIQmJGV01vQkFPdkFhSlVaMXNZN1RXMWlSQ1U9MTswMDsn\\\"\",\"id\":\"321ebd32-98cc-4209-915b-0123c62417bb\",\"number\":\"50000\",\"displayName\":\"Relecloud\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jesse.homer@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":8836.8,\"overdueAmount\":5754.96,\"totalSalesExcludingTax\":76713,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.457Z\",\"address\":{\"street\":\"25 Water Way\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3NidkdoVXgrMnBxd011TW1yb1UzQjdTanBZNjBpUml6Yng2N1dUemdrV2c9MTswMDsn\\\"\",\"id\":\"c4233376-4425-4eb1-9517-7ceea5d2f6a7\",\"number\":\"40000\",\"displayName\":\"Alpine Ski House\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"paul.cannon@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"502e8056-8412-4bdf-a1f7-a58fff1e31f3\",\"taxAreaDisplayName\":\"Atlanta, GA - North\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":4316.92,\"overdueAmount\":0,\"totalSalesExcludingTax\":61704.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.377Z\",\"address\":{\"street\":\"10 Deerfield Road\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0OzJNbWNwRXBza0M2N3FxaGNteG9IRWhib0d1ZkNibkNxWE00Wlg5ejVhRG89MTswMDsn\\\"\",\"id\":\"7e174d9d-afa3-4651-8dac-93e165291fd5\",\"number\":\"30000\",\"displayName\":\"Litware, Inc.\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"meagan.bond@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"dcee8d4f-5ea3-4aab-a105-d7b53cf9d569\",\"taxAreaDisplayName\":\"MIAMI, FL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"460d5634-ad4f-4b31-b3af-952fcf06aebf\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":53833.52,\"overdueAmount\":31848.98,\"totalSalesExcludingTax\":198604.6,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.303Z\",\"address\":{\"street\":\"10 High Tower Green\",\"city\":\"Miami\",\"state\":\"FL\",\"countryLetterCode\":\"US\",\"postalCode\":\"37125\"},\"paymentTerms\":{\"code\":\"CM\",\"description\":\"Current Month\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O3loYWFDTEVnQ2FYc2QxelpoYWZFQTRBUEV2VTd5cHB5S0dnSVVHbExieUU9MTswMDsn\\\"\",\"id\":\"e533af1e-6f6b-4d59-b355-a8619407b2d0\",\"number\":\"10000\",\"displayName\":\"Coho Winery\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"jim.glynn@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"359ea9e2-b45e-433c-accc-9b6aabd7d362\",\"taxAreaDisplayName\":\"ATLANTA, GA\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"807137d2-72ba-4829-be1d-622ce1d96741\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":0,\"overdueAmount\":0,\"totalSalesExcludingTax\":214536,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.13Z\",\"address\":{\"street\":\"192 Market Square\",\"city\":\"Atlanta\",\"state\":\"GA\",\"countryLetterCode\":\"US\",\"postalCode\":\"31772\"},\"paymentTerms\":{\"code\":\"1M(8D)\",\"description\":\"1 Month/2% 8 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}},{\"@odata.etag\":\"W/\\\"JzQ0O25SdlNmbmxSckcyRVFLVEU1d1ZZNFRoZGlpVjVGQ2FjMUtNWlByZVFOT289MTswMDsn\\\"\",\"id\":\"f86d8af3-4785-474d-8d6c-c0e4018af815\",\"number\":\"20000\",\"displayName\":\"Trey Research\",\"type\":\"Company\",\"phoneNumber\":\"\",\"email\":\"helen.ray@contoso.com\",\"website\":\"\",\"taxLiable\":true,\"taxAreaId\":\"5def96b4-c7f4-491c-8527-c0425559707f\",\"taxAreaDisplayName\":\"CHICAGO, IL\",\"taxRegistrationNumber\":\"\",\"currencyId\":\"00000000-0000-0000-0000-000000000000\",\"currencyCode\":\"USD\",\"paymentTermsId\":\"b37c3fd0-c09b-4d9f-8d31-ff88a4d39356\",\"shipmentMethodId\":\"00000000-0000-0000-0000-000000000000\",\"paymentMethodId\":\"5d4dd3f9-b73e-4e32-a516-502313c5038e\",\"blocked\":\" \",\"balance\":3036.6,\"overdueAmount\":2024.4,\"totalSalesExcludingTax\":47927.4,\"lastModifiedDateTime\":\"2018-01-28T19:00:21.217Z\",\"address\":{\"street\":\"153 Thomas Drive\",\"city\":\"Chicago\",\"state\":\"IL\",\"countryLetterCode\":\"US\",\"postalCode\":\"61236\"},\"paymentTerms\":{\"code\":\"14 DAYS\",\"description\":\"Net 14 days\"},\"shipmentMethod\":null,\"paymentMethod\":{\"code\":\"BANK\",\"description\":\"Bank Transfer\"}}]}" 6096 | } 6097 | ] 6098 | }, 6099 | { 6100 | "name": "items expand", 6101 | "request": { 6102 | "auth": { 6103 | "type": "basic", 6104 | "basic": [ 6105 | { 6106 | "key": "username", 6107 | "value": "{{user}}", 6108 | "type": "string" 6109 | }, 6110 | { 6111 | "key": "password", 6112 | "value": "{{password}}", 6113 | "type": "string" 6114 | }, 6115 | { 6116 | "key": "saveHelperData", 6117 | "value": true, 6118 | "type": "boolean" 6119 | }, 6120 | { 6121 | "key": "showPassword", 6122 | "value": false, 6123 | "type": "boolean" 6124 | } 6125 | ] 6126 | }, 6127 | "method": "GET", 6128 | "header": [], 6129 | "url": { 6130 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/items({{itemId}})/?$expand=itemCategory", 6131 | "host": [ 6132 | "{{url}}" 6133 | ], 6134 | "path": [ 6135 | "api", 6136 | "v1.0", 6137 | "companies({{companyId}})", 6138 | "items({{itemId}})", 6139 | "" 6140 | ], 6141 | "query": [ 6142 | { 6143 | "key": "$expand", 6144 | "value": "itemCategory" 6145 | } 6146 | ] 6147 | } 6148 | }, 6149 | "response": [] 6150 | }, 6151 | { 6152 | "name": "salesOrder(id) heavy expand", 6153 | "request": { 6154 | "auth": { 6155 | "type": "basic", 6156 | "basic": [ 6157 | { 6158 | "key": "username", 6159 | "value": "{{user}}", 6160 | "type": "string" 6161 | }, 6162 | { 6163 | "key": "password", 6164 | "value": "{{password}}", 6165 | "type": "string" 6166 | }, 6167 | { 6168 | "key": "saveHelperData", 6169 | "type": "any" 6170 | }, 6171 | { 6172 | "key": "showPassword", 6173 | "value": false, 6174 | "type": "boolean" 6175 | } 6176 | ] 6177 | }, 6178 | "method": "GET", 6179 | "header": [], 6180 | "url": { 6181 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/salesOrders({{salesOrderId}})/?$expand=paymentTerm,salesOrderLines($expand=account,item($expand=itemCategory))", 6182 | "host": [ 6183 | "{{url}}" 6184 | ], 6185 | "path": [ 6186 | "api", 6187 | "v1.0", 6188 | "companies({{companyId}})", 6189 | "salesOrders({{salesOrderId}})", 6190 | "" 6191 | ], 6192 | "query": [ 6193 | { 6194 | "key": "$expand", 6195 | "value": "paymentTerm,salesOrderLines($expand=account,item($expand=itemCategory))" 6196 | } 6197 | ] 6198 | } 6199 | }, 6200 | "response": [] 6201 | } 6202 | ] 6203 | }, 6204 | { 6205 | "name": "Count", 6206 | "item": [ 6207 | { 6208 | "name": "customers $count", 6209 | "request": { 6210 | "auth": { 6211 | "type": "basic", 6212 | "basic": [ 6213 | { 6214 | "key": "username", 6215 | "value": "{{user}}", 6216 | "type": "string" 6217 | }, 6218 | { 6219 | "key": "password", 6220 | "value": "{{password}}", 6221 | "type": "string" 6222 | }, 6223 | { 6224 | "key": "saveHelperData", 6225 | "value": true, 6226 | "type": "boolean" 6227 | }, 6228 | { 6229 | "key": "showPassword", 6230 | "value": false, 6231 | "type": "boolean" 6232 | } 6233 | ] 6234 | }, 6235 | "method": "GET", 6236 | "header": [ 6237 | { 6238 | "key": "Authorization", 6239 | "value": "Basic cGJvcnJpbmc6ZVNuSzViMGRCV2lBVm9LVEpwdzhvQ1VLYlZVbFlFdzJkOXY5ZGV0VFcwUT0=" 6240 | } 6241 | ], 6242 | "url": { 6243 | "raw": "{{url}}/api/v1.0/companies({{companyId}})/customers/$count", 6244 | "host": [ 6245 | "{{url}}" 6246 | ], 6247 | "path": [ 6248 | "api", 6249 | "v1.0", 6250 | "companies({{companyId}})", 6251 | "customers", 6252 | "$count" 6253 | ] 6254 | } 6255 | }, 6256 | "response": [] 6257 | } 6258 | ] 6259 | }, 6260 | { 6261 | "name": "Webhook", 6262 | "item": [ 6263 | { 6264 | "name": "Get supported entities", 6265 | "request": { 6266 | "method": "GET", 6267 | "header": [], 6268 | "url": { 6269 | "raw": "{{url}}/api/microsoft/runtime/beta/companies({{companyId}})/webhookSupportedResources?$filter=startswith(resource, 'v1.0')", 6270 | "host": [ 6271 | "{{url}}" 6272 | ], 6273 | "path": [ 6274 | "api", 6275 | "microsoft", 6276 | "runtime", 6277 | "beta", 6278 | "companies({{companyId}})", 6279 | "webhookSupportedResources" 6280 | ], 6281 | "query": [ 6282 | { 6283 | "key": "$filter", 6284 | "value": "startswith(resource, 'v1.0')" 6285 | } 6286 | ] 6287 | } 6288 | }, 6289 | "response": [] 6290 | }, 6291 | { 6292 | "name": "Get subscription", 6293 | "request": { 6294 | "method": "GET", 6295 | "header": [], 6296 | "url": { 6297 | "raw": "{{url}}/api/v1.0/subscriptions", 6298 | "host": [ 6299 | "{{url}}" 6300 | ], 6301 | "path": [ 6302 | "api", 6303 | "v1.0", 6304 | "subscriptions" 6305 | ] 6306 | } 6307 | }, 6308 | "response": [] 6309 | }, 6310 | { 6311 | "name": "Create subscription", 6312 | "request": { 6313 | "method": "POST", 6314 | "header": [], 6315 | "body": { 6316 | "mode": "raw", 6317 | "raw": "{\r\n \"notificationUrl\": \"https://testbcwebhook.azurewebsites.net/api/BCWebhook\",\r\n \"resource\": \"/api/v1.0/companies({{companyId}})/customers\",\r\n \"clientState\": \"SuperSecretValue123!\"\r\n}", 6318 | "options": { 6319 | "raw": { 6320 | "language": "json" 6321 | } 6322 | } 6323 | }, 6324 | "url": { 6325 | "raw": "{{url}}/api/v1.0/subscriptions", 6326 | "host": [ 6327 | "{{url}}" 6328 | ], 6329 | "path": [ 6330 | "api", 6331 | "v1.0", 6332 | "subscriptions" 6333 | ] 6334 | } 6335 | }, 6336 | "response": [] 6337 | }, 6338 | { 6339 | "name": "Renew subscription", 6340 | "request": { 6341 | "method": "PATCH", 6342 | "header": [ 6343 | { 6344 | "key": "If-Match", 6345 | "value": "*", 6346 | "type": "text" 6347 | } 6348 | ], 6349 | "body": { 6350 | "mode": "raw", 6351 | "raw": "{}", 6352 | "options": { 6353 | "raw": { 6354 | "language": "json" 6355 | } 6356 | } 6357 | }, 6358 | "url": { 6359 | "raw": "{{url}}/api/v1.0/subscriptions('3977d2176e3746488133c64ca85c8522')", 6360 | "host": [ 6361 | "{{url}}" 6362 | ], 6363 | "path": [ 6364 | "api", 6365 | "v1.0", 6366 | "subscriptions('3977d2176e3746488133c64ca85c8522')" 6367 | ] 6368 | } 6369 | }, 6370 | "response": [] 6371 | }, 6372 | { 6373 | "name": "Unsubscribe webhook", 6374 | "request": { 6375 | "method": "DELETE", 6376 | "header": [ 6377 | { 6378 | "key": "If-Match", 6379 | "value": "*", 6380 | "type": "text" 6381 | } 6382 | ], 6383 | "url": { 6384 | "raw": "{{url}}/api/v1.0/subscriptions('9efe4568975147c0908ff0dd8a8db60d')", 6385 | "host": [ 6386 | "{{url}}" 6387 | ], 6388 | "path": [ 6389 | "api", 6390 | "v1.0", 6391 | "subscriptions('9efe4568975147c0908ff0dd8a8db60d')" 6392 | ] 6393 | } 6394 | }, 6395 | "response": [] 6396 | } 6397 | ] 6398 | } 6399 | ], 6400 | "auth": { 6401 | "type": "basic", 6402 | "basic": [ 6403 | { 6404 | "key": "password", 6405 | "value": "{{password}}", 6406 | "type": "string" 6407 | }, 6408 | { 6409 | "key": "username", 6410 | "value": "{{user}}", 6411 | "type": "string" 6412 | } 6413 | ] 6414 | }, 6415 | "event": [ 6416 | { 6417 | "listen": "prerequest", 6418 | "script": { 6419 | "type": "text/javascript", 6420 | "exec": [ 6421 | "" 6422 | ] 6423 | } 6424 | }, 6425 | { 6426 | "listen": "test", 6427 | "script": { 6428 | "type": "text/javascript", 6429 | "exec": [ 6430 | "" 6431 | ] 6432 | } 6433 | } 6434 | ], 6435 | "variable": [ 6436 | { 6437 | "key": "coll-customerid", 6438 | "value": "" 6439 | } 6440 | ] 6441 | } --------------------------------------------------------------------------------