andyc
23-01-08, 15:18
Hi,
I'd like to use the affiliate service API to refresh local tx records on say a daily basis and I'm trying to work out what getTransactionsList query I need to get the smallest set of transaction records back without missing anything.
For example, is it possible to get the set of new transaction records created since the last query by setting dStartDate to the last query's dEndDate for sDateType of transaction? For this to work the transactionDate would effectively need to be the transaction record creation timestamp. But I suspect the transaction date is set by the merchant to record when the transaction actually took place rather than when the transaction was entered into the affilate window system.
The same would apply for picking up validated transactions except that the validation date would effectively need to be the record update timestamp.
I can't see any way to get the set of transactions that have been paid since the last query.
I suspect that what's really needed to support this usage is a last_updated field in the transaction table (if there's not one already) and for the getTransactionList request sDateType parameter to include "updated". Any chance?
Whilst I'm on the topic, getTransactionList could do with a clickRef parameter!
Andy
I'd like to use the affiliate service API to refresh local tx records on say a daily basis and I'm trying to work out what getTransactionsList query I need to get the smallest set of transaction records back without missing anything.
For example, is it possible to get the set of new transaction records created since the last query by setting dStartDate to the last query's dEndDate for sDateType of transaction? For this to work the transactionDate would effectively need to be the transaction record creation timestamp. But I suspect the transaction date is set by the merchant to record when the transaction actually took place rather than when the transaction was entered into the affilate window system.
The same would apply for picking up validated transactions except that the validation date would effectively need to be the record update timestamp.
I can't see any way to get the set of transactions that have been paid since the last query.
I suspect that what's really needed to support this usage is a last_updated field in the transaction table (if there's not one already) and for the getTransactionList request sDateType parameter to include "updated". Any chance?
Whilst I'm on the topic, getTransactionList could do with a clickRef parameter!
Andy