Skip to main content
Use this endpoint to submit a card payment through Accelebit. You provide the card details, billing information, amount, and currency, and Accelebit routes the transaction to the optimal upstream provider based on currency and availability. The response tells you whether the payment was captured immediately, requires 3D Secure authentication, or failed.
Always supply a unique Idempotency-Key on every request. If a request is retried with the same key, Accelebit returns the original response without creating a duplicate payment.

Headers

X-API-Key
string
required
Your secret API key. Starts with smtgw_sk_.
Idempotency-Key
string
required
A unique key to prevent duplicate payments. Use a UUID or an order-specific identifier.
Content-Type
string
required
Must be application/json.

Request body

amount
string
required
Payment amount as a decimal string. For example: "55.00" or "100.50". Maximum two decimal places.
currency
string
required
Three-letter ISO 4217 currency code. Automatically uppercased. For example: "EUR", "USD", "GBP".
paymentMethod
string
default:"card"
Payment method type. One of card or stored_card.
customerId
string
required
Your external customer identifier. Used to resolve or create a customer record in Accelebit.
card
object
Card details. Required when paymentMethod is card.
storedCardId
string
UUID of a previously stored card. Required when paymentMethod is stored_card.
billing
object
Billing information for the cardholder.
merchantRef
string
Your own reference ID, such as an order number. You can use this value to look up the payment later via GET /v1/payments?merchantRef=....
returnUrl
string
URL to redirect the customer to after 3D Secure authentication completes. Required if your integration handles 3DS flows.
deviceFingerprint
string
Device fingerprint string. Maximum 128 characters. Passed to the upstream provider for fraud scoring.
metadata
object
Arbitrary key-value pairs to attach to this payment. Stored by Accelebit but not forwarded to providers.

Response

data
object
curl -X POST https://api.gateway.accelebit.com/v1/payments \
  -H "Content-Type: application/json" \
  -H "X-API-Key: smtgw_sk_test_your_secret_key" \
  -H "Idempotency-Key: pay_abc123" \
  -d '{
    "amount": "55.00",
    "currency": "EUR",
    "paymentMethod": "card",
    "customerId": "user_12345",
    "card": {
      "number": "4111111111111111",
      "expiryMonth": "12",
      "expiryYear": "28",
      "cvv": "123",
      "holderName": "Jane Doe"
    },
    "billing": {
      "firstName": "Jane",
      "lastName": "Doe",
      "email": "jane@example.com",
      "phone": "+35699123456",
      "country": "MT",
      "address": "123 Main Street",
      "city": "Valletta",
      "postalCode": "VLT 1000"
    },
    "returnUrl": "https://yoursite.com/payment/callback",
    "merchantRef": "order_98765"
  }'
{
  "data": {
    "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "status": "captured",
    "amount": "55.00",
    "currency": "EUR",
    "provider": "everest",
    "threeDsRequired": false,
    "threeDsData": null,
    "createdAt": "2026-04-09T12:01:00.000Z"
  }
}