Hi,
I’m new to square so sorry for trivial question.
Is it any rest API to retrieve transaction’s logs for by idempotency id ?
thanks
With the Payments API getting the payment by the idempotency_key
isn’t currently available. You can GetPayment by payment_id
or ListPayments if you don’t know the payment_ids.
thanks Bryan. I’m wondering if in case of payment frailer for any reason, can I get log by idempotency_key
?
Is this a situation when you wouldn’t get back a response from Square when making the CreatePayment
request? If so you should retry the CreatePayment
call with the same idempotency_key
. If the payment made it to Square and there was a transient error where the response was lost Square will return the payment response. If the request didn’t make it to Square then we will process the payment like normal.
1 Like