Annex D: Working with Webhooks

Webhooks in QPilot

Webhooks are a powerful tool that you can use within QPilot to obtain real-time data that goes on the system and use it to feed external systems, trigger specific actions and much more.

Webhooks

Webhooks in QPilot can relate to events within the platform. These events can be triggered either by user actions or by automated processes.
These are the possible events and its definitions:

Action TypeDescriptionIncluded in Payload
ScheduledOrderCreatedA new scheduled order was created.The new Scheduled Order
ScheduledOrderUpdatedThe scheduled order was updated.The previous and new Scheduled Order
ScheduledOrderDeletedThe Scheduled Order was deletedThe previous and updated Scheduled Order
ScheduledOrderPausedThe scheduled order was paused.The previous and updated Scheduled Order
ScheduledOrderActivatedThe scheduled order was activated.The previous and updated Scheduled Order
ScheduledOrderItemCreatedAn item was added to the scheduled order.The previous and updated Scheduled Order
ScheduledOrderItemUpdatedAn item was updated in the scheduled order.The previous and updated Scheduled Order
ScheduledOrderItemDeletedAn item was deleted from the scheduled order.The previous and updated Scheduled Order
ScheduledOrderItemQuantityUpdatedThe quantity of an item was updated.The previous and updated Scheduled Order
ScheduledOrderItemPriceUpdatedThe price of an item was updated.The previous and updated Scheduled Order
ScheduledOrderItemSalePriceUpdatedThe sale price of an item was updated.The previous and updated Scheduled Order
ScheduledOrderProcessedThe scheduled order was processed successfullyThe scheduled order that was processed
ScheduledOrderFailedThe scheduled order failed to processThe scheduled order that failed to process

Usage examples

Creating a Webhook that will trigger whenever a Scheduled Order Item Quantity is Updated

POST /Sites/{siteId}/Webhooks

{
   "webhookEventTypes":"ScheduledOrderItemQuantityUpdated",
   "targetUrl":"https://myeventsreceiver.app/dosomethingwhencalled"
}

A POST HTTP Call to the specified targetUrl will happen whenever a Scheduled Order item quantity is updated:

POST: https://myeventsreceiver.app/dosomethingwhencalled

{
   "id":0,
   "siteId":108,
   "scheduledOrderId":86067,
   "description":"Scheduled Order #86067 updated for Customer #183833",
   "createdUtc":"2020-05-09T14:04:22.1215114Z",
   "updatedUtc":"2020-05-09T14:04:22.1215114Z",
   "eventType":"ScheduledOrderItemQuantityUpdated",
   "previousScheduledOrder":{
      "id":86067,
      "lastProcessingCycleId":6113,
      "lastProcessingCycle":null,
      "lastOccurrenceUtc":"2020-04-30T17:58:35.493",
      "createdUtc":"2020-04-30T17:56:38.0353674",
      "updatedUtc":"2020-05-09T13:47:08.7701396",
      "scheduledOrderFailureReason":null,
      "processingErrorCode":null,
      "preProcessingValidationResultCode":null,
      "couponsHistory":[

      ],
      "customerId":"17",
      "customer":{
         "id":"17",
         "email":"[email protected]",
         "firstName":"JR",
         "lastName":"Ewing",
         "shippingFirstName":"JR",
         "shippingLastName":"Ewing",
         "shippingStreet1":"1615 Platte St",
         "shippingStreet2":"",
         "shippingCity":"Denver",
         "shippingState":"CO",
         "shippingPostcode":"80202",
         "shippingCountry":"US",
         "billingFirstName":"JR",
         "billingLastName":"Ewing",
         "billingStreet1":"1615 Platte St",
         "billingStreet2":"",
         "billingCity":"Denver",
         "billingState":"CO",
         "billingPostcode":"80202",
         "billingCountry":"US",
         "phoneNumber":"123-456-7890",
         "company":"",
         "paymentMethods":null,
         "metadata":null
      },
      "name":null,
      "nextOccurrenceUtc":"2020-05-30T17:00:00.000Z",
      "nextOccurrenceOffset":null,
      "status":"Active",
      "frequencyType":"Months",
      "frequencyDisplayName":"Every 1 months",
      "frequency":1,
      "cycles":1,
      "paymentMethodId":80968,
      "paymentMethod":{
         "id":80968,
         "createdUtc":"2020-05-09T04:26:04.4615041",
         "updatedUtc":"2020-05-09T04:27:30.4660841",
         "expirationDate":"2025-05-31T00:00:00",
         "customerId":null,
         "type":"CyberSource",
         "gatewayCustomerId":null,
         "gatewayPaymentId":"5889983634526102904008",
         "description":"MasterCard ending in 4444 (expires 05/25)",
         "expiration":"0525",
         "lastFourDigits":"4444",
         "billingFirstName":"JR",
         "billingLastName":"Ewing",
         "billingStreet1":"1615 Platte St",
         "billingStreet2":"",
         "billingCity":"Denver",
         "billingState":"CO",
         "billingPostcode":"80202",
         "billingCountry":"US",
         "isDefault":false
      },
      "authorizeOnly":false,
      "currencyIso":"USD",
      "subtotal":31.75,
      "shippingTotal":2,
      "taxTotal":null,
      "total":33.75,
      "shippingRateName":"Local Reg Shipping Denver",
      "shippingRateOptions":[
         {
            "shippingLines":[
               {
                  "sourceShippingRate":{
                     "id":201,
                     "siteId":108,
                     "shippingClass":null,
                     "country":"US",
                     "street1":null,
                     "street2":null,
                     "postcode":null,
                     "state":"CO",
                     "city":"Denver",
                     "pricePerUnit":0,
                     "basePrice":7,
                     "minUnits":0,
                     "minCycles":0,
                     "minSubtotal":0,
                     "minWeight":null,
                     "maxWeight":null,
                     "minLength":null,
                     "maxLength":null,
                     "minHeight":null,
                     "maxHeight":null,
                     "minWidth":null,
                     "maxWidth":null,
                     "weightUnitType":"Pound",
                     "lengthUnitType":null,
                     "name":"Local Delivery Denver",
                     "shippingCarrier":"FlatRate",
                     "deliveryDaysMin":0,
                     "deliveryDaysMax":0,
                     "createdUtc":"2020-04-02T14:41:13.387",
                     "updatedUtc":"2020-04-02T18:38:44.92",
                     "shippingMethods":null,
                     "shippingMethodsJson":"null"
                  },
                  "selectedShippingMethod":null,
                  "name":"Local Delivery Denver",
                  "total":7
               }
            ],
            "isDefault":false,
            "optionValue":"Local Delivery Denver",
            "optionText":"[201] Local Delivery Denver (7)"
         },
         {
            "shippingLines":[
               {
                  "sourceShippingRate":{
                     "id":203,
                     "siteId":108,
                     "shippingClass":null,
                     "country":"US",
                     "street1":null,
                     "street2":null,
                     "postcode":null,
                     "state":"CO",
                     "city":"Denver",
                     "pricePerUnit":0,
                     "basePrice":2,
                     "minUnits":0,
                     "minCycles":0,
                     "minSubtotal":0,
                     "minWeight":null,
                     "maxWeight":null,
                     "minLength":null,
                     "maxLength":null,
                     "minHeight":null,
                     "maxHeight":null,
                     "minWidth":null,
                     "maxWidth":null,
                     "weightUnitType":null,
                     "lengthUnitType":null,
                     "name":"Local Reg Shipping Denver",
                     "shippingCarrier":"FlatRate",
                     "deliveryDaysMin":0,
                     "deliveryDaysMax":0,
                     "createdUtc":"2020-04-02T18:33:46.933",
                     "updatedUtc":"2020-04-02T18:33:46.933",
                     "shippingMethods":null,
                     "shippingMethodsJson":"null"
                  },
                  "selectedShippingMethod":null,
                  "name":"Local Reg Shipping Denver",
                  "total":2
               }
            ],
            "isDefault":true,
            "optionValue":"Local Reg Shipping Denver",
            "optionText":"[203] Local Reg Shipping Denver (2)"
         }
      ],
      "preferredShippingRateOption":"",
      "shippingFirstName":"JR",
      "shippingLastName":"Ewing",
      "shippingStreet1":"1615 Platte St",
      "shippingStreet2":null,
      "shippingCity":"Denver",
      "shippingState":"CO",
      "shippingPostcode":"80202",
      "shippingCountry":"US",
      "phoneNumber":"123-456-7890",
      "company":null,
      "lifetimeValue":19.36,
      "originalExternalId":"wc-10478-1-Months",
      "note":null,
      "scheduledOrderItems":[
         {
            "id":45366,
            "product":null,
            "createdUtc":"2020-04-30T17:56:38.0353674",
            "updatedUtc":"2020-04-30T17:56:38.0353674",
            "scheduledOrderId":86067,
            "productId":null,
            "price":4,
            "salePrice":null,
            "originalSalePrice":null,
            "quantity":2,
            "cycles":1,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":45367,
            "product":null,
            "createdUtc":"2020-04-30T17:56:38.0353674",
            "updatedUtc":"2020-04-30T17:56:38.0353674",
            "scheduledOrderId":86067,
            "productId":null,
            "price":5,
            "salePrice":4,
            "originalSalePrice":null,
            "quantity":2,
            "cycles":1,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":47126,
            "product":null,
            "createdUtc":"2020-05-09T13:33:44.6637308",
            "updatedUtc":"2020-05-09T13:33:44.6637308",
            "scheduledOrderId":86067,
            "productId":null,
            "price":2.5,
            "salePrice":1.25,
            "originalSalePrice":1.25,
            "quantity":1,
            "cycles":0,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":47127,
            "product":null,
            "createdUtc":"2020-05-09T13:47:07.5201927",
            "updatedUtc":"2020-05-09T13:47:07.5201927",
            "scheduledOrderId":86067,
            "productId":null,
            "price":29,
            "salePrice":14.5,
            "originalSalePrice":14.5,
            "quantity":1,
            "cycles":0,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         }
      ],
      "estimatedDeliveryDate":null,
      "origin":null,
      "coupons":[

      ],
      "metadata":{
         "shippingRateOptions":[
            {
               "ShippingLines":[
                  {
                     "SourceShippingRate":{
                        "Id":201,
                        "SiteId":108,
                        "ShippingClass":null,
                        "Country":"US",
                        "Street1":null,
                        "Street2":null,
                        "Postcode":null,
                        "State":"CO",
                        "City":"Denver",
                        "PricePerUnit":0,
                        "BasePrice":7,
                        "MinUnits":0,
                        "MinCycles":0,
                        "MinSubtotal":0,
                        "MinWeight":null,
                        "MaxWeight":null,
                        "MinLength":null,
                        "MaxLength":null,
                        "MinHeight":null,
                        "MaxHeight":null,
                        "MinWidth":null,
                        "MaxWidth":null,
                        "WeightUnitType":"Pound",
                        "LengthUnitType":null,
                        "Name":"Local Delivery Denver",
                        "ShippingCarrier":"FlatRate",
                        "DeliveryDaysMin":0,
                        "DeliveryDaysMax":0,
                        "CreatedUtc":"2020-04-02T14:41:13.387",
                        "UpdatedUtc":"2020-04-02T18:38:44.92",
                        "ShippingMethods":null,
                        "ShippingMethodsJson":"null"
                     },
                     "SelectedShippingMethod":null,
                     "Name":"Local Delivery Denver",
                     "Total":7
                  }
               ],
               "FormattedOption":"Local Delivery Denver"
            },
            {
               "ShippingLines":[
                  {
                     "SourceShippingRate":{
                        "Id":203,
                        "SiteId":108,
                        "ShippingClass":null,
                        "Country":"US",
                        "Street1":null,
                        "Street2":null,
                        "Postcode":null,
                        "State":"CO",
                        "City":"Denver",
                        "PricePerUnit":0,
                        "BasePrice":2,
                        "MinUnits":0,
                        "MinCycles":0,
                        "MinSubtotal":0,
                        "MinWeight":null,
                        "MaxWeight":null,
                        "MinLength":null,
                        "MaxLength":null,
                        "MinHeight":null,
                        "MaxHeight":null,
                        "MinWidth":null,
                        "MaxWidth":null,
                        "WeightUnitType":null,
                        "LengthUnitType":null,
                        "Name":"Local Reg Shipping Denver",
                        "ShippingCarrier":"FlatRate",
                        "DeliveryDaysMin":0,
                        "DeliveryDaysMax":0,
                        "CreatedUtc":"2020-04-02T18:33:46.933",
                        "UpdatedUtc":"2020-04-02T18:33:46.933",
                        "ShippingMethods":null,
                        "ShippingMethodsJson":"null"
                     },
                     "SelectedShippingMethod":null,
                     "Name":"Local Reg Shipping Denver",
                     "Total":2
                  }
               ],
               "FormattedOption":"Local Reg Shipping Denver"
            }
         ],
         "preProcessingResult":{
            "Status":"Success",
            "ProcessingErrorCode":null,
            "ScheduledOrderFailureReason":null,
            "UpdatedUtc":"2020-05-09T13:47:12.1877101Z"
         }
      },
      "processingCycles":null,
      "eventLogs":null
   },
   "scheduledOrder":{
      "id":86067,
      "lastProcessingCycleId":6113,
      "lastProcessingCycle":null,
      "lastOccurrenceUtc":"2020-04-30T17:58:35.493",
      "createdUtc":"2020-04-30T17:56:38.0353674",
      "updatedUtc":"2020-05-09T14:04:19.0870077Z",
      "scheduledOrderFailureReason":null,
      "processingErrorCode":null,
      "preProcessingValidationResultCode":null,
      "couponsHistory":[

      ],
      "customerId":"17",
      "customer":{
         "id":"17",
         "email":"[email protected]",
         "firstName":"JR",
         "lastName":"Ewing",
         "shippingFirstName":"JR",
         "shippingLastName":"Ewing",
         "shippingStreet1":"1615 Platte St",
         "shippingStreet2":"",
         "shippingCity":"Denver",
         "shippingState":"CO",
         "shippingPostcode":"80202",
         "shippingCountry":"US",
         "billingFirstName":"JR",
         "billingLastName":"Ewing",
         "billingStreet1":"1615 Platte St",
         "billingStreet2":"",
         "billingCity":"Denver",
         "billingState":"CO",
         "billingPostcode":"80202",
         "billingCountry":"US",
         "phoneNumber":"123-456-7890",
         "company":"",
         "paymentMethods":null,
         "metadata":null
      },
      "name":null,
      "nextOccurrenceUtc":"2020-05-30T17:00:00.000Z",
      "nextOccurrenceOffset":null,
      "status":"Active",
      "frequencyType":"Months",
      "frequencyDisplayName":"Every 1 months",
      "frequency":1,
      "cycles":1,
      "paymentMethodId":80968,
      "paymentMethod":{
         "id":80968,
         "createdUtc":"2020-05-09T04:26:04.4615041",
         "updatedUtc":"2020-05-09T04:27:30.4660841",
         "expirationDate":"2025-05-31T00:00:00",
         "customerId":null,
         "type":"CyberSource",
         "gatewayCustomerId":null,
         "gatewayPaymentId":"5889983634526102904008",
         "description":"MasterCard ending in 4444 (expires 05/25)",
         "expiration":"0525",
         "lastFourDigits":"4444",
         "billingFirstName":"JR",
         "billingLastName":"Ewing",
         "billingStreet1":"1615 Platte St",
         "billingStreet2":"",
         "billingCity":"Denver",
         "billingState":"CO",
         "billingPostcode":"80202",
         "billingCountry":"US",
         "isDefault":false
      },
      "authorizeOnly":false,
      "currencyIso":"USD",
      "subtotal":60.75,
      "shippingTotal":2,
      "taxTotal":null,
      "total":62.75,
      "shippingRateName":"Local Reg Shipping Denver",
      "shippingRateOptions":[
         {
            "shippingLines":[
               {
                  "sourceShippingRate":{
                     "id":203,
                     "siteId":108,
                     "shippingClass":null,
                     "country":"US",
                     "street1":null,
                     "street2":null,
                     "postcode":null,
                     "state":"CO",
                     "city":"Denver",
                     "pricePerUnit":0,
                     "basePrice":2,
                     "minUnits":0,
                     "minCycles":0,
                     "minSubtotal":0,
                     "minWeight":null,
                     "maxWeight":null,
                     "minLength":null,
                     "maxLength":null,
                     "minHeight":null,
                     "maxHeight":null,
                     "minWidth":null,
                     "maxWidth":null,
                     "weightUnitType":null,
                     "lengthUnitType":null,
                     "name":"Local Reg Shipping Denver",
                     "shippingCarrier":"FlatRate",
                     "deliveryDaysMin":0,
                     "deliveryDaysMax":0,
                     "createdUtc":"2020-04-02T18:33:46.933",
                     "updatedUtc":"2020-04-02T18:33:46.933",
                     "shippingMethods":null,
                     "shippingMethodsJson":"null"
                  },
                  "selectedShippingMethod":null,
                  "name":"Local Reg Shipping Denver",
                  "total":2
               }
            ],
            "isDefault":true,
            "optionValue":"Local Reg Shipping Denver",
            "optionText":"[203] Local Reg Shipping Denver (2)"
         },
         {
            "shippingLines":[
               {
                  "sourceShippingRate":{
                     "id":201,
                     "siteId":108,
                     "shippingClass":null,
                     "country":"US",
                     "street1":null,
                     "street2":null,
                     "postcode":null,
                     "state":"CO",
                     "city":"Denver",
                     "pricePerUnit":0,
                     "basePrice":7,
                     "minUnits":0,
                     "minCycles":0,
                     "minSubtotal":0,
                     "minWeight":null,
                     "maxWeight":null,
                     "minLength":null,
                     "maxLength":null,
                     "minHeight":null,
                     "maxHeight":null,
                     "minWidth":null,
                     "maxWidth":null,
                     "weightUnitType":"Pound",
                     "lengthUnitType":null,
                     "name":"Local Delivery Denver",
                     "shippingCarrier":"FlatRate",
                     "deliveryDaysMin":0,
                     "deliveryDaysMax":0,
                     "createdUtc":"2020-04-02T14:41:13.387",
                     "updatedUtc":"2020-04-02T18:38:44.92",
                     "shippingMethods":null,
                     "shippingMethodsJson":"null"
                  },
                  "selectedShippingMethod":null,
                  "name":"Local Delivery Denver",
                  "total":7
               }
            ],
            "isDefault":false,
            "optionValue":"Local Delivery Denver",
            "optionText":"[201] Local Delivery Denver (7)"
         }
      ],
      "preferredShippingRateOption":"",
      "shippingFirstName":"JR",
      "shippingLastName":"Ewing",
      "shippingStreet1":"1615 Platte St",
      "shippingStreet2":null,
      "shippingCity":"Denver",
      "shippingState":"CO",
      "shippingPostcode":"80202",
      "shippingCountry":"US",
      "phoneNumber":"123-456-7890",
      "company":null,
      "lifetimeValue":19.36,
      "originalExternalId":"wc-10478-1-Months",
      "note":null,
      "scheduledOrderItems":[
         {
            "id":45366,
            "product":{
               "parentProduct":null,
               "createdUtc":"2019-10-22T17:30:06.62",
               "updatedUtc":"2020-05-08T20:20:06.8727594",
               "lifetimeValue":8,
               "validationErrorCode":null,
               "syncOnUpdate":null,
               "id":"9324",
               "title":"Red Wheat Malt (Milling Option: milled, Amount: 3 lbs)",
               "price":4,
               "parentProductId":null,
               "sku":null,
               "gtin":null,
               "mpn":null,
               "description":"<p>Add a sweet malty wheat flavor. Can also be used for 5% head retention in any style.</p>\n",
               "salePrice":null,
               "length":"1",
               "width":"1",
               "height":"1",
               "weight":"0.25",
               "weightUnitType":null,
               "lengthUnitType":null,
               "shippingClass":null,
               "taxClass":null,
               "addToScheduledOrder":true,
               "processScheduledOrder":true,
               "availability":"InStock",
               "stock":null,
               "productGroupIds":null,
               "availableFrequencies":null,
               "metadata":{
                  "type":"variation",
                  "url":"https://devtjclonenew.wpengine.com/product/red-wheat-malt-2/?attribute_milling-option=milled&attribute_amount=3+lbs",
                  "isFeatured":false,
                  "imageUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/redwheat2.jpg",
                  "imageThumbUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/redwheat2.jpg"
               },
               "active":true,
               "valid":true
            },
            "createdUtc":"2020-04-30T17:56:38.0353674",
            "updatedUtc":"2020-04-30T17:56:38.0353674",
            "scheduledOrderId":86067,
            "productId":"9324",
            "price":4,
            "salePrice":null,
            "originalSalePrice":null,
            "quantity":2,
            "cycles":1,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":45367,
            "product":{
               "parentProduct":null,
               "createdUtc":"2019-10-22T17:30:16.8733333",
               "updatedUtc":"2020-05-08T20:20:08.2333531",
               "lifetimeValue":12,
               "validationErrorCode":null,
               "syncOnUpdate":null,
               "id":"9333",
               "title":"Dark Malt (Milling Option: milled, Amount: 5 lbs)",
               "price":5,
               "parentProductId":null,
               "sku":null,
               "gtin":null,
               "mpn":null,
               "description":"<p>This dark malt is fairly neutral in its flavor, but will give a slight astringency when used at higher rates.</p>\n",
               "salePrice":4,
               "length":"1",
               "width":"1",
               "height":"1",
               "weight":"0.25",
               "weightUnitType":null,
               "lengthUnitType":null,
               "shippingClass":null,
               "taxClass":null,
               "addToScheduledOrder":true,
               "processScheduledOrder":true,
               "availability":"InStock",
               "stock":null,
               "productGroupIds":null,
               "availableFrequencies":null,
               "metadata":{
                  "type":"variation",
                  "url":"https://devtjclonenew.wpengine.com/product/dark-malt-2/?attribute_milling-option=milled&attribute_amount=5+lbs",
                  "isFeatured":false,
                  "imageUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/blackpatent2.jpg",
                  "imageThumbUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/blackpatent2.jpg"
               },
               "active":true,
               "valid":true
            },
            "createdUtc":"2020-04-30T17:56:38.0353674",
            "updatedUtc":"2020-04-30T17:56:38.0353674",
            "scheduledOrderId":86067,
            "productId":"9333",
            "price":5,
            "salePrice":4,
            "originalSalePrice":null,
            "quantity":2,
            "cycles":1,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":47126,
            "product":{
               "parentProduct":null,
               "createdUtc":"2019-10-22T17:30:33.4833333",
               "updatedUtc":"2020-05-08T20:20:08.3114804",
               "lifetimeValue":0,
               "validationErrorCode":null,
               "syncOnUpdate":null,
               "id":"9343",
               "title":"Cascade Leaf Hops 1oz",
               "price":2.5,
               "parentProductId":null,
               "sku":null,
               "gtin":null,
               "mpn":null,
               "description":"<p>Cascade is an aroma variety with well-balanced bittering potential. It is the most popular hop with the craft brewing industry and is good for dry hopping.</p>\n",
               "salePrice":1.25,
               "length":"1",
               "width":"1",
               "height":"1",
               "weight":"0.25",
               "weightUnitType":null,
               "lengthUnitType":null,
               "shippingClass":null,
               "taxClass":null,
               "addToScheduledOrder":true,
               "processScheduledOrder":true,
               "availability":"InStock",
               "stock":null,
               "productGroupIds":null,
               "availableFrequencies":null,
               "metadata":{
                  "type":"simple",
                  "url":"https://devtjclonenew.wpengine.com/product/cascade-leaf-hops-1oz/",
                  "isFeatured":true,
                  "imageUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/cascade-hops.jpg",
                  "imageThumbUrl":"https://devtjclonenew.wpengine.com/wp-content/uploads/2019/08/cascade-hops.jpg"
               },
               "active":true,
               "valid":true
            },
            "createdUtc":"2020-05-09T13:33:44.6637308",
            "updatedUtc":"2020-05-09T13:33:44.6637308",
            "scheduledOrderId":86067,
            "productId":"9343",
            "price":2.5,
            "salePrice":1.25,
            "originalSalePrice":1.25,
            "quantity":1,
            "cycles":0,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         },
         {
            "id":47127,
            "product":{
               "parentProduct":null,
               "createdUtc":"2019-10-22T17:29:12.0366667",
               "updatedUtc":"2020-05-08T20:20:10.3619743",
               "lifetimeValue":0,
               "validationErrorCode":null,
               "syncOnUpdate":null,
               "id":"9535",
               "title":"Brooklyn Long Sleeve Sweater",
               "price":29,
               "parentProductId":null,
               "sku":null,
               "gtin":null,
               "mpn":null,
               "description":"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vel pulvinar diam vulputate quis ,vel pulvinar diam vulputate quis. Donec porttitor volutpat rutrum .Brooklyn Long Sleeve Sweater.</p>\n",
               "salePrice":14.5,
               "length":null,
               "width":null,
               "height":null,
               "weight":null,
               "weightUnitType":null,
               "lengthUnitType":null,
               "shippingClass":null,
               "taxClass":null,
               "addToScheduledOrder":true,
               "processScheduledOrder":true,
               "availability":"InStock",
               "stock":5,
               "productGroupIds":null,
               "availableFrequencies":null,
               "metadata":{
                  "type":"simple",
                  "url":"https://devtjclonenew.wpengine.com/product/brooklyn-long-sleeve-sweater/",
                  "isFeatured":false
               },
               "active":true,
               "valid":true
            },
            "createdUtc":"2020-05-09T13:47:07.52Z",
            "updatedUtc":"2020-05-09T14:04:19.0870077Z",
            "scheduledOrderId":86067,
            "productId":"9535",
            "price":29,
            "salePrice":14.5,
            "originalSalePrice":14.5,
            "quantity":3,
            "cycles":0,
            "minCycles":null,
            "maxCycles":null,
            "metadata":null
         }
      ],
      "estimatedDeliveryDate":null,
      "origin":null,
      "coupons":[

      ],
      "metadata":{
         "shippingRateOptions":[
            {
               "ShippingLines":[
                  {
                     "SourceShippingRate":{
                        "Id":203,
                        "SiteId":108,
                        "ShippingClass":null,
                        "Country":"US",
                        "Street1":null,
                        "Street2":null,
                        "Postcode":null,
                        "State":"CO",
                        "City":"Denver",
                        "PricePerUnit":0,
                        "BasePrice":2,
                        "MinUnits":0,
                        "MinCycles":0,
                        "MinSubtotal":0,
                        "MinWeight":null,
                        "MaxWeight":null,
                        "MinLength":null,
                        "MaxLength":null,
                        "MinHeight":null,
                        "MaxHeight":null,
                        "MinWidth":null,
                        "MaxWidth":null,
                        "WeightUnitType":null,
                        "LengthUnitType":null,
                        "Name":"Local Reg Shipping Denver",
                        "ShippingCarrier":"FlatRate",
                        "DeliveryDaysMin":0,
                        "DeliveryDaysMax":0,
                        "CreatedUtc":"2020-04-02T18:33:46.933",
                        "UpdatedUtc":"2020-04-02T18:33:46.933",
                        "ShippingMethods":null,
                        "ShippingMethodsJson":"null"
                     },
                     "SelectedShippingMethod":null,
                     "Name":"Local Reg Shipping Denver",
                     "Total":2
                  }
               ],
               "FormattedOption":"Local Reg Shipping Denver"
            },
            {
               "ShippingLines":[
                  {
                     "SourceShippingRate":{
                        "Id":201,
                        "SiteId":108,
                        "ShippingClass":null,
                        "Country":"US",
                        "Street1":null,
                        "Street2":null,
                        "Postcode":null,
                        "State":"CO",
                        "City":"Denver",
                        "PricePerUnit":0,
                        "BasePrice":7,
                        "MinUnits":0,
                        "MinCycles":0,
                        "MinSubtotal":0,
                        "MinWeight":null,
                        "MaxWeight":null,
                        "MinLength":null,
                        "MaxLength":null,
                        "MinHeight":null,
                        "MaxHeight":null,
                        "MinWidth":null,
                        "MaxWidth":null,
                        "WeightUnitType":"Pound",
                        "LengthUnitType":null,
                        "Name":"Local Delivery Denver",
                        "ShippingCarrier":"FlatRate",
                        "DeliveryDaysMin":0,
                        "DeliveryDaysMax":0,
                        "CreatedUtc":"2020-04-02T14:41:13.387",
                        "UpdatedUtc":"2020-04-02T18:38:44.92",
                        "ShippingMethods":null,
                        "ShippingMethodsJson":"null"
                     },
                     "SelectedShippingMethod":null,
                     "Name":"Local Delivery Denver",
                     "Total":7
                  }
               ],
               "FormattedOption":"Local Delivery Denver"
            }
         ],
         "preProcessingResult":{
            "Status":"Success",
            "ProcessingErrorCode":null,
            "ScheduledOrderFailureReason":null,
            "UpdatedUtc":"2020-05-09T13:47:12.187Z"
         }
      },
      "processingCycles":null,
      "eventLogs":null
   }
}