Body
      
    Required
 
    
    Specify one or more fields and their new values to change it
- 
    
  
Required. CORE user id
 - 
    
  
Required. the amount of this transaction including any taxes
Minimum value is
0. - 
    
  
Required. the local date of the transaction
 - 
    
  
What does this transaction relate to. This determines what other fields are required
Maximum length is
1. Values areC,I, orS. - 
    
  
Required. Must link to an Accountcode that the user is able to see.
 - 
    
  
Whether this is a taxable item (1) or not (0)
Values are
0or1. - 
    
  
Required. The transaction Batch that this transaction is a part of
 - 
    
  
If supplied, must link to a Campaign the user can see
 - 
    
  
If supplied, must link to a Location
 - 
    
  
If supplied, must link to a Stock item the user can see
 - 
    
  
Required for transaction_type S. How many stock items were purchased
 - 
    
  
Required for transaction_type I. Text to describe the donation
 - 
    
  
Whether to identify which entity the transaction is to be receipted to, Individual (ind) or Organisation/Household (hh)
Values are
hhorind. - 
    
  
Referenced when showing tax (VAT, GST). Sales tax is included when its 1, no sales tax applies when its 0
Minimum value is
0, maximum value is1. - 
    
  
Identify whether this should be receipted as a One-off (0) or combined (1)
Minimum value is
0, maximum value is1. - 
    
  
If supplied must link to a valid PledgeDrive
 - 
    
  
A short text note to add to the transaction
Maximum length is
255. 
curl \
 --request PATCH 'https://YOURSITE.infoodle.com/apiv2/transaction/99' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"user_id":32132,"amount":50.65,"date":"2012-07-06","transaction_type":"C","accountcode_id":43,"taxable":1,"batch_id":405,"campaign_id":43,"location_id":32,"stockcode_id":32,"stock_qty":12,"inkind_description":"Donated sweater","who_to_receipt":"hh","salestax":1,"receipt_annually":1,"pledge_drive_id":3,"note":"Donation out of the blue"}'
    {
  "user_id": 32132,
  "amount": 50.65,
  "date": "2012-07-06",
  "transaction_type": "C",
  "accountcode_id": 43,
  "taxable": 1,
  "batch_id": 405,
  "campaign_id": 43,
  "location_id": 32,
  "stockcode_id": 32,
  "stock_qty": 12,
  "inkind_description": "Donated sweater",
  "who_to_receipt": "hh",
  "salestax": 1,
  "receipt_annually": 1,
  "pledge_drive_id": 3,
  "note": "Donation out of the blue"
}
{
  "id": 4325342
}
{
  "error": "Unauthorised"
}
{
  "error": "Invalid Permission"
}
{
  "error": "Not Found"
}