Charges API

Create a charge to collect a one-time payment.

POST /v1/charges
Request:
  amount: integer (cents)
  currency: string
  source: string (token)
  capture: boolean
Response: 201 Created
  { "id": "ch_9424", "status": "succeeded" }

Sample Request (curl)

curl -X POST https://api.voltpay.example/v1/charges \
  -u sk_test_123: \
  -H "Content-Type: application/json" \
  -d '{"amount":4999,"currency":"USD","source":"tok_mastercard"}'