FROM CACHE - en_header

How can I get paymentId?

CreoDev
New Member
1 0 0

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?

Reply 1 (1)
Moira
Shopify Staff
Shopify Staff
1009 136 167

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.

Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog