Make a sale with a saved payment method

Learn how to make a sale transaction via the API with a customer's saved payment method
View as Markdown
Applies to:Developers

You can make a sale transaction with a customer’s saved payment method, sometimes referred to as card-on-file or a payment token.

Pass the saved method’s token in as storedMethodId when authorizing or making a sale transaction.

POST
/api/MoneyIn/getpaid
1curl -X POST https://api-sandbox.payabli.com/api/MoneyIn/getpaid \
2 -H "requestToken: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "paymentDetails": {
6 "totalAmount": 100,
7 "serviceFee": 0
8 },
9 "paymentMethod": {
10 "initiator": "payor",
11 "method": "card",
12 "storedMethodId": "1ec55af9-7b5a-4ff0-81ed-c12d2f95e135-4440",
13 "storedMethodUsageType": "unscheduled"
14 },
15 "customerData": {
16 "customerId": 4440
17 },
18 "entryPoint": "f743aed24a",
19 "ipaddress": "255.255.255.255"
20}'

See these related resources to help you get the most out of Payabli.