question

hsukhwa avatar image
hsukhwa asked parquet76 edited

Regarding Idempotency-Key usage for REST Pay

About Idempotency-Key, when I cancel the transaction with A1234567890123 and retry the transaction with the same Idempotency-Key A1234567890123, the response is the same as the canceled transaction.

Is it impossible to process the transaction with the same Idempotency-Key when the transaction is canceled or has an issue?

If it is possible, how to process with the same Idempotency-Key?

REST APIPayments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

parquet76 avatar image
parquet76 answered parquet76 edited

That is the expected and desired behavior. If you are cancelling the transaction then you would need to start a new transaction with a new idempotency key.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered

More details on the key can be found here: https://docs.clover.com/docs/tracking-transactions-with-idempotency-keys

there is also a nice blog detailing the different keys and when to use them.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community