├── README.md └── SitecoreCDPPostmanCollectionV1.0.json /README.md: -------------------------------------------------------------------------------- 1 | # Sitecore CDP Postman Collection 2 | 3 | I’ve started a collection based on the Sitecore documentation and examples they've provided. You can import it into Postman and use it when working with your own Sitecore CDP sandbox. I hope you find it useful, please share any feedback. 4 | 5 | ## Authentication 6 |

To use the collection against your sandbox you need to authenticate, Sitecore CDP supports basic authentication. An API token is a unique key that Sitecore provides your organization to authenticate your services.

7 | 8 |

1. You need to obtain your client key and API token from Sitecore CDP, in the navigation pane, click System Settings -> API Access. For basic authentication:

9 | 10 |

2. You will need to update the variables in the postman collection:

11 | 12 | 13 | ## Collections Variables 14 |

Here is a list of current variables within the collection:

15 |
VariableDescriptionExamples
apiKeyIdYour Sandbox API Client Key
apiKeySecretYour Sandbox API Token
apiEndpointAll URLs referenced in the Sitecore CDP v2.1 API
data model begin with the following base URL: https://{apiEndpoint}/v2
api.boxever.com
pointOfSaleA POS is a specific storefront your organization sells products. Sitecore CDP supports multiple storefronts certain requests need to target the correct storefront.betaSpinAir
currencyCodeThe type of currency used for requests. String value (3 letter ISO 4217)."EUR", "USD", "GBP"
languageThe language captured on each page the guest visited."EN", "FR", "DE"
channelThe channel captured on each page the guest visited."WEB", "MOBILE_WEB", "MOBILE_APP"
guestRefThe unique ID of the guest generated by Sitecore CDP.guid
guestEmailThe email address for the guest.
identifiersProviderThe provider of the identifiers.ProfileSystem
identifiersIdThe ID of the identifiers.guid
dataExtensionNameThe data extension name.extEmailPreferences
dataExtensionRefThe reference of the data extension.guid
orderRefThe reference of the order.guid
orderItemRefThe reference of the order item.guid
orderContactRefThe reference of the contact on the order.guid
orderConsumerRefThe reference of the consumer on the order.guid
batchFlowsJobRefThe reference of the Batch flow.guid
decisionModelDefinitionRefThe reference of the Decision Model Definition.guid
decisionModelDefinitionRevisionThe reference of the Decision Model Definition Revisions.guid
decisionModelVariantRefThe reference of the Decision Model Variant.guid
decisionModelVariantRevisionThe reference of the Decision Model Variant Revision.guid
connectionRefThe reference of the Connection.guid
16 | -------------------------------------------------------------------------------- /SitecoreCDPPostmanCollectionV1.0.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "3c352d20-422a-4185-9eab-dce69491dcc0", 4 | "name": "SitecoreCDPCollectionV1.0", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "Guest", 10 | "item": [ 11 | { 12 | "name": "Locate Guests", 13 | "request": { 14 | "method": "GET", 15 | "header": [], 16 | "url": { 17 | "raw": "https://{{apiEndpoint}}/v2/guests?email={{guestEmail}}&identifiers.provider={{identifiersProvider}}&identifiers.id={{identifiersId}}", 18 | "protocol": "https", 19 | "host": [ 20 | "{{apiEndpoint}}" 21 | ], 22 | "path": [ 23 | "v2", 24 | "guests" 25 | ], 26 | "query": [ 27 | { 28 | "key": "email", 29 | "value": "{{guestEmail}}" 30 | }, 31 | { 32 | "key": "identifiers.provider", 33 | "value": "{{identifiersProvider}}" 34 | }, 35 | { 36 | "key": "identifiers.id", 37 | "value": "{{identifiersId}}" 38 | } 39 | ] 40 | } 41 | }, 42 | "response": [] 43 | }, 44 | { 45 | "name": "Locate Guests using paging", 46 | "request": { 47 | "method": "GET", 48 | "header": [], 49 | "url": { 50 | "raw": "https://{{apiEndpoint}}/v2/guests?offset=1&limit=3", 51 | "protocol": "https", 52 | "host": [ 53 | "{{apiEndpoint}}" 54 | ], 55 | "path": [ 56 | "v2", 57 | "guests" 58 | ], 59 | "query": [ 60 | { 61 | "key": "offset", 62 | "value": "1" 63 | }, 64 | { 65 | "key": "limit", 66 | "value": "3" 67 | } 68 | ] 69 | } 70 | }, 71 | "response": [] 72 | }, 73 | { 74 | "name": "Retrieve Guest", 75 | "protocolProfileBehavior": { 76 | "disableBodyPruning": true 77 | }, 78 | "request": { 79 | "method": "GET", 80 | "header": [], 81 | "body": { 82 | "mode": "raw", 83 | "raw": "", 84 | "options": { 85 | "raw": { 86 | "language": "json" 87 | } 88 | } 89 | }, 90 | "url": { 91 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}", 92 | "protocol": "https", 93 | "host": [ 94 | "{{apiEndpoint}}" 95 | ], 96 | "path": [ 97 | "v2", 98 | "guests", 99 | "{{guestRef}}" 100 | ] 101 | } 102 | }, 103 | "response": [] 104 | }, 105 | { 106 | "name": "Create Guest", 107 | "request": { 108 | "method": "POST", 109 | "header": [], 110 | "body": { 111 | "mode": "raw", 112 | "raw": "{\r\n \"guestType\": \"customer\" , \r\n \"title\": \"Mr\",\r\n \"firstName\": \"Bill\",\r\n \"lastName\": \"Bryers\",\r\n \"gender\": \"male\",\r\n \"language\": \"EN\",\r\n \"dateOfBirth\": \"1971-03-22T00:00:00.000Z\",\r\n \"emails\": [\r\n \"bill.bryers@sitecorecdp.com\"\r\n ],\r\n \"phoneNumbers\": [\r\n \"0851234567\"\r\n ],\r\n \"nationality\": \"American\"\r\n}", 113 | "options": { 114 | "raw": { 115 | "language": "json" 116 | } 117 | } 118 | }, 119 | "url": { 120 | "raw": "https://{{apiEndpoint}}/v2/guests", 121 | "protocol": "https", 122 | "host": [ 123 | "{{apiEndpoint}}" 124 | ], 125 | "path": [ 126 | "v2", 127 | "guests" 128 | ] 129 | } 130 | }, 131 | "response": [] 132 | }, 133 | { 134 | "name": "Update Guest", 135 | "request": { 136 | "method": "POST", 137 | "header": [], 138 | "body": { 139 | "mode": "raw", 140 | "raw": "{\r\n \"guestType\": \"customer\" , \r\n \"title\": \"Mr\",\r\n \"firstName\": \"Bill\",\r\n \"lastName\": \"Bryers\",\r\n \"gender\": \"male\",\r\n \"language\": \"EN\",\r\n \"dateOfBirth\": \"1971-03-22T00:00:00.000Z\",\r\n \"emails\": [\r\n \"bill.bryers@sitecorecdp.com\"\r\n ],\r\n \"phoneNumbers\": [\r\n \"0851234566\"\r\n ],\r\n \"nationality\": \"American\",\r\n \"city\": \"Hawkins\",\r\n \"state\":\"IN\",\r\n \"country\":\"US\"\r\n}", 141 | "options": { 142 | "raw": { 143 | "language": "json" 144 | } 145 | } 146 | }, 147 | "url": { 148 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}", 149 | "protocol": "https", 150 | "host": [ 151 | "{{apiEndpoint}}" 152 | ], 153 | "path": [ 154 | "v2", 155 | "guests", 156 | "{{guestRef}}" 157 | ] 158 | } 159 | }, 160 | "response": [] 161 | } 162 | ] 163 | }, 164 | { 165 | "name": "Guest Data Extensions", 166 | "item": [ 167 | { 168 | "name": "Locate Guest Data Extension", 169 | "request": { 170 | "method": "GET", 171 | "header": [], 172 | "url": { 173 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}/extEmailPreferences", 174 | "protocol": "https", 175 | "host": [ 176 | "{{apiEndpoint}}" 177 | ], 178 | "path": [ 179 | "v2", 180 | "guests", 181 | "{{guestRef}}", 182 | "extEmailPreferences" 183 | ] 184 | } 185 | }, 186 | "response": [] 187 | }, 188 | { 189 | "name": "Retrieve Guest Data Extension", 190 | "request": { 191 | "method": "GET", 192 | "header": [], 193 | "url": { 194 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}/extEmailPreferences/", 195 | "protocol": "https", 196 | "host": [ 197 | "{{apiEndpoint}}" 198 | ], 199 | "path": [ 200 | "v2", 201 | "guests", 202 | "{{guestRef}}", 203 | "extEmailPreferences", 204 | "" 205 | ] 206 | } 207 | }, 208 | "response": [] 209 | }, 210 | { 211 | "name": "Create Guest Data Extension", 212 | "request": { 213 | "method": "POST", 214 | "header": [], 215 | "body": { 216 | "mode": "raw", 217 | "raw": "{\r\n \"key\": \"email\",\r\n \"format\": \"HTML\",\r\n \"acceptedTermsAndConditions\": true,\r\n \"shortDescription\": \"The email preferences for this guest\",\r\n \"longDescription\": \"The email preferences for this guest\"\r\n}", 218 | "options": { 219 | "raw": { 220 | "language": "json" 221 | } 222 | } 223 | }, 224 | "url": { 225 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}/extEmailPreferences/", 226 | "protocol": "https", 227 | "host": [ 228 | "{{apiEndpoint}}" 229 | ], 230 | "path": [ 231 | "v2", 232 | "guests", 233 | "{{guestRef}}", 234 | "extEmailPreferences", 235 | "" 236 | ] 237 | } 238 | }, 239 | "response": [] 240 | }, 241 | { 242 | "name": "Update Guest Data Extension", 243 | "request": { 244 | "method": "POST", 245 | "header": [], 246 | "body": { 247 | "mode": "raw", 248 | "raw": "{\r\n \"key\": \"email\",\r\n \"format\": \"HTML\",\r\n \"acceptedTermsAndConditions\": false,\r\n \"shortDescription\": \"The email preferences for this guest\",\r\n \"longDescription\": \"The email preferences for this guest\"\r\n}", 249 | "options": { 250 | "raw": { 251 | "language": "json" 252 | } 253 | } 254 | }, 255 | "url": { 256 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}/extEmailPreferences", 257 | "protocol": "https", 258 | "host": [ 259 | "{{apiEndpoint}}" 260 | ], 261 | "path": [ 262 | "v2", 263 | "guests", 264 | "{{guestRef}}", 265 | "extEmailPreferences" 266 | ] 267 | } 268 | }, 269 | "response": [] 270 | }, 271 | { 272 | "name": "Delete Guest Data Extension", 273 | "request": { 274 | "method": "DELETE", 275 | "header": [], 276 | "url": { 277 | "raw": "https://{{apiEndpoint}}/v2/guests/{{guestRef}}/extEmailPreferences/42264dac-d2c2-531c-84aa-a85ef8735b6f", 278 | "protocol": "https", 279 | "host": [ 280 | "{{apiEndpoint}}" 281 | ], 282 | "path": [ 283 | "v2", 284 | "guests", 285 | "{{guestRef}}", 286 | "extEmailPreferences", 287 | "42264dac-d2c2-531c-84aa-a85ef8735b6f" 288 | ] 289 | } 290 | }, 291 | "response": [] 292 | } 293 | ] 294 | }, 295 | { 296 | "name": "Orders", 297 | "item": [ 298 | { 299 | "name": "Locate Orders for Guest", 300 | "request": { 301 | "method": "GET", 302 | "header": [], 303 | "url": { 304 | "raw": "https://{{apiEndpoint}}/v2/orders?guestRef={{guestRef}}", 305 | "protocol": "https", 306 | "host": [ 307 | "{{apiEndpoint}}" 308 | ], 309 | "path": [ 310 | "v2", 311 | "orders" 312 | ], 313 | "query": [ 314 | { 315 | "key": "guestRef", 316 | "value": "{{guestRef}}" 317 | } 318 | ] 319 | } 320 | }, 321 | "response": [] 322 | }, 323 | { 324 | "name": "Retrieve Order", 325 | "request": { 326 | "method": "GET", 327 | "header": [], 328 | "url": { 329 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}", 330 | "protocol": "https", 331 | "host": [ 332 | "{{apiEndpoint}}" 333 | ], 334 | "path": [ 335 | "v2", 336 | "orders", 337 | "{{orderRef}}" 338 | ] 339 | } 340 | }, 341 | "response": [] 342 | }, 343 | { 344 | "name": "Create Order", 345 | "request": { 346 | "method": "POST", 347 | "header": [], 348 | "body": { 349 | "mode": "raw", 350 | "raw": "{\r\n\"orderedAt\": \"2021-11-11T15:00:03.123Z\",\r\n\"price\": 100.00,\r\n\"currencyCode\": \"USD\",\r\n\"referenceId\": \"00001\",\r\n\"paymentType\": \"Card\",\r\n\"cardType\": \"Visa\",\r\n\"pointOfSale\": \"default\",\r\n\"channel\": \"WEB\",\r\n\"status\": \"PURCHASED\"\r\n}", 351 | "options": { 352 | "raw": { 353 | "language": "json" 354 | } 355 | } 356 | }, 357 | "url": { 358 | "raw": "https://{{apiEndpoint}}/v2/orders?guestRef={{guestRef}}", 359 | "protocol": "https", 360 | "host": [ 361 | "{{apiEndpoint}}" 362 | ], 363 | "path": [ 364 | "v2", 365 | "orders" 366 | ], 367 | "query": [ 368 | { 369 | "key": "guestRef", 370 | "value": "{{guestRef}}" 371 | } 372 | ] 373 | } 374 | }, 375 | "response": [] 376 | } 377 | ] 378 | }, 379 | { 380 | "name": "Order Items", 381 | "item": [ 382 | { 383 | "name": "Create Order Item", 384 | "request": { 385 | "method": "POST", 386 | "header": [], 387 | "url": { 388 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/orderItems", 389 | "protocol": "https", 390 | "host": [ 391 | "{{apiEndpoint}}" 392 | ], 393 | "path": [ 394 | "v2", 395 | "orders", 396 | "{{orderRef}}", 397 | "orderItems" 398 | ] 399 | } 400 | }, 401 | "response": [] 402 | }, 403 | { 404 | "name": "Locate Order Items", 405 | "request": { 406 | "method": "GET", 407 | "header": [], 408 | "url": { 409 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/orderItems", 410 | "protocol": "https", 411 | "host": [ 412 | "{{apiEndpoint}}" 413 | ], 414 | "path": [ 415 | "v2", 416 | "orders", 417 | "{{orderRef}}", 418 | "orderItems" 419 | ] 420 | } 421 | }, 422 | "response": [] 423 | }, 424 | { 425 | "name": "Retrieve Order Item", 426 | "request": { 427 | "method": "GET", 428 | "header": [], 429 | "url": { 430 | "raw": "https://{{apiEndpoint}}/v2/orderItems/{{orderItemRef}}/orderItems", 431 | "protocol": "https", 432 | "host": [ 433 | "{{apiEndpoint}}" 434 | ], 435 | "path": [ 436 | "v2", 437 | "orderItems", 438 | "{{orderItemRef}}", 439 | "orderItems" 440 | ] 441 | } 442 | }, 443 | "response": [] 444 | }, 445 | { 446 | "name": "Update Order Item", 447 | "request": { 448 | "method": "POST", 449 | "header": [], 450 | "url": { 451 | "raw": "https://{{apiEndpoint}}/v2/orderItems/{{orderItemRef}}", 452 | "protocol": "https", 453 | "host": [ 454 | "{{apiEndpoint}}" 455 | ], 456 | "path": [ 457 | "v2", 458 | "orderItems", 459 | "{{orderItemRef}}" 460 | ] 461 | } 462 | }, 463 | "response": [] 464 | }, 465 | { 466 | "name": "Delete Order Item", 467 | "request": { 468 | "method": "DELETE", 469 | "header": [], 470 | "url": { 471 | "raw": "https://{{apiEndpoint}}/v2/orderItems/{{orderItemRef}}", 472 | "protocol": "https", 473 | "host": [ 474 | "{{apiEndpoint}}" 475 | ], 476 | "path": [ 477 | "v2", 478 | "orderItems", 479 | "{{orderItemRef}}" 480 | ] 481 | } 482 | }, 483 | "response": [] 484 | } 485 | ] 486 | }, 487 | { 488 | "name": "Order Contacts", 489 | "item": [ 490 | { 491 | "name": "Locate Order Contacts", 492 | "request": { 493 | "method": "GET", 494 | "header": [], 495 | "url": { 496 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/contacts", 497 | "protocol": "https", 498 | "host": [ 499 | "{{apiEndpoint}}" 500 | ], 501 | "path": [ 502 | "v2", 503 | "orders", 504 | "{{orderRef}}", 505 | "contacts" 506 | ] 507 | } 508 | }, 509 | "response": [] 510 | }, 511 | { 512 | "name": "Retrieve Order Contact", 513 | "request": { 514 | "method": "GET", 515 | "header": [], 516 | "url": { 517 | "raw": "https://{{apiEndpoint}}/v2/orderContacts/{{orderContactRef}}", 518 | "protocol": "https", 519 | "host": [ 520 | "{{apiEndpoint}}" 521 | ], 522 | "path": [ 523 | "v2", 524 | "orderContacts", 525 | "{{orderContactRef}}" 526 | ] 527 | } 528 | }, 529 | "response": [] 530 | }, 531 | { 532 | "name": "Create Order Contact", 533 | "request": { 534 | "method": "POST", 535 | "header": [], 536 | "body": { 537 | "mode": "raw", 538 | "raw": "{\r\n \"title\": \"Mr\",\r\n \"firstName\": \"Jack\",\r\n \"lastName\": \"Smith\",\r\n \"gender\": \"male\",\r\n \"dateOfBirth\": \"1976-10-28T00:00:00.000Z\",\r\n \"emails\": [\r\n \"jack.smith@boxever.com\"\r\n ],\r\n \"phoneNumbers\": [\r\n \"+353161123345\",\r\n \"+353861123345\"\r\n ],\r\n \"nationality\": \"Irish\",\r\n \"passportNumber\": \"PZ4A9565\",\r\n \"guest\": {\r\n \"href\": \"https://{{apiEndpoint}}/v2/guests/{{guestRef}}\"\r\n }\r\n}", 539 | "options": { 540 | "raw": { 541 | "language": "json" 542 | } 543 | } 544 | }, 545 | "url": { 546 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/contacts", 547 | "protocol": "https", 548 | "host": [ 549 | "{{apiEndpoint}}" 550 | ], 551 | "path": [ 552 | "v2", 553 | "orders", 554 | "{{orderRef}}", 555 | "contacts" 556 | ] 557 | } 558 | }, 559 | "response": [] 560 | }, 561 | { 562 | "name": "Update Order Contact", 563 | "request": { 564 | "method": "POST", 565 | "header": [], 566 | "body": { 567 | "mode": "raw", 568 | "raw": "{\r\n \"title\": \"Mr\",\r\n \"firstName\": \"Bill\",\r\n \"lastName\": \"Bryers\",\r\n \"gender\": \"male\",\r\n \"dateOfBirth\": \"1976-10-28T00:00:00.000Z\",\r\n \"emails\": [\r\n \"bill.bryers@sitecorecdp.com\"\r\n ],\r\n \"phoneNumbers\": [\r\n \"+353161123345\",\r\n \"+110851234566\"\r\n ],\r\n \"nationality\": \"American\",\r\n \"passportNumber\": \"PZ4A9565\",\r\n \"guest\": {\r\n \"href\": \"https://{{apiEndpoint}}/v2/guests/{{guestRef}}\"\r\n }\r\n}", 569 | "options": { 570 | "raw": { 571 | "language": "json" 572 | } 573 | } 574 | }, 575 | "url": { 576 | "raw": "https://{{apiEndpoint}}/v2/orderContacts/{{orderContactRef}}", 577 | "protocol": "https", 578 | "host": [ 579 | "{{apiEndpoint}}" 580 | ], 581 | "path": [ 582 | "v2", 583 | "orderContacts", 584 | "{{orderContactRef}}" 585 | ] 586 | } 587 | }, 588 | "response": [] 589 | }, 590 | { 591 | "name": "Delete Order Contact", 592 | "request": { 593 | "method": "DELETE", 594 | "header": [], 595 | "body": { 596 | "mode": "raw", 597 | "raw": "{\r\n \"title\": \"Mr\",\r\n \"firstName\": \"Jack\",\r\n \"lastName\": \"Smith\",\r\n \"gender\": \"male\",\r\n \"dateOfBirth\": \"1976-10-28T00:00:00.000Z\",\r\n \"emails\": [\r\n \"jack.smith@boxever.com\"\r\n ],\r\n \"phoneNumbers\": [\r\n \"+353161123345\",\r\n \"+353861123345\"\r\n ],\r\n \"nationality\": \"Irish\",\r\n \"passportNumber\": \"PZ4A9565\",\r\n \"guest\": {\r\n \"href\": \"https://{apiEndpoint}/v2/guests/9d94ee11-7043-4b71-980c-a777d00a7b46\"\r\n }\r\n}", 598 | "options": { 599 | "raw": { 600 | "language": "json" 601 | } 602 | } 603 | }, 604 | "url": { 605 | "raw": "https://{{apiEndpoint}}/v2/orderContacts/{{orderContactRef}}", 606 | "protocol": "https", 607 | "host": [ 608 | "{{apiEndpoint}}" 609 | ], 610 | "path": [ 611 | "v2", 612 | "orderContacts", 613 | "{{orderContactRef}}" 614 | ] 615 | } 616 | }, 617 | "response": [] 618 | } 619 | ] 620 | }, 621 | { 622 | "name": "Order Consumer", 623 | "item": [ 624 | { 625 | "name": "Locate Order Consumer", 626 | "request": { 627 | "method": "GET", 628 | "header": [], 629 | "url": { 630 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/consumers", 631 | "protocol": "https", 632 | "host": [ 633 | "{{apiEndpoint}}" 634 | ], 635 | "path": [ 636 | "v2", 637 | "orders", 638 | "{{orderRef}}", 639 | "consumers" 640 | ] 641 | } 642 | }, 643 | "response": [] 644 | }, 645 | { 646 | "name": "Retrieve Order Consumer", 647 | "request": { 648 | "method": "GET", 649 | "header": [], 650 | "url": { 651 | "raw": "https://{{apiEndpoint}}/v2/orderConsumers/{{orderConsumerRef}}", 652 | "protocol": "https", 653 | "host": [ 654 | "{{apiEndpoint}}" 655 | ], 656 | "path": [ 657 | "v2", 658 | "orderConsumers", 659 | "{{orderConsumerRef}}" 660 | ] 661 | } 662 | }, 663 | "response": [] 664 | }, 665 | { 666 | "name": "Create Order Consumer", 667 | "request": { 668 | "method": "POST", 669 | "header": [], 670 | "body": { 671 | "mode": "raw", 672 | "raw": "{\r\n \"title\": \"Mr\",\r\n \"firstName\": \"Tom\",\r\n \"lastName\": \"Smith\",\r\n \"gender\": \"male\",\r\n \"guest\": {\r\n \"href\": \"http://{{apiEndpoint}}/v2/guests/{{guestRef}}\"\r\n },\r\n \"orderItems\": {\r\n \"items\" : [{\r\n \"href\": \"http://{{apiEndpoint}}/v2/orderItems/{{orderItemRef}}\"\r\n }]\r\n }\r\n}", 673 | "options": { 674 | "raw": { 675 | "language": "json" 676 | } 677 | } 678 | }, 679 | "url": { 680 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}/consumers", 681 | "protocol": "https", 682 | "host": [ 683 | "{{apiEndpoint}}" 684 | ], 685 | "path": [ 686 | "v2", 687 | "orders", 688 | "{{orderRef}}", 689 | "consumers" 690 | ] 691 | } 692 | }, 693 | "response": [] 694 | }, 695 | { 696 | "name": "Update Order Consumer", 697 | "request": { 698 | "method": "POST", 699 | "header": [], 700 | "body": { 701 | "mode": "raw", 702 | "raw": "{\r\n \"title\": \"Mr\",\r\n \"firstName\": \"Tom\",\r\n \"lastName\": \"Smith\",\r\n \"gender\": \"male\",\r\n \"guest\": {\r\n \"href\": \"http://{{apiEndpoint}}/v2/guests/{{guestRef}}\"\r\n },\r\n \"orderItems\": {\r\n \"items\" : [{\r\n \"href\": \"http://{{apiEndpoint}}/v2/orderItems/{{orderItemRef}}\"\r\n }]\r\n }\r\n}", 703 | "options": { 704 | "raw": { 705 | "language": "json" 706 | } 707 | } 708 | }, 709 | "url": { 710 | "raw": "https://{{apiEndpoint}}/v2/orderConsumers/{{orderConsumerRef}}", 711 | "protocol": "https", 712 | "host": [ 713 | "{{apiEndpoint}}" 714 | ], 715 | "path": [ 716 | "v2", 717 | "orderConsumers", 718 | "{{orderConsumerRef}}" 719 | ] 720 | } 721 | }, 722 | "response": [] 723 | } 724 | ] 725 | }, 726 | { 727 | "name": "Audience Sync", 728 | "item": [ 729 | { 730 | "name": "Locate Batch Flows Job", 731 | "request": { 732 | "method": "GET", 733 | "header": [], 734 | "url": { 735 | "raw": "https://{{apiEndpoint}}/v2/batchFlowsJob?flowRef=9d496538-6079-49ff-8911-9964f0333528&expand=true", 736 | "protocol": "https", 737 | "host": [ 738 | "{{apiEndpoint}}" 739 | ], 740 | "path": [ 741 | "v2", 742 | "batchFlowsJob" 743 | ], 744 | "query": [ 745 | { 746 | "key": "flowRef", 747 | "value": "9d496538-6079-49ff-8911-9964f0333528" 748 | }, 749 | { 750 | "key": "expand", 751 | "value": "true" 752 | } 753 | ] 754 | } 755 | }, 756 | "response": [] 757 | }, 758 | { 759 | "name": "Retrieve Batch Flows Job", 760 | "request": { 761 | "method": "GET", 762 | "header": [], 763 | "url": { 764 | "raw": "https://{{apiEndpoint}}/v2/batchFlowsJob/{{batchFlowsJobRef}}", 765 | "protocol": "https", 766 | "host": [ 767 | "{{apiEndpoint}}" 768 | ], 769 | "path": [ 770 | "v2", 771 | "batchFlowsJob", 772 | "{{batchFlowsJobRef}}" 773 | ] 774 | } 775 | }, 776 | "response": [] 777 | }, 778 | { 779 | "name": "Retrieve Batch Flows Output", 780 | "request": { 781 | "method": "GET", 782 | "header": [], 783 | "url": { 784 | "raw": "https://{{apiEndpoint}}/v2/batchFlowOutput/{{batchFlowsJobRef}}/files", 785 | "protocol": "https", 786 | "host": [ 787 | "{{apiEndpoint}}" 788 | ], 789 | "path": [ 790 | "v2", 791 | "batchFlowOutput", 792 | "{{batchFlowsJobRef}}", 793 | "files" 794 | ] 795 | } 796 | }, 797 | "response": [] 798 | } 799 | ] 800 | }, 801 | { 802 | "name": "Decisions", 803 | "item": [ 804 | { 805 | "name": "Retrieve Decision Model Definitions", 806 | "request": { 807 | "method": "GET", 808 | "header": [], 809 | "url": null 810 | }, 811 | "response": [] 812 | }, 813 | { 814 | "name": "Retrieve Decision Model Definition Reference", 815 | "request": { 816 | "method": "GET", 817 | "header": [], 818 | "url": { 819 | "raw": "https://{{apiEndpoint}}/v2/orders/{{orderRef}}", 820 | "protocol": "https", 821 | "host": [ 822 | "{{apiEndpoint}}" 823 | ], 824 | "path": [ 825 | "v2", 826 | "orders", 827 | "{{orderRef}}" 828 | ] 829 | } 830 | }, 831 | "response": [] 832 | }, 833 | { 834 | "name": "Create Decision Model Definition", 835 | "request": { 836 | "method": "POST", 837 | "header": [], 838 | "body": { 839 | "mode": "raw", 840 | "raw": "{\r\n \"name\": \"Determine Loan Limit\",\r\n \"description\": \"customer limit calculation\"\r\n}", 841 | "options": { 842 | "raw": { 843 | "language": "json" 844 | } 845 | } 846 | }, 847 | "url": null 848 | }, 849 | "response": [] 850 | }, 851 | { 852 | "name": "Update Decision Model Definition Reference", 853 | "request": { 854 | "method": "PUT", 855 | "header": [], 856 | "body": { 857 | "mode": "raw", 858 | "raw": "{\r\n \"name\": \"TEST_1539184400561_PP_1 - archived 2018-10-10 16:04\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-10T16:04:20.878Z\",\r\n \"revision\": 4,\r\n \"archived\": true,\r\n \"deploymentConfiguration\": {\r\n \"variants\": [\r\n {\r\n \"variantRef\": \"19700f15-4069-4121-b709-1031118677c8\",\r\n \"split\": 90,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n },\r\n {\r\n \"variantRef\": \"42e882a5-c8a8-4149-be76-343409d10c1c\",\r\n \"split\": 10,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n }\r\n ]\r\n },\r\n \"variants\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/variants\"\r\n },\r\n \"revisions\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/revisions\"\r\n }\r\n}" 859 | }, 860 | "url": { 861 | "raw": "https://{{apiEndpoint}}/v2//decisionModelDefinitions/{{decisionModelDefinitionRef}}", 862 | "protocol": "https", 863 | "host": [ 864 | "{{apiEndpoint}}" 865 | ], 866 | "path": [ 867 | "v2", 868 | "", 869 | "decisionModelDefinitions", 870 | "{{decisionModelDefinitionRef}}" 871 | ] 872 | } 873 | }, 874 | "response": [] 875 | }, 876 | { 877 | "name": "Retrieve Revisions of Decision Model Definition", 878 | "protocolProfileBehavior": { 879 | "disableBodyPruning": true 880 | }, 881 | "request": { 882 | "method": "GET", 883 | "header": [], 884 | "body": { 885 | "mode": "raw", 886 | "raw": "{\r\n \"name\": \"TEST_1539184400561_PP_1 - archived 2018-10-10 16:04\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-10T16:04:20.878Z\",\r\n \"revision\": 4,\r\n \"archived\": true,\r\n \"deploymentConfiguration\": {\r\n \"variants\": [\r\n {\r\n \"variantRef\": \"19700f15-4069-4121-b709-1031118677c8\",\r\n \"split\": 90,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n },\r\n {\r\n \"variantRef\": \"42e882a5-c8a8-4149-be76-343409d10c1c\",\r\n \"split\": 10,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n }\r\n ]\r\n },\r\n \"variants\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/variants\"\r\n },\r\n \"revisions\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/revisions\"\r\n }\r\n}" 887 | }, 888 | "url": { 889 | "raw": "https://{{apiEndpoint}}/v2//decisionModelDefinitions/{{decisionModelDefinitionRef}}", 890 | "protocol": "https", 891 | "host": [ 892 | "{{apiEndpoint}}" 893 | ], 894 | "path": [ 895 | "v2", 896 | "", 897 | "decisionModelDefinitions", 898 | "{{decisionModelDefinitionRef}}" 899 | ] 900 | } 901 | }, 902 | "response": [] 903 | }, 904 | { 905 | "name": "Retrieve Variants of Decision Model Reference", 906 | "request": { 907 | "method": "GET", 908 | "header": [], 909 | "url": { 910 | "raw": "https://{{apiEndpoint}}/v2//decisionModelDefinitions/{{decisionModelDefinitionRef}}/revisions/{{decisionModelDefinitionRevision}}", 911 | "protocol": "https", 912 | "host": [ 913 | "{{apiEndpoint}}" 914 | ], 915 | "path": [ 916 | "v2", 917 | "", 918 | "decisionModelDefinitions", 919 | "{{decisionModelDefinitionRef}}", 920 | "revisions", 921 | "{{decisionModelDefinitionRevision}}" 922 | ] 923 | } 924 | }, 925 | "response": [] 926 | }, 927 | { 928 | "name": "Retrieve Decision Model Definitions Revision Record", 929 | "request": { 930 | "method": "GET", 931 | "header": [], 932 | "url": { 933 | "raw": "https://{{apiEndpoint}}/v2//decisionModelDefinitions/{{decisionModelDefinitionRef}}", 934 | "protocol": "https", 935 | "host": [ 936 | "{{apiEndpoint}}" 937 | ], 938 | "path": [ 939 | "v2", 940 | "", 941 | "decisionModelDefinitions", 942 | "{{decisionModelDefinitionRef}}" 943 | ] 944 | } 945 | }, 946 | "response": [] 947 | } 948 | ] 949 | }, 950 | { 951 | "name": "Decision Variants", 952 | "item": [ 953 | { 954 | "name": "Retrieve Decision Model Variant Reference", 955 | "request": { 956 | "method": "GET", 957 | "header": [], 958 | "url": { 959 | "raw": "https://{{apiEndpoint}}/v2//decisionModelVariants/{{decisionModelVariantRef}}", 960 | "protocol": "https", 961 | "host": [ 962 | "{{apiEndpoint}}" 963 | ], 964 | "path": [ 965 | "v2", 966 | "", 967 | "decisionModelVariants", 968 | "{{decisionModelVariantRef}}" 969 | ] 970 | } 971 | }, 972 | "response": [] 973 | }, 974 | { 975 | "name": "Create Decision Model Variant", 976 | "request": { 977 | "method": "POST", 978 | "header": [], 979 | "body": { 980 | "mode": "raw", 981 | "raw": "{ \r\n \"name\":\"Discount Seasonal Offers\",\r\n \"modifiedByUserRef\":\"25f46901-bc51-45e8-b587-148aecf1e48f\",\r\n \"modifiedAt\":\"2018-10-05T07:37:49.650Z\",\r\n \"revision\":1,\r\n \"archived\":false,\r\n \"decisionModelDefinitionRef\":\"db6ee91d-bc02-4e83-8621-a17aee09814d\",\r\n \"definition\":\"\",\r\n \"revisions\":{ \r\n \"href\":\"https://dev-api.boxever.com/v2/decisionModelVariants/4ee0797d-e229-492d-883e-1344787002b4/revisions\"\r\n },\r\n \"offers\":[ \r\n\r\n ]\r\n}" 982 | }, 983 | "url": { 984 | "raw": "https://{{apiEndpoint}}/v2//decisionModelDefinitions/{{decisionModelDefinitionRef}}/variants", 985 | "protocol": "https", 986 | "host": [ 987 | "{{apiEndpoint}}" 988 | ], 989 | "path": [ 990 | "v2", 991 | "", 992 | "decisionModelDefinitions", 993 | "{{decisionModelDefinitionRef}}", 994 | "variants" 995 | ] 996 | } 997 | }, 998 | "response": [] 999 | }, 1000 | { 1001 | "name": "Update Decision Model Variant", 1002 | "request": { 1003 | "method": "PUT", 1004 | "header": [], 1005 | "body": { 1006 | "mode": "raw", 1007 | "raw": "{\r\n \"name\": \"Control\",\r\n \"modifiedByUserRef\": \"f58e3f5a-dc4a-4dde-acf9-998580eb1975\",\r\n \"modifiedAt\": \"2018-03-10T18:28:46.269Z\",\r\n \"revision\": 1,\r\n \"archived\": false,\r\n \"decisionModelDefinitionRef\": \"6d009415-294a-4981-9341-bfa0d4867c50\",\r\n \"definition\": \"Control\",\r\n \"revisions\": {\r\n \"href\": \"https://{apiEndpoint}/v2/decisionModelVariants/d10eb511-8ac7-44eb-a304-bdb141069084/revisions\"\r\n },\r\n \"decisionModelDefinition\": {\r\n \"href\": \"https://{apiEndpoint}/v2/decisionModelDefinitions/6d009415-294a-4981-9341-bfa0d4867c50\"\r\n },\r\n \"offers\": [],\r\n \"inProduction\": false\r\n}" 1008 | }, 1009 | "url": { 1010 | "raw": "https://{{apiEndpoint}}/v2//decisionModelVariants/{{decisionModelVariantRef}}", 1011 | "protocol": "https", 1012 | "host": [ 1013 | "{{apiEndpoint}}" 1014 | ], 1015 | "path": [ 1016 | "v2", 1017 | "", 1018 | "decisionModelVariants", 1019 | "{{decisionModelVariantRef}}" 1020 | ] 1021 | } 1022 | }, 1023 | "response": [] 1024 | }, 1025 | { 1026 | "name": "Retrieve Decision Model Variant Revisions", 1027 | "protocolProfileBehavior": { 1028 | "disableBodyPruning": true 1029 | }, 1030 | "request": { 1031 | "method": "GET", 1032 | "header": [], 1033 | "body": { 1034 | "mode": "raw", 1035 | "raw": "{\r\n \"name\": \"TEST_1539184400561_PP_1 - archived 2018-10-10 16:04\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-10T16:04:20.878Z\",\r\n \"revision\": 4,\r\n \"archived\": true,\r\n \"deploymentConfiguration\": {\r\n \"variants\": [\r\n {\r\n \"variantRef\": \"19700f15-4069-4121-b709-1031118677c8\",\r\n \"split\": 90,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n },\r\n {\r\n \"variantRef\": \"42e882a5-c8a8-4149-be76-343409d10c1c\",\r\n \"split\": 10,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n }\r\n ]\r\n },\r\n \"variants\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/variants\"\r\n },\r\n \"revisions\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/revisions\"\r\n }\r\n}" 1036 | }, 1037 | "url": { 1038 | "raw": "https://{{apiEndpoint}}/v2//decisionModelVariants/{{decisionModelVariantRef}}/revisions", 1039 | "protocol": "https", 1040 | "host": [ 1041 | "{{apiEndpoint}}" 1042 | ], 1043 | "path": [ 1044 | "v2", 1045 | "", 1046 | "decisionModelVariants", 1047 | "{{decisionModelVariantRef}}", 1048 | "revisions" 1049 | ] 1050 | } 1051 | }, 1052 | "response": [] 1053 | }, 1054 | { 1055 | "name": "Retrieve Decision Model Variant Revision", 1056 | "protocolProfileBehavior": { 1057 | "disableBodyPruning": true 1058 | }, 1059 | "request": { 1060 | "method": "GET", 1061 | "header": [], 1062 | "body": { 1063 | "mode": "raw", 1064 | "raw": "{\r\n \"name\": \"TEST_1539184400561_PP_1 - archived 2018-10-10 16:04\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-10T16:04:20.878Z\",\r\n \"revision\": 4,\r\n \"archived\": true,\r\n \"deploymentConfiguration\": {\r\n \"variants\": [\r\n {\r\n \"variantRef\": \"19700f15-4069-4121-b709-1031118677c8\",\r\n \"split\": 90,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n },\r\n {\r\n \"variantRef\": \"42e882a5-c8a8-4149-be76-343409d10c1c\",\r\n \"split\": 10,\r\n \"status\": \"PRODUCTION\",\r\n \"variantRevision\": 1\r\n }\r\n ]\r\n },\r\n \"variants\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/variants\"\r\n },\r\n \"revisions\": {\r\n \"href\": \"https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/revisions\"\r\n }\r\n}" 1065 | }, 1066 | "url": { 1067 | "raw": "https://{{apiEndpoint}}/v2//decisionModelVariants/{{decisionModelVariantRef}}/revisions/{{decisionModelVariantRevision}}", 1068 | "protocol": "https", 1069 | "host": [ 1070 | "{{apiEndpoint}}" 1071 | ], 1072 | "path": [ 1073 | "v2", 1074 | "", 1075 | "decisionModelVariants", 1076 | "{{decisionModelVariantRef}}", 1077 | "revisions", 1078 | "{{decisionModelVariantRevision}}" 1079 | ] 1080 | } 1081 | }, 1082 | "response": [] 1083 | } 1084 | ] 1085 | }, 1086 | { 1087 | "name": "Connections", 1088 | "item": [ 1089 | { 1090 | "name": "Retrieve Connections", 1091 | "request": { 1092 | "method": "GET", 1093 | "header": [], 1094 | "url": { 1095 | "raw": "https://{{apiEndpoint}}/v2//connections", 1096 | "protocol": "https", 1097 | "host": [ 1098 | "{{apiEndpoint}}" 1099 | ], 1100 | "path": [ 1101 | "v2", 1102 | "", 1103 | "connections" 1104 | ] 1105 | } 1106 | }, 1107 | "response": [] 1108 | }, 1109 | { 1110 | "name": "Create Connection", 1111 | "request": { 1112 | "method": "POST", 1113 | "header": [], 1114 | "body": { 1115 | "mode": "raw", 1116 | "raw": "{\r\n \"type\": \"string\",\r\n \"name\": \"Weather Data System\",\r\n \"description\": \"openweathermap.org connection\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-05T12:14:20.136Z\",\r\n \"revision\": 0,\r\n \"revisionComment\": \"first connection config\",\r\n \"archived\": false,\r\n \"auth\": {\r\n \"authType\": \"oauth\"\r\n },\r\n \"request\": {\r\n \"requestType\": \"get\",\r\n \"connectionUrl\": \"https://mockserver-proxy-dev.boxever.com/sample/get/basicauth\"\r\n },\r\n \"exampleValue\": \"string\",\r\n \"inputMappings\":[ \r\n { \r\n \"label\":\"City\",\r\n \"key\":\"city\",\r\n \"type\":\"String\",\r\n \"exampleValue\":\"DUB\",\r\n \"mapping\":\"\"\r\n }\r\n ],\r\n \"outputMappings\":[ \r\n { \r\n \"label\":\"Weather At Location\",\r\n \"outputReference\":\"weatherAtLocation\",\r\n \"type\":\"String\"\r\n }\r\n ],\r\n \"customHeaders\": [\r\n {\r\n \"externalConnectionRef\": \"8ad39f25-d75b-44b5-bcd0-b8f92ead9ba5\",\r\n \"name\": \"Accept\",\r\n \"value\": \"application/json\"\r\n }\r\n ],\r\n \"systemType\": \"DATA_SYSTEM\",\r\n \"connectionTimeout\": 1000,\r\n \"socketTimeout\": 1000,\r\n \"icon\": \"assets/images/icons/connections/predict-hq.png\"\r\n}", 1117 | "options": { 1118 | "raw": { 1119 | "language": "json" 1120 | } 1121 | } 1122 | }, 1123 | "url": { 1124 | "raw": "https://{{apiEndpoint}}/v2//connections", 1125 | "protocol": "https", 1126 | "host": [ 1127 | "{{apiEndpoint}}" 1128 | ], 1129 | "path": [ 1130 | "v2", 1131 | "", 1132 | "connections" 1133 | ] 1134 | } 1135 | }, 1136 | "response": [] 1137 | }, 1138 | { 1139 | "name": "Retrieve Connection", 1140 | "request": { 1141 | "method": "GET", 1142 | "header": [], 1143 | "url": { 1144 | "raw": "https://{{apiEndpoint}}/v2//connections/{{connectionRef}}", 1145 | "protocol": "https", 1146 | "host": [ 1147 | "{{apiEndpoint}}" 1148 | ], 1149 | "path": [ 1150 | "v2", 1151 | "", 1152 | "connections", 1153 | "{{connectionRef}}" 1154 | ] 1155 | } 1156 | }, 1157 | "response": [] 1158 | }, 1159 | { 1160 | "name": "Update Connection", 1161 | "request": { 1162 | "method": "PUT", 1163 | "header": [], 1164 | "body": { 1165 | "mode": "raw", 1166 | "raw": "{\r\n \"type\": \"string\",\r\n \"name\": \"Weather Data System\",\r\n \"description\": \"openweathermap.org connection\",\r\n \"modifiedByUserRef\": \"c008c81d-4941-46aa-b4e6-a17e8388498a\",\r\n \"modifiedAt\": \"2018-10-05T12:14:20.136Z\",\r\n \"revision\": 0,\r\n \"revisionComment\": \"first connection config\",\r\n \"archived\": false,\r\n \"auth\": {\r\n \"authType\": \"oauth\"\r\n },\r\n \"request\": {\r\n \"requestType\": \"get\",\r\n \"connectionUrl\": \"https://mockserver-proxy-dev.boxever.com/sample/get/basicauth\"\r\n },\r\n \"exampleValue\": \"string\",\r\n \"inputMappings\":[ \r\n { \r\n \"label\":\"City\",\r\n \"key\":\"city\",\r\n \"type\":\"String\",\r\n \"exampleValue\":\"DUB\",\r\n \"mapping\":\"\"\r\n }\r\n ],\r\n \"outputMappings\":[ \r\n { \r\n \"label\":\"Weather At Location\",\r\n \"outputReference\":\"weatherAtLocation\",\r\n \"type\":\"String\"\r\n }\r\n ],\r\n \"customHeaders\": [\r\n {\r\n \"externalConnectionRef\": \"8ad39f25-d75b-44b5-bcd0-b8f92ead9ba5\",\r\n \"name\": \"Accept\",\r\n \"value\": \"application/json\"\r\n }\r\n ],\r\n \"systemType\": \"DATA_SYSTEM\",\r\n \"connectionTimeout\": 1000,\r\n \"socketTimeout\": 1000,\r\n \"icon\": \"assets/images/icons/connections/predict-hq.png\"\r\n}", 1167 | "options": { 1168 | "raw": { 1169 | "language": "json" 1170 | } 1171 | } 1172 | }, 1173 | "url": { 1174 | "raw": "https://{{apiEndpoint}}/v2//connections/{{connectionRef}}", 1175 | "protocol": "https", 1176 | "host": [ 1177 | "{{apiEndpoint}}" 1178 | ], 1179 | "path": [ 1180 | "v2", 1181 | "", 1182 | "connections", 1183 | "{{connectionRef}}" 1184 | ] 1185 | } 1186 | }, 1187 | "response": [] 1188 | }, 1189 | { 1190 | "name": "Test Connection", 1191 | "request": { 1192 | "method": "POST", 1193 | "header": [], 1194 | "body": { 1195 | "mode": "raw", 1196 | "raw": "{ \r\n \"webService\":{ \r\n \"name\":\"Destination 2\",\r\n \"description\":\"Second\",\r\n \"modifiedByUserRef\":\"2a45ba95-208b-451a-8c72-489a25d52913\",\r\n \"modifiedAt\":\"2018-09-07T08:47:20.489Z\",\r\n \"revision\":1,\r\n \"archived\":false,\r\n \"auth\":{ \r\n \"authType\":\"none\"\r\n },\r\n \"request\":{ \r\n \"requestType\":\"post\",\r\n \"webServiceUrl\":\"https://silent-cloud-2479.getsandbox.com/cityinfo\",\r\n \"requestBody\":\"{\\n \\\"city0\\\": \\\"London\\\",\\n \\\"season0\\\": \\\"winter\\\",\\n \\\"city1\\\": \\\"Edinburgh\\\",\\n \\\"season1\\\": \\\"winter\\\"\\n}\"\r\n },\r\n \"exampleValue\":\"{\\\"city0\\\":\\\"London\\\",\\\"season0\\\":\\\"winter\\\",\\\"city1\\\":\\\"Edinburgh\\\",\\\"season1\\\":\\\"winter\\\"}\",\r\n \"inputMappings\":[ \r\n\r\n ],\r\n \"outputMappings\":[ \r\n\r\n ],\r\n \"customHeaders\":[ \r\n { \r\n \"externalWebServiceRef\":\"25bc4f8d-afcb-4f36-8fb5-14021a1efe28\",\r\n \"name\":\"Accept\",\r\n \"value\":\"application/json\"\r\n },\r\n { \r\n \"externalWebServiceRef\":\"25bc4f8d-afcb-4f36-8fb5-14021a1efe28\",\r\n \"name\":\"Accept-Encoding\",\r\n \"value\":\"gzip\"\r\n },\r\n { \r\n \"externalWebServiceRef\":\"25bc4f8d-afcb-4f36-8fb5-14021a1efe28\",\r\n \"name\":\"Content-Type\",\r\n \"value\":\"application/json\"\r\n }\r\n ],\r\n \"systemType\":\"DESTINATION\",\r\n \"connectionTimeout\":1000,\r\n \"socketTimeout\":1000,\r\n \"icon\":\"assets/images/channel-images/sms.svg\"\r\n },\r\n \"webServiceContext\":{ \r\n\r\n }\r\n}", 1197 | "options": { 1198 | "raw": { 1199 | "language": "json" 1200 | } 1201 | } 1202 | }, 1203 | "url": { 1204 | "raw": "https://{{apiEndpoint}}/v2//connections/testWebService", 1205 | "protocol": "https", 1206 | "host": [ 1207 | "{{apiEndpoint}}" 1208 | ], 1209 | "path": [ 1210 | "v2", 1211 | "", 1212 | "connections", 1213 | "testWebService" 1214 | ] 1215 | } 1216 | }, 1217 | "response": [] 1218 | } 1219 | ] 1220 | }, 1221 | { 1222 | "name": "Flow Execution", 1223 | "item": [ 1224 | { 1225 | "name": "Create Flow Execution", 1226 | "request": { 1227 | "method": "POST", 1228 | "header": [], 1229 | "body": { 1230 | "mode": "raw", 1231 | "raw": "{\r\n \"clientKey\": \"abBah8aelipaPeebae7roox2tiexoSee\",\r\n \"channel\": \"WEB\",\r\n \"language\": \"en\",\r\n \"currencyCode\": \"EUR\",\r\n \"pointOfSale\": \"retailsite.com\",\r\n \"browserId\": \"56860bff-94ba-4d84-aa37-2b5a83d5411b\",\r\n \"friendlyId\": \"home_page_banner\"\r\n}", 1232 | "options": { 1233 | "raw": { 1234 | "language": "json" 1235 | } 1236 | } 1237 | }, 1238 | "url": { 1239 | "raw": "https://{{apiEndpoint}}/v2/callFlows", 1240 | "protocol": "https", 1241 | "host": [ 1242 | "{{apiEndpoint}}" 1243 | ], 1244 | "path": [ 1245 | "v2", 1246 | "callFlows" 1247 | ] 1248 | } 1249 | }, 1250 | "response": [] 1251 | }, 1252 | { 1253 | "name": "Run Experiment", 1254 | "request": { 1255 | "method": "POST", 1256 | "header": [], 1257 | "body": { 1258 | "mode": "raw", 1259 | "raw": "{\r\n \"channel\": \"WEB\",\r\n \"language\": \"en\",\r\n \"currencyCode\": \"EUR\",\r\n \"pointOfSale\": \"eupos\",\r\n \"browserId\": \"e0lle18b-05bC-43baf-98c8-a11739304b6\",\r\n \"clientKey\": \"lbbSTATw12v5a9ffHPW1c4hAM73GxQ\",\r\n \"friendlyId\":\"product_recommender\"\r\n}", 1260 | "options": { 1261 | "raw": { 1262 | "language": "json" 1263 | } 1264 | } 1265 | }, 1266 | "url": null 1267 | }, 1268 | "response": [] 1269 | } 1270 | ] 1271 | } 1272 | ], 1273 | "auth": { 1274 | "type": "basic", 1275 | "basic": [ 1276 | { 1277 | "key": "password", 1278 | "value": "{{apiKeySecret}}", 1279 | "type": "string" 1280 | }, 1281 | { 1282 | "key": "username", 1283 | "value": "{{apiKeyId}}", 1284 | "type": "string" 1285 | } 1286 | ] 1287 | }, 1288 | "event": [ 1289 | { 1290 | "listen": "prerequest", 1291 | "script": { 1292 | "type": "text/javascript", 1293 | "exec": [ 1294 | "" 1295 | ] 1296 | } 1297 | }, 1298 | { 1299 | "listen": "test", 1300 | "script": { 1301 | "type": "text/javascript", 1302 | "exec": [ 1303 | "" 1304 | ] 1305 | } 1306 | } 1307 | ], 1308 | "variable": [ 1309 | { 1310 | "key": "apiKeyId", 1311 | "value": "" 1312 | }, 1313 | { 1314 | "key": "apiKeySecret", 1315 | "value": "" 1316 | }, 1317 | { 1318 | "key": "apiEndpoint", 1319 | "value": "api.boxever.com" 1320 | }, 1321 | { 1322 | "key": "pointOfSale", 1323 | "value": "betaSpinAir" 1324 | }, 1325 | { 1326 | "key": "currencyCode", 1327 | "value": "USD" 1328 | }, 1329 | { 1330 | "key": "language", 1331 | "value": "EN" 1332 | }, 1333 | { 1334 | "key": "channel", 1335 | "value": "WEB" 1336 | }, 1337 | { 1338 | "key": "guestRef", 1339 | "value": "5df26fc7-bb3f-4685-bbb4-fd5eca7d45c6\"" 1340 | }, 1341 | { 1342 | "key": "guestEmail", 1343 | "value": "bill.bryers@sitecorecdp.com" 1344 | }, 1345 | { 1346 | "key": "identifiersProvider", 1347 | "value": "ProfileSystem" 1348 | }, 1349 | { 1350 | "key": "identifiersId", 1351 | "value": "B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41" 1352 | }, 1353 | { 1354 | "key": "dataExtensionName", 1355 | "value": "extEmailPreferences" 1356 | }, 1357 | { 1358 | "key": "dataExtensionRef", 1359 | "value": "42264dac-d2c2-531c-84aa-a85ef8735b6f" 1360 | }, 1361 | { 1362 | "key": "orderRef", 1363 | "value": "1fb820e2-b29c-4df1-9950-77949385eb0d" 1364 | }, 1365 | { 1366 | "key": "orderItemRef", 1367 | "value": "\t\nThe reference of the order item." 1368 | }, 1369 | { 1370 | "key": "orderContactRef", 1371 | "value": "6ca149d1-8f23-456b-85df-2ce23f96a679" 1372 | }, 1373 | { 1374 | "key": "orderConsumerRef", 1375 | "value": "" 1376 | }, 1377 | { 1378 | "key": "batchFlowsJobRef", 1379 | "value": "" 1380 | }, 1381 | { 1382 | "key": "decisionModelDefinitionRef", 1383 | "value": "e8878fdb-4031-423c-a12b-5691381f0c89" 1384 | }, 1385 | { 1386 | "key": "decisionModelDefinitionRevision", 1387 | "value": "" 1388 | }, 1389 | { 1390 | "key": "decisionModelVariantRef", 1391 | "value": "" 1392 | }, 1393 | { 1394 | "key": "decisionModelVariantRevision", 1395 | "value": "" 1396 | }, 1397 | { 1398 | "key": "connectionRef", 1399 | "value": "" 1400 | } 1401 | ] 1402 | } --------------------------------------------------------------------------------