Add payment to checkout and complete checkout

Hello,

I am trying to complete checkout using storefront API with mutation checkoutCompleteWithCreditCardV2. However, I need to have CreditCardPaymentInputV2. I tried to create payment using admin REST API POST request to /admin/api/2023-10/checkouts/checkout-token/payments.json but I always got HTTP 404 even when the checkout token is correct(i tried the GET request /admin/api/2024-01/checkouts/checkout-token.json and the checkout was retrieved correctly). I tried the exact input as in the example from the documentation(https://shopify.dev/docs/api/admin-rest/2023-10/resources/payment#post-checkouts-token-payments) but with no luck. The only difference was session_id that I got after sending credit card information to URL in the checkout field payment_url.

I would also ask why the unitPrice on CheckoutLineItem retrieved by Storefront API is always null. When I try to retrieve the checkout using admin REST API, price and line_price has value.

UPDATE

I tried to use value retrieved by sending card information to payment_url in the vaultId using strofront mutation checkoutCompleteWithCreditCardV2 but, it returns only null without any error messages at all.