balanced / balanced-api

Balanced API specification.
221 stars 72 forks source link

Transition resources through multiple states #681

Open remear opened 10 years ago

remear commented 10 years ago

Migrated from https://github.com/balanced/balanced-docs/issues/414

The documentation provides a guide for testing disputes.

However, the issues is that the dispute (or transaction when testing transactions) is always created in the final state, e.g. SUCCEEDED, PENDING, FAILED.

Is it possible to asynchronously apply the state transition a few seconds after creating the resource so that the relevant webhooks get fired and the transaction flows through the states? E.g. debit created, dispute created in a pending state, dispute transitions to a lost/won state.

This would be a big help for customers trying to integrate webhook based reconciliation.

mjallday commented 10 years ago

related to https://github.com/balanced/balanced-api/issues/275

sophistry commented 9 years ago

This is something I am also interested in... but specifically being able to generate dispute.updated webhooks. Right now we mock the event based on previous ones we've seen. But, it would be nice to be able to say, receive an update 30 seconds after the dispute test card is used. Two dispute cards could be made, one that would transition to won, and one to lost state.

Thanks!