The Recurring Profile API allows you to create recurring profiles in the FreshBooks application. Recurring profiles can optionally have credit card auto-bill information. Adding credit card auto-billing capabilities to a recurring profile requires the inclusion of an autobill element in the recurring.create or recurring.update request bodies. The autobill element will be included in responses to recurring.get and recurring.list requests, with information about the auto-bill profile if it is enabled.
Note: auto-bill profiles must be in the base currency and are restricted to the credit card types checked on the "Online Payment" settings page. Additionally auto-bill profiles do not accept expired credit cards.
Create a new recurring profile. The method arguments are nearly identical to invoice.create, but include five additional fields:
<?xml version="1.0" encoding="utf-8"?>40 2007-09-23 2314 10 1 monthly 1 0 CAD Due upon receipt. Payment due in 30 days. John Smith ABC Corp Authorize.net 4111 1111 1111 1111 John Smith 3 2012 Yard Work Mowed the lawn. 10 4 GST PST 8 6
<?xml version="1.0" encoding="utf-8"?>21
Update an existing recurring profile. For all elements but autobill, if they are supplied, they will be changed. The autobill element is optional. If it is not passed as part of the request then the recurring.update method will not modify any auto-bill information. The recurring.update method can convert a non auto-bill enabled recurring profile into an auto-bill enabled recurring profile with the inclusion of the autobill element. When updating auto-bill information, all child elements are required. An empty autobill element will turn off auto-billing on a recurring profile and delete all related information.
<?xml version="1.0" encoding="utf-8"?>21 ...
<?xml version="1.0" encoding="utf-8"?>
Return the details of an existing recurring profile, including auto-bill information if this recurring profile has auto-billing enabled.
<?xml version="1.0" encoding="utf-8"?>20
<?xml version="1.0" encoding="utf-8"?>344 2y 0 0 2 ABC Corp John Doe 123 Fake St. Unit 555 New York New York United States 553132 109.89 CAD 2007-06-23 0 0 1 Authorize.Net ************1111 John Smith 03 2012 Product Sample product item 9.99 10 99.9 tax1 10 0
Delete a recurring profile. Once deleted, it will no longer generate invoices.
<?xml version="1.0" encoding="utf-8"?>20
<?xml version="1.0" encoding="utf-8"?>
Returns a list of recurring profile summaries. Results are ordered by descending recurring_id.
Note: A list request that returns no results (i.e. page 999), will return an empty result set, not an error.
Note: The response will include an empty autobill tag if the recurring profile does not have auto-billing enabled, otherwise the response will include an autobill element with the gateway name and card element.
<?xml version="1.0" encoding="utf-8"?>3 1 1 10
<?xml version="1.0" encoding="utf-8"?>... 00000000001 m 0 1 2 XYZ Widgets Ltd Joe Smith 2770 Dufferin St. Suite 201 Toronto Ontario Canada M6B 3R7 200 CAD 2009-06-08 Payment due in 30 days. 0 0 1 Authorize.Net ************1111 John Smith 03 2012 Service Monthly Subscription 200 1 200 0 0