Infusionsoft v0.3.0 Infusionsoft.Endpoints.XML.Discounts View Source

Provides the raw endpoints to Infusionsoft’s XML API for Discounts.

Link to this section Summary

Functions

https://developer.infusionsoft.com/docs/xml-rpc/#discount-assign-a-product-to-a-category-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-category-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-an-order-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-product-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-shipping-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-free-trial-on-a-subscription

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-category-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-category-discount-s-category-assignments

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-an-order-s-total-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-product-total-discount

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-shipping-discount

Link to this section Functions

Link to this function assign_product_to_category_discount(id, category_id, token, app \\ nil) View Source
assign_product_to_category_discount(
  integer(),
  integer(),
  String.t(),
  nil | String.t()
) :: {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-assign-a-product-to-a-category-discount

Link to this function create_category_discount(name, description, apply_to_commission, amt, token, app \\ nil) View Source
create_category_discount(
  String.t(),
  String.t(),
  boolean(),
  float(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-category-discount

Link to this function create_order_discount(name, apply_to_commision, percent_or_amt, pay_type, token, app \\ nil) View Source
create_order_discount(
  String.t(),
  String.t(),
  :percent | :amount,
  :gross | :net,
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-an-order-discount

Link to this function create_product_discount(name, description, apply_to_commission, product_id, percent_or_amt, amt, token, app \\ nil) View Source
create_product_discount(
  String.t(),
  String.t(),
  boolean(),
  integer(),
  :percent | :amount,
  float(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-product-discount

Link to this function create_shipping_discount(name, description, apply_to_commission, percent_or_amt, amt, token, app \\ nil) View Source
create_shipping_discount(
  String.t(),
  String.t(),
  boolean(),
  :percent | :amount,
  float(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-shipping-discount

Link to this function create_subscription_trial(name, description, days, hide_price, plan_id, token, app \\ nil) View Source
create_subscription_trial(
  String.t(),
  String.t(),
  integer(),
  boolean(),
  integer(),
  String.t(),
  nil | String.t()
) :: {:ok, integer()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-create-a-free-trial-on-a-subscription

Link to this function retrieve_category_discount(id, token, app \\ nil) View Source
retrieve_category_discount(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-category-discount

Link to this function retrieve_category_discount_assignments(id, token, app \\ nil) View Source
retrieve_category_discount_assignments(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-category-discount-s-category-assignments

Link to this function retrieve_order_discount(id, token, app \\ nil) View Source
retrieve_order_discount(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-an-order-s-total-discount

Link to this function retrieve_product_discount(id, token, app \\ nil) View Source
retrieve_product_discount(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-product-total-discount

Link to this function retrieve_shipping_discount(id, token, app \\ nil) View Source
retrieve_shipping_discount(integer(), String.t(), nil | String.t()) ::
  {:ok, map()} | {:error, String.t()}

https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-shipping-discount