Complete reference documentation for the PayAiML API. Build powerful payment experiences with our RESTful API.
Explore our API resources and learn how to integrate PayAiML into your application.
Authentication
/v1/payments
/v1/customers
/v1/subscriptions
/v1/invoices
/v1/webhooks
Here's a simple example of creating a payment using the PayAiML API.
curl https://api.payaiml.com/v1/payments \ -u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \ -d amount=2000 \ -d currency=usd \ -d payment_method=pm_card_visa \ -d confirm=true
{ "id": "pi_1234567890", "object": "payment_intent", "amount": 2000, "currency": "usd", "status": "succeeded", "created": 1640995200, "payment_method": "pm_card_visa" }