We are creating a preAuth at the start of the checkout process and then we have our own UI for tip/signature flow. Once we get everything we need we capture the preAuth. This all works great but we are trying to figure out how best to handle canceling/voiding the preAuth if we decide to bail out of the sale for whatever reason (need to add something else to the order, cancel the order completely, etc). We don't want a bunch of preAuths waiting to expire.
I see the "Delete an authorization" REST API endpoint but it takes a mId and an authId. The mId isn't a problem but I'm not sure what the "authId" is or where it comes from. In the SDK we get back the following properties that I feel *could* be the authId (Payment.id, Payment.order.id, Payment.cardTransaction.authCode, Payment.cardTransaction.referenceId) but nothing specifically called "authId".
My question is twofold:
1. Can we cancel/void preAuths (created in the SDK) using the REST API?
2. If so, what is the "authId" and where do we get it from?