How can I get paymentId?

Hi,

I was working on Polling for checkout completion with the weburl. For this, the API accepts paymentId. But it’s not available. How can I fetch the payment id?

Hey @CreoDev

You would need to use Payment API in order to retrieve this data:

For example, ‘GET /admin/api/2021-10/checkouts/{token}/payments/{payment_id}.json’ would retrieve a single payment.

Transactions API

For example, GET /admin/orders/#{order_id}/transactions.json would return all transactions associated with the provided order id.