Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Optionally accept idempotency-key from the caller? #2

Open
k2n opened this issue Jun 15, 2018 · 0 comments
Open

Optionally accept idempotency-key from the caller? #2

k2n opened this issue Jun 15, 2018 · 0 comments

Comments

@k2n
Copy link

k2n commented Jun 15, 2018

Hi,

I was wondering if sequence SDK can be enhanced to accept optional idempotency-key as an argument of request.

The use-case is that we'd like to accept deposit remitted via wire transfer only once. If I can use the wire-transfer transaction id as an idempotency key, then it would prevent the multiple submission from happening due to double submission or retry logic.

Thanks,

https://github.com/sequence/sequence-sdk-java/blob/3d8b3a05db0e7bc48868bee14a1592cc1a52f255/src/main/java/com/seq/http/Client.java#L156

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant