Infusionsoft.Endpoints.XML.Discount (Infusionsoft v0.7.0) View Source
Provides the raw endpoints to Infusionsoft's XML API for Discount.
Link to this section Summary
Link to this section Functions
Specs
assign_product_to_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
create_a_category_discount(name, description, apply_discount_to_commission, amt, token, app \\ nil)
View SourceSpecs
create_a_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
create_a_shipping_discount(name, description, apply_discount_to_commission, percent_or_amt, amt, token, app \\ nil)
View SourceSpecs
create_a_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
create_order_discount(name, apply_discount_to_commision, percent_or_amt, pay_type, token, app \\ nil)
View SourceSpecs
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
create_product_discount(name, description, apply_discount_to_commission, product_id, percent_or_amt, amt, token, app \\ nil)
View SourceSpecs
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
create_subscription_trial(name, description, free_trial_days, hide_price, subscription_plan_id, token, app \\ nil)
View SourceSpecs
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
Specs
retrieve_a_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
retrieve_a_shipping_discount(shipping_discount_id, token, app \\ nil)
View SourceSpecs
retrieve_a_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
Specs
Specs
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
Specs
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
Specs
retrieve_subscription_trial(integer(), String.t(), nil | String.t()) :: {:ok, map()} | {:error, String.t()}
https://developer.infusionsoft.com/docs/xml-rpc/#discount-retrieve-a-subscription-s-free-trial