Infusionsoft.Endpoints.XML.Invoice (Infusionsoft v0.7.0) View Source
Provides the raw endpoints to Infusionsoft's XML API for Invoice.
Link to this section Summary
Link to this section Functions
add_a_commission_to_an_invoice(invoice_id, affiliate_id, product_id, percent, amount, payout_type, description, date, token, app \\ nil)
View SourceSpecs
add_a_commission_to_an_invoice( integer(), integer(), integer(), integer(), float(), integer(), String.t(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-add-a-commission-to-an-invoice
add_a_payment_to_an_invoice(invoice_id, amount, date, payment_type, description, bypass_commissions, token, app \\ nil)
View SourceSpecs
add_a_payment_to_an_invoice( integer(), float(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, String.t(), String.t(), boolean(), String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-add-a-payment-to-an-invoice
add_an_item_to_an_invoice(invoice_id, product_id, type, price, quantity, description, notes, token, app \\ nil)
View SourceSpecs
add_an_item_to_an_invoice( integer(), integer(), integer(), float(), integer(), String.t(), String.t(), String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-add-an-item-to-an-invoice
Specs
calculate_invoice_tax(integer(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-calculate-invoice-tax
create_a_contact_subscription(contact_id, allow_duplicate, subscription_id, quantity, price, taxable, merchant_account_id, credit_card_id, affiliate_id, trial_period, token, app \\ nil)
View SourceSpecs
create_a_contact_subscription( integer(), boolean(), integer(), integer(), float(), boolean(), integer(), integer(), integer(), integer(), String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-contact-subscription
Specs
create_a_subscription_invoice(integer(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-subscription-invoice
create_an_invoice(contact_id, name, order_date, lead_affiliate_id, sale_affiliate_id, token, app \\ nil)
View SourceSpecs
create_an_invoice( integer(), String.t(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, integer(), integer(), String.t(), nil | String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-an-invoice
create_custom_recurring_payment(invoice_id, auto_charge, credit_card_id, merchant_account_id, days_until_retry, max_retry, initial_payment_amount, initial_payment_date, plan_start_date, number_of_payments, days_between_payments, token, app \\ nil)
View SourceSpecs
create_custom_recurring_payment( integer(), boolean(), integer(), integer(), integer(), integer(), float(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, integer(), integer(), String.t(), nil | String.t() ) :: {:ok, boolean()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-custom-recurring-payment
Specs
delete_a_subscription(integer(), String.t(), nil | String.t()) :: {:ok, boolean()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-delete-a-subscription
Specs
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-delete-an-invoice
pay_an_invoice(invoice_id, notes, credit_card_id, merchant_account_id, bypass_commissions, token, app \\ nil)
View SourceSpecs
pay_an_invoice( integer(), String.t(), integer(), integer(), boolean(), String.t(), nil | String.t() ) :: {:ok, map()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-pay-an-invoice
Specs
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-available-payment-options
Specs
retrieve_credit_card(integer(), String.t(), String.t(), nil | String.t()) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-credit-card
Specs
retrieve_invoice_amount_due(integer(), String.t(), nil | String.t()) :: {:ok, float()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-invoice-amount-due
Specs
retrieve_invoice_payments(integer(), String.t(), nil | String.t()) :: {:ok, list()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-invoice-payments
update_subscription_billing_date(subscription_id, next_bill_date, token, app \\ nil)
View SourceSpecs
update_subscription_billing_date( integer(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, String.t(), nil | String.t() ) :: {:ok, boolean()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-update-subscription-billing-date
validate_a_new_credit_card(card_type, contact_id, card_number, expiration_month, expiration_year, security_code, token, app \\ nil)
View SourceSpecs
validate_a_new_credit_card( String.t(), integer(), String.t(), String.t(), String.t(), String.t(), String.t(), nil | String.t() ) :: {:ok, map()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-validate-a-new-credit-card
Specs
validate_an_existing_credit_card(integer(), String.t(), nil | String.t()) :: {:ok, map()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-validate-an-existing-credit-card