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

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