└── BC.postman_collection.json /BC.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "e4861d4b-b98c-47c1-96cf-72f14a60911b", 4 | "name": "BC", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "Get_List_API_BC", 10 | "request": { 11 | "auth": { 12 | "type": "oauth2", 13 | "oauth2": [ 14 | { 15 | "key": "accessToken", 16 | "value": "", 17 | "type": "string" 18 | }, 19 | { 20 | "key": "tokenType", 21 | "value": "Bearer", 22 | "type": "string" 23 | }, 24 | { 25 | "key": "addTokenTo", 26 | "value": "header", 27 | "type": "string" 28 | } 29 | ] 30 | }, 31 | "method": "GET", 32 | "header": [], 33 | "body": { 34 | "mode": "raw", 35 | "raw": "" 36 | }, 37 | "url": { 38 | "raw": "https://api.businesscentral.dynamics.com/\nv1.0/{{yourtenantdomain}}/sandbox/api/v1.0", 39 | "protocol": "https", 40 | "host": [ 41 | "api", 42 | "businesscentral", 43 | "dynamics", 44 | "com" 45 | ], 46 | "path": [ 47 | "v1.0", 48 | "{{yourtenantdomain}}", 49 | "sandbox", 50 | "api", 51 | "v1.0" 52 | ] 53 | } 54 | }, 55 | "response": [] 56 | }, 57 | { 58 | "name": "Get_List_Extensions", 59 | "request": { 60 | "auth": { 61 | "type": "oauth2", 62 | "oauth2": [ 63 | { 64 | "key": "accessToken", 65 | "value": "", 66 | "type": "string" 67 | }, 68 | { 69 | "key": "tokenType", 70 | "value": "Bearer", 71 | "type": "string" 72 | }, 73 | { 74 | "key": "addTokenTo", 75 | "value": "header", 76 | "type": "string" 77 | } 78 | ] 79 | }, 80 | "method": "GET", 81 | "header": [], 82 | "body": { 83 | "mode": "raw", 84 | "raw": "" 85 | }, 86 | "url": { 87 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/microsoft/automation/V1.0/companies({{bcompanyid}})/extensions", 88 | "protocol": "https", 89 | "host": [ 90 | "api", 91 | "businesscentral", 92 | "dynamics", 93 | "com" 94 | ], 95 | "path": [ 96 | "v2.0", 97 | "sandbox", 98 | "api", 99 | "microsoft", 100 | "automation", 101 | "V1.0", 102 | "companies({{bcompanyid}})", 103 | "extensions" 104 | ] 105 | } 106 | }, 107 | "response": [] 108 | }, 109 | { 110 | "name": "Uninstall_Extension", 111 | "request": { 112 | "auth": { 113 | "type": "oauth2", 114 | "oauth2": [ 115 | { 116 | "key": "accessToken", 117 | "value": "", 118 | "type": "string" 119 | }, 120 | { 121 | "key": "tokenType", 122 | "value": "Bearer", 123 | "type": "string" 124 | }, 125 | { 126 | "key": "addTokenTo", 127 | "value": "header", 128 | "type": "string" 129 | } 130 | ] 131 | }, 132 | "method": "POST", 133 | "header": [], 134 | "body": { 135 | "mode": "raw", 136 | "raw": "" 137 | }, 138 | "url": { 139 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/microsoft/automation/V1.0/companies({{bcompanyid}})/extensions(176cf6a4-ebb5-439b-a499-4316936c0d77)/Microsoft.NAV.uninstall", 140 | "protocol": "https", 141 | "host": [ 142 | "api", 143 | "businesscentral", 144 | "dynamics", 145 | "com" 146 | ], 147 | "path": [ 148 | "v2.0", 149 | "sandbox", 150 | "api", 151 | "microsoft", 152 | "automation", 153 | "V1.0", 154 | "companies({{bcompanyid}})", 155 | "extensions(176cf6a4-ebb5-439b-a499-4316936c0d77)", 156 | "Microsoft.NAV.uninstall" 157 | ] 158 | } 159 | }, 160 | "response": [] 161 | }, 162 | { 163 | "name": "Upload_Install_Extension", 164 | "request": { 165 | "auth": { 166 | "type": "oauth2", 167 | "oauth2": [ 168 | { 169 | "key": "accessToken", 170 | "value": "", 171 | "type": "string" 172 | }, 173 | { 174 | "key": "tokenType", 175 | "value": "Bearer", 176 | "type": "string" 177 | }, 178 | { 179 | "key": "addTokenTo", 180 | "value": "header", 181 | "type": "string" 182 | } 183 | ] 184 | }, 185 | "method": "PATCH", 186 | "header": [ 187 | { 188 | "key": "Content-Type", 189 | "value": "application/octet-stream", 190 | "type": "text" 191 | }, 192 | { 193 | "key": "If-Match", 194 | "value": "*", 195 | "type": "text" 196 | } 197 | ], 198 | "body": { 199 | "mode": "file", 200 | "file": {} 201 | }, 202 | "url": { 203 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/microsoft/automation/V1.0/companies({{bcompanyid}})/extensionUpload(0)/content", 204 | "protocol": "https", 205 | "host": [ 206 | "api", 207 | "businesscentral", 208 | "dynamics", 209 | "com" 210 | ], 211 | "path": [ 212 | "v2.0", 213 | "sandbox", 214 | "api", 215 | "microsoft", 216 | "automation", 217 | "V1.0", 218 | "companies({{bcompanyid}})", 219 | "extensionUpload(0)", 220 | "content" 221 | ] 222 | } 223 | }, 224 | "response": [] 225 | }, 226 | { 227 | "name": "Get_Ext_Install_Status", 228 | "request": { 229 | "auth": { 230 | "type": "oauth2", 231 | "oauth2": [ 232 | { 233 | "key": "accessToken", 234 | "value": "", 235 | "type": "string" 236 | }, 237 | { 238 | "key": "tokenType", 239 | "value": "Bearer", 240 | "type": "string" 241 | }, 242 | { 243 | "key": "addTokenTo", 244 | "value": "header", 245 | "type": "string" 246 | } 247 | ] 248 | }, 249 | "method": "GET", 250 | "header": [], 251 | "body": { 252 | "mode": "raw", 253 | "raw": "" 254 | }, 255 | "url": { 256 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/microsoft/automation/V1.0/companies({{bcompanyid}})/extensionDeploymentStatus", 257 | "protocol": "https", 258 | "host": [ 259 | "api", 260 | "businesscentral", 261 | "dynamics", 262 | "com" 263 | ], 264 | "path": [ 265 | "v2.0", 266 | "sandbox", 267 | "api", 268 | "microsoft", 269 | "automation", 270 | "V1.0", 271 | "companies({{bcompanyid}})", 272 | "extensionDeploymentStatus" 273 | ] 274 | } 275 | }, 276 | "response": [] 277 | }, 278 | { 279 | "name": "Get_Invoice_List_BC", 280 | "request": { 281 | "auth": { 282 | "type": "oauth2", 283 | "oauth2": [ 284 | { 285 | "key": "accessToken", 286 | "value": "", 287 | "type": "string" 288 | }, 289 | { 290 | "key": "tokenType", 291 | "value": "Bearer", 292 | "type": "string" 293 | }, 294 | { 295 | "key": "addTokenTo", 296 | "value": "header", 297 | "type": "string" 298 | } 299 | ] 300 | }, 301 | "method": "GET", 302 | "header": [], 303 | "body": { 304 | "mode": "raw", 305 | "raw": "" 306 | }, 307 | "url": { 308 | "raw": "https://api.businesscentral.dynamics.com/\nv2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices", 309 | "protocol": "https", 310 | "host": [ 311 | "api", 312 | "businesscentral", 313 | "dynamics", 314 | "com" 315 | ], 316 | "path": [ 317 | "v2.0", 318 | "sandbox", 319 | "api", 320 | "v1.0", 321 | "companies({{bcompanyid}})", 322 | "salesInvoices" 323 | ] 324 | } 325 | }, 326 | "response": [] 327 | }, 328 | { 329 | "name": "Get_Invoice_List_SpesificNumberAndLine", 330 | "request": { 331 | "auth": { 332 | "type": "oauth2", 333 | "oauth2": [ 334 | { 335 | "key": "accessToken", 336 | "value": "", 337 | "type": "string" 338 | }, 339 | { 340 | "key": "tokenType", 341 | "value": "Bearer", 342 | "type": "string" 343 | }, 344 | { 345 | "key": "addTokenTo", 346 | "value": "header", 347 | "type": "string" 348 | } 349 | ] 350 | }, 351 | "method": "GET", 352 | "header": [], 353 | "body": { 354 | "mode": "raw", 355 | "raw": "" 356 | }, 357 | "url": { 358 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices?$filter=number eq 'S-INV102225'&$expand=salesInvoiceLines($filter=sequence eq 10000)", 359 | "protocol": "https", 360 | "host": [ 361 | "api", 362 | "businesscentral", 363 | "dynamics", 364 | "com" 365 | ], 366 | "path": [ 367 | "v2.0", 368 | "sandbox", 369 | "api", 370 | "v1.0", 371 | "companies({{bcompanyid}})", 372 | "salesInvoices" 373 | ], 374 | "query": [ 375 | { 376 | "key": "$filter", 377 | "value": "number eq 'S-INV102225'" 378 | }, 379 | { 380 | "key": "$expand", 381 | "value": "salesInvoiceLines($filter=sequence eq 10000)" 382 | } 383 | ] 384 | } 385 | }, 386 | "response": [] 387 | }, 388 | { 389 | "name": "Create_SalesInvoiceHeaderOnly", 390 | "request": { 391 | "auth": { 392 | "type": "oauth2", 393 | "oauth2": [ 394 | { 395 | "key": "accessToken", 396 | "value": "", 397 | "type": "string" 398 | }, 399 | { 400 | "key": "tokenType", 401 | "value": "Bearer", 402 | "type": "string" 403 | }, 404 | { 405 | "key": "addTokenTo", 406 | "value": "header", 407 | "type": "string" 408 | } 409 | ] 410 | }, 411 | "method": "POST", 412 | "header": [ 413 | { 414 | "key": "Content-Type", 415 | "name": "Content-Type", 416 | "value": "application/json", 417 | "type": "text" 418 | } 419 | ], 420 | "body": { 421 | "mode": "raw", 422 | "raw": "{\r\n \"externalDocumentNumber\":\"\",\r\n \"invoiceDate\":\"2018-12-25\",\r\n \"dueDate\":\"2018-12-25\",\r\n \"customerNumber\":\"10000\",\r\n \"salesperson\":\"\",\r\n \"pricesIncludeTax\":false\r\n}" 423 | }, 424 | "url": { 425 | "raw": "https://api.businesscentral.dynamics.com/\nv2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices", 426 | "protocol": "https", 427 | "host": [ 428 | "api", 429 | "businesscentral", 430 | "dynamics", 431 | "com" 432 | ], 433 | "path": [ 434 | "v2.0", 435 | "sandbox", 436 | "api", 437 | "v1.0", 438 | "companies({{bcompanyid}})", 439 | "salesInvoices" 440 | ] 441 | } 442 | }, 443 | "response": [] 444 | }, 445 | { 446 | "name": "Get_SalesInvoice_With_Lines", 447 | "request": { 448 | "auth": { 449 | "type": "oauth2", 450 | "oauth2": [ 451 | { 452 | "key": "accessToken", 453 | "value": "", 454 | "type": "string" 455 | }, 456 | { 457 | "key": "tokenType", 458 | "value": "Bearer", 459 | "type": "string" 460 | }, 461 | { 462 | "key": "addTokenTo", 463 | "value": "header", 464 | "type": "string" 465 | } 466 | ] 467 | }, 468 | "method": "GET", 469 | "header": [], 470 | "body": { 471 | "mode": "raw", 472 | "raw": "" 473 | }, 474 | "url": { 475 | "raw": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)?$expand=salesInvoiceLines($filter=sequence eq 10000)", 476 | "protocol": "https", 477 | "host": [ 478 | "api", 479 | "businesscentral", 480 | "dynamics", 481 | "com" 482 | ], 483 | "path": [ 484 | "v2.0", 485 | "sandbox", 486 | "api", 487 | "v1.0", 488 | "companies({{bcompanyid}})", 489 | "salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)" 490 | ], 491 | "query": [ 492 | { 493 | "key": "$expand", 494 | "value": "salesInvoiceLines($filter=sequence eq 10000)" 495 | } 496 | ] 497 | } 498 | }, 499 | "response": [] 500 | }, 501 | { 502 | "name": "CreateSalesInvoiceWithLines", 503 | "request": { 504 | "auth": { 505 | "type": "oauth2", 506 | "oauth2": [ 507 | { 508 | "key": "accessToken", 509 | "value": "", 510 | "type": "string" 511 | }, 512 | { 513 | "key": "tokenType", 514 | "value": "Bearer", 515 | "type": "string" 516 | }, 517 | { 518 | "key": "addTokenTo", 519 | "value": "header", 520 | "type": "string" 521 | } 522 | ] 523 | }, 524 | "method": "POST", 525 | "header": [ 526 | { 527 | "key": "Content-Type", 528 | "name": "Content-Type", 529 | "value": "application/json", 530 | "type": "text" 531 | } 532 | ], 533 | "body": { 534 | "mode": "raw", 535 | "raw": "{\r\n \"externalDocumentNumber\":\"\",\r\n \"invoiceDate\":\"2018-12-25\",\r\n \"dueDate\":\"2018-12-25\",\r\n \"customerNumber\":\"10000\",\r\n \"salesInvoiceLines\" :\r\n [\r\n\t{\r\n\t \"sequence\":10000,\r\n\t \"lineType\":\"Item\",\r\n\t \"itemId\": \"715f88b5-c1df-e911-bb22-000d3ab0ebc8\",\r\n\t \"description\":\"12 GG INTERNATIONAL\",\r\n\t \"unitPrice\":20000,\r\n\t \"quantity\":10,\r\n \"unitOfMeasure\": {\r\n \"code\": \"PCS\",\r\n \"displayName\": \"Piece\",\r\n \"symbol\": null,\r\n \"unitConversion\": null\r\n }\r\n\t},\r\n\t{\r\n\t \"sequence\":20000,\r\n\t \"lineType\":\"Item\",\r\n\t \"itemId\": \"715f88b5-c1df-e911-bb22-000d3ab0ebc8\",\r\n\t \"description\":\"ES TEH MANIS\",\r\n\t \"unitPrice\":5000,\r\n\t \"quantity\":5,\r\n \"unitOfMeasure\": {\r\n \"code\": \"PCS\",\r\n \"displayName\": \"Piece\",\r\n \"symbol\": null,\r\n \"unitConversion\": null\r\n }\r\n\t}\r\n ]\r\n}" 536 | }, 537 | "url": { 538 | "raw": "https://api.businesscentral.dynamics.com/\nv2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices", 539 | "protocol": "https", 540 | "host": [ 541 | "api", 542 | "businesscentral", 543 | "dynamics", 544 | "com" 545 | ], 546 | "path": [ 547 | "v2.0", 548 | "sandbox", 549 | "api", 550 | "v1.0", 551 | "companies({{bcompanyid}})", 552 | "salesInvoices" 553 | ] 554 | } 555 | }, 556 | "response": [] 557 | }, 558 | { 559 | "name": "Delete_SalesInvoice", 560 | "request": { 561 | "auth": { 562 | "type": "oauth2", 563 | "oauth2": [ 564 | { 565 | "key": "accessToken", 566 | "value": "", 567 | "type": "string" 568 | }, 569 | { 570 | "key": "tokenType", 571 | "value": "Bearer", 572 | "type": "string" 573 | }, 574 | { 575 | "key": "addTokenTo", 576 | "value": "header", 577 | "type": "string" 578 | } 579 | ] 580 | }, 581 | "method": "DELETE", 582 | "header": [ 583 | { 584 | "key": "Content-Type", 585 | "name": "Content-Type", 586 | "value": "application/json", 587 | "type": "text" 588 | } 589 | ], 590 | "body": { 591 | "mode": "raw", 592 | "raw": "" 593 | }, 594 | "url": { 595 | "raw": "https://api.businesscentral.dynamics.com/\nv2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices(1f27be78-7321-ea11-a814-000d3a8cd04a)", 596 | "protocol": "https", 597 | "host": [ 598 | "api", 599 | "businesscentral", 600 | "dynamics", 601 | "com" 602 | ], 603 | "path": [ 604 | "v2.0", 605 | "sandbox", 606 | "api", 607 | "v1.0", 608 | "companies({{bcompanyid}})", 609 | "salesInvoices(1f27be78-7321-ea11-a814-000d3a8cd04a)" 610 | ] 611 | } 612 | }, 613 | "response": [] 614 | }, 615 | { 616 | "name": "Update_SalesInvoiceHeader", 617 | "request": { 618 | "auth": { 619 | "type": "oauth2", 620 | "oauth2": [ 621 | { 622 | "key": "accessToken", 623 | "value": "", 624 | "type": "string" 625 | }, 626 | { 627 | "key": "tokenType", 628 | "value": "Bearer", 629 | "type": "string" 630 | }, 631 | { 632 | "key": "addTokenTo", 633 | "value": "header", 634 | "type": "string" 635 | } 636 | ] 637 | }, 638 | "method": "PATCH", 639 | "header": [ 640 | { 641 | "key": "Content-Type", 642 | "name": "Content-Type", 643 | "value": "application/json", 644 | "type": "text" 645 | }, 646 | { 647 | "key": "If-Match", 648 | "value": "*", 649 | "type": "text" 650 | } 651 | ], 652 | "body": { 653 | "mode": "raw", 654 | "raw": "{\n\t\"externalDocumentNumber\": \"ABC\"\n}" 655 | }, 656 | "url": { 657 | "raw": "https://api.businesscentral.dynamics.com/\nv2.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)", 658 | "protocol": "https", 659 | "host": [ 660 | "api", 661 | "businesscentral", 662 | "dynamics", 663 | "com" 664 | ], 665 | "path": [ 666 | "v2.0", 667 | "sandbox", 668 | "api", 669 | "v1.0", 670 | "companies({{bcompanyid}})", 671 | "salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)" 672 | ] 673 | } 674 | }, 675 | "response": [] 676 | }, 677 | { 678 | "name": "Update_SalesInvoiceLine", 679 | "request": { 680 | "auth": { 681 | "type": "oauth2", 682 | "oauth2": [ 683 | { 684 | "key": "accessToken", 685 | "value": "", 686 | "type": "string" 687 | }, 688 | { 689 | "key": "tokenType", 690 | "value": "Bearer", 691 | "type": "string" 692 | }, 693 | { 694 | "key": "addTokenTo", 695 | "value": "header", 696 | "type": "string" 697 | } 698 | ] 699 | }, 700 | "method": "PATCH", 701 | "header": [ 702 | { 703 | "key": "Content-Type", 704 | "name": "Content-Type", 705 | "value": "application/json", 706 | "type": "text" 707 | }, 708 | { 709 | "key": "If-Match", 710 | "value": "*", 711 | "type": "text" 712 | } 713 | ], 714 | "body": { 715 | "mode": "raw", 716 | "raw": "{\r\n\t\"quantity\":20\r\n}" 717 | }, 718 | "url": { 719 | "raw": "https://api.businesscentral.dynamics.com/\nv1.0/sandbox/api/v1.0/companies({{bcompanyid}})/salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)/salesInvoiceLines('ce10c625-7421-ea11-a814-000d3a8cd04a-10000')", 720 | "protocol": "https", 721 | "host": [ 722 | "api", 723 | "businesscentral", 724 | "dynamics", 725 | "com" 726 | ], 727 | "path": [ 728 | "v1.0", 729 | "sandbox", 730 | "api", 731 | "v1.0", 732 | "companies({{bcompanyid}})", 733 | "salesInvoices(ce10c625-7421-ea11-a814-000d3a8cd04a)", 734 | "salesInvoiceLines('ce10c625-7421-ea11-a814-000d3a8cd04a-10000')" 735 | ] 736 | } 737 | }, 738 | "response": [] 739 | } 740 | ] 741 | } --------------------------------------------------------------------------------