Retrieves a list of payments on a particular checkout

Hi All we are in need to use this API (https://shopify.dev/api/admin-rest/2021-07/resources/payment#[get]/admin/api/2021-07/checkouts/{token}/payments.json) to Retrieves a list of payments on a particular checkout. We also do have scopes read_payment_terms, write_payment_terms (although these scopes are not mentioned necessary ). But every time it shows error “No Found” .

I think a possible solution is to use the storefront api , and retrieve the data you need, it can be from the payment or specifically from the cards used.

https://shopify.dev/api/storefront/2022-10/objects/Payment

https://shopify.dev/api/storefront/2022-10/objects/CreditCard

Let me know if you got it working.