Which card
which_cardRead-onlyNames the card in the member's Pikt wallet with the highest estimated earn for a purchase at a store, with a short reason, the estimated earn of the member's other cards, any matching issuer offer, and a card-acceptance estimate when the purchase is in another country. Use it when the member asks which card to use for a purchase. Takes the store name, plus the amount in USD, store website, merchant category code, country code, and US ZIP code when known. Results cover only cards in the member's Pikt wallet.
Inputs
merchant(string, required) — Merchant or store name, e.g. Sweetgreenamount(number, optional) — Purchase amount in USD when known. Omit if unknown; never guess or convert currency.domain(string, optional) — Merchant website domain or URL when knownmcc(string or integer, optional) — Four-digit merchant category code when knowncountryCode(string, optional) — Two-letter country code for the purchase location, such as "IT". Send it when the purchase is abroad. This controls card acceptance checks, not currency conversion.zipCode(string, optional) — US ZIP code when known