Transactions
Create a transaction with a vaulted payment method
Create a transaction with a previously vaulted card or alternative payment method.
A transaction can be created with a previously stored payment method.
The call requires an amount
, currency
, and a payment_method
with an id
.
This ID can represent a card or any other payment method that supports
vaulting.
Check out our guides to learn more about payment methods and the ability to tie a payment method to a buyer.
curl -i -X POST "https://api.example.gr4vy.app/transactions" \
-H "Authorization: Bearer [JWT_TOKEN]" \
-H "Content-Type: application/json" \
-d '{
"amount": 1299,
"currency": "AUD",
"payment_method": {
"method": "id",
"id": "421a4e92-f0c4-4fdc-8233-921bce75133e"
}
}'
This API will return the authorized transaction. The status of this
transaction can vary for a few reasons including the status provided by the
payment service, as well as the requested intent
.
Statuses
See our guide on transaction statuses for more details.