Skip to content

Optionally accept idempotency-key from the caller? #2

@k2n

Description

@k2n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions