addFromCatalog / addAttribute

Add a charge on a new line from today to the order's end date: one of your product's charges (productAttributeId, usually with addFromCatalog) or a custom one (pricing, usually with addAttribute). Its included credits are granted from today.

  • What the charge bills for the rest of the current period: none (default) starts billing next period, prorated bills the days left, full bills a whole period.

  • The new line's name. Default, the charge's or product's name.

  • The charge's pricing, instead of a product charge's. Needs chargeType, or catalog-shaped pricing with pricingType.

    Properties: 18
  • A product charge to add, priced as in your catalog in the order's currency.

  • The product for the new line. Default, the product of productAttributeId.

  • Units, or seats for a seat-based charge (which get their seats).

  • Override the unit price. In minor units (cents for USD).