recurly/recurly-client-python — Issue #22: account.adjustments filters don't work
Author: mattrowe
Created: 2012-02-22 01:04:01+00:00
State: open

i'm trying to retrieve all pending credits for an account:

import recurly
recurly.API_KEY = RECURLY_KEY
recurly.js.PRIVATE_KEY = RECURLY_PRIVATE_KEY
recurly.DEFAULT_CURRENCY = RECURLY_DEFAULT_CURRENCY
account = recurly.Account.get("1")
for adj in account.adjustments(type='credit', state='pending')
print adj.type

This will print out lots lines with "charge" (assuming the account has charges).