store field in the request body to true.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a transaction and vaulted a payment method at the same time.
store field in the request body to true.
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",
"store": true
"payment_method": {
"method": "card",
"number": "4111111111111111",
"expiration_date": "11/25",
"security_code": "123"
}
}'
{12}
var fetch = require("node-fetch");
fetch("https://api.example.gr4vy.app/transactions", {
method: "POST",
headers: {
Authorization: "Bearer [JWT_TOKEN]",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 1299,
currency: "AUD",
store: true,
payment_method: {
method: "card",
number: "4111111111111111",
expiration_date: "11/21",
security_code: "123",
},
}),
});
Was this page helpful?