Store a card
Store a card the customer already owns so the agents they choose can use it. Collect the card with Evervault’s Card UI component and send its ciphertext: a number or security code that is not Evervault ciphertext is refused with 400 INVALID_INPUT and never stored or logged.
Grid verifies the card with its issuer before storing it: the security code, billing address and name. A card the issuer does not confirm is refused with 400 STORED_CARD_VERIFICATION_FAILED. The security code is then discarded; Grid never stores it. The new card is shared with no agent: add one with PUT /customers/{customerId}/stored-cards/{storedCardId}/agents/{agentId}. Available where the platform enables stored cards, for individual customers.
Authorizations
Body
A card collected with Evervault's Card UI component. number and cvc must be Evervault ciphertext (strings starting ev:); a request carrying a plaintext value is refused with 400 and the value is never stored or logged. The CVC is used once, to verify the card with its issuer, and then discarded.
Response
Card stored
A card the customer already owns, stored so their agents can use it. Grid holds the card number only as Evervault ciphertext: no Grid system stores, logs or returns the number itself.