This project is read-only.
0

Closed

Support recurring.lines.add

description

http://developers.freshbooks.com/docs/recurring/
 
recurring.lines.add
 
Adds (a) new line(s) to an existing recurring profile.
 
  • One or more lines may be added.
  • Do not specify line_id for any lines. (Ids will be assigned automatically). Userecurring.lines.update to change existing lines.
     
    Request
     
    view plaincopy to clipboardprint?
     
  • <?xml version="1.0" encoding="utf-8"?> 
  • <request method="recurring.lines.add"> 
  •   <recurring_id>111</recurring_id> 
  •   <lines> 
  •     <line> 
  •       <amount>80</amount> 
  •       <name>Bacon</name> 
  •       <description>Bacon ration (1lb)</description> 
  •       <unit_cost>2</unit_cost> 
  •       <quantity>40</quantity> 
  •       <type>Item</type> 
  •             ... 
  •     </line> 
  •     <line> 
  •       <amount>22.30</amount> 
  •       <name>Sphygmomanometer</name> 
  •       <description>Blood pressure cuff</description> 
  •       <unit_cost>1</unit_cost> 
  •       <quantity>22.30</quantity> 
  •       <type>Item</type> 
  •       ... 
  •     </line> 
  •   </lines> 
  • </request> 
     
    Note: In most cases, the returned line_ids will correspond to the new lines in the order that they were sent, however, this behavior is not guaranteed and should not be relied on. If you absolutely require the ability to match the created line_ids with the data you sent, you should create each line in its own request, or use some unique value for each line to eliminate any ambiguity.
     
    Response
     
    view plaincopy to clipboardprint?
     
  • <?xml version="1.0" encoding="utf-8"?> 
  • <response xmlns="http://www.freshbooks.com/api/" status="ok"> 
  •   <recurring_id>111</invoice_id> 
  •   <lines> 
  •     <line_id>45</line_id> 
  •     <line_id>46</line_id> 
  •   </lines> 
  • </response>
Closed Jul 23, 2012 at 6:18 PM by stemarie

comments

wrote Jul 23, 2012 at 6:18 PM

Resolved with changeset 94086.

wrote Feb 1, 2013 at 12:24 AM

wrote May 13, 2013 at 7:24 PM

wrote Nov 27 at 7:31 PM