RawPurchaseFlexibleSubscription Data Type

Raw purchase row for creating flexible subscriptions from a template.

Properties
name data type description
interval number Interval of the subscription - how often products should be delivered in days.
createInitialOrderDirectly boolean Whether an initial order creation is needed or not. If set any authorization or sale transactions to be used with the orders should be marked with forOrder
rows array of RawPurchaseFlexibleSubscriptionRow Rows of the subscription - contain all products the subscription should include.

Example

{
  "interval" : 12345,
  "createInitialOrderDirectly" : true,
  "rows" : [ {
    "stockKeepingUnitId" : 12345,
    "discounts" : [ {
      "discountAmount" : 12345.0,
      "discountPercent" : 12345.0,
      "sort" : 12345,
      "numberOfUses" : 12345,
      "discountAmountIncludingTax" : 12345.0,
      "discountAmountExcludingTax" : 12345.0
    }, {
      "discountAmount" : 12345.0,
      "discountPercent" : 12345.0,
      "sort" : 12345,
      "numberOfUses" : 12345,
      "discountAmountIncludingTax" : 12345.0,
      "discountAmountExcludingTax" : 12345.0
    } ],
    "priceLookUpNumber" : "...",
    "quantity" : 1,
    "taxRate" : 0.25,
    "unitPriceExcludingTax" : 12345.0,
    "unitPriceIncludingTax" : 12345.0
  }, {
    "stockKeepingUnitId" : 12345,
    "discounts" : [ {
      "discountAmount" : 12345.0,
      "discountPercent" : 12345.0,
      "sort" : 12345,
      "numberOfUses" : 12345,
      "discountAmountIncludingTax" : 12345.0,
      "discountAmountExcludingTax" : 12345.0
    }, {
      "discountAmount" : 12345.0,
      "discountPercent" : 12345.0,
      "sort" : 12345,
      "numberOfUses" : 12345,
      "discountAmountIncludingTax" : 12345.0,
      "discountAmountExcludingTax" : 12345.0
    } ],
    "priceLookUpNumber" : "...",
    "quantity" : 12345,
    "taxRate" : 12345.0,
    "unitPriceExcludingTax" : 12345.0,
    "unitPriceIncludingTax" : 12345.0
  } ]
}