Make a payment
documentedAttempt a payment for a customer using a payment method.
POST /api/v3/transaction/_action/payTransactions (Payments, Refunds, Credits)no implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.chargeover.com/api/v3/transaction/_action/pay" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Basic {{CHARGEOVER_SECRET}}" \
-d '{"customer_id": {{$customer_id}}, "_comment": "{{$comment}}", "amount": {{$amount}}, "applied_to": [ {"invoice_id": {{$invoice_id}}, "applied": {{$applied_amount}} } ], "paymethods": [ { "_comment": "{{$paymethod_comment}}", "creditcard_id": {{$creditcard_id}} } ] }'