How can you get the vaulted card a customer selected when placing an order?

We have a customer with multiple cards attached to a B2B Company Location and an order they placed. The order shows a specific card but I’m not sure how that is being determined.

The payment collection details on the order don’t seem to have any indication of which card was selected:

It does so happen that the card showing under the balance is the first card that is returning back from the list of vaulted cards, but I’m guessing that’s just random chance.

How do you know which card the customer intended to use?


Are you looking for the payment details of the order? The below api provide the payment details(Card payment details):

I have never used any AI generated content. I used the AI to the correct grammatical mistakes in my comments. My responses are always based on Shopify Documentation and if I find a relevant solution, I sometimes copy and paste directly from Shopify’s official resources to ensure accuracy. If you believe I have used AI-generated content, please provide specific examples.

The payment details for the transaction can access in transaction field of the order.

Turns out that the card that comes back in the 0th position will be the card that the customer selected.