Search transactions
Filtered by the posted fields. Returned in ID order
Path parameters
-
The ID that is previous to the one to start from e.g. if IDs are 1,2,3 fromthisid as 1 will return 2,3
POST
/transaction/search/{fromthisid}
curl \
-X POST https://YOURSITE.infoodle.com/apiv2/transaction/search/4 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"search":[{"by":"name","value":"Test Item"}]}'
Request examples
{
"search": [
{
"by": "name",
"value": "Test Item"
}
]
}
Response examples (200)
[
{
"id": 123,
"user_id": 32132,
"transaction_id": 443,
"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",
"datetime_created_utc": "2024-05-31 14:01:02",
"datetime_modified_utc": "2024-06-04 07:03:33"
}
]
Response examples (401)
{
"error": "Unauthorised"
}
Response examples (403)
{
"error": "Invalid Permission"
}