View Source Infusionsoft.Endpoints.XML.Invoice (Infusionsoft v0.8.0)
Provides the raw endpoints to Infusionsoft's XML API for Invoice.
Summary
Functions
add_a_commission_to_an_invoice(invoice_id, affiliate_id, product_id, percent, amount, payout_type, description, date, token)
@spec 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() ) :: {: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)
@spec 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() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-add-a-payment-to-an-invoice
@spec add_an_item_to_an_invoice( integer(), integer(), integer(), float(), integer(), String.t(), String.t(), String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-add-an-item-to-an-invoice
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)
@spec create_a_contact_subscription( integer(), boolean(), integer(), integer(), float(), boolean(), integer(), integer(), integer(), integer(), String.t() ) :: {:ok, integer()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-contact-subscription
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-subscription-invoice
@spec 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() ) :: {: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)
@spec 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() ) :: {:ok, boolean()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-create-a-custom-recurring-payment
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-delete-a-subscription
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-delete-an-invoice
@spec pay_an_invoice( integer(), String.t(), integer(), integer(), boolean(), String.t() ) :: {:ok, map()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-pay-an-invoice
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-available-payment-options
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-credit-card
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-invoice-amount-due
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-retrieve-invoice-payments
@spec update_subscription_billing_date( integer(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }, 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)
@spec validate_a_new_credit_card( String.t(), integer(), String.t(), String.t(), String.t(), String.t(), String.t() ) :: {:ok, map()} | {:error, any()}
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-validate-a-new-credit-card
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-validate-an-existing-credit-card