Version: 1.0.0

Vault a transaction's payment method

It is possible to vault (store) a card or any other payment method that supports vaulting by setting the store field in the request body to true.

curl -i -X POST "https://api.{gr4vyId}" \
-H "Authorization: Bearer [JWT_TOKEN]" \
-H "Content-Type: application/json" \
-d '{
"amount": 1299,
"currency": "USD",
"store": true
"payment_method": {
"method": "card",
"number": "4111111111111111",
"expiration_date": "11/25",
"security_code": "123"

This eliminates the need to separately vault the payment method and then use it to create a transaction.

Payment methods

Learn more about payment method vaulting as well as linking payment methods to registered buyers.