Payments

Base URL: https://api.aikloop.example/v3

Send your secret key as a Bearer token in the Authorization header: Authorization: Bearer sk_live_... (or sk_test_... in test mode).

POST /payments

Create a payment.

Request body: form-encoded (application/x-www-form-urlencoded).

FieldTypeDescription
amount_minorintegerRequired. Amount in the currency's minor unit, for example 1050 for 10.50 EUR.
currencystringRequired. Three-letter ISO code, lowercase. No default.
payment_methodstringRequired. Payment method ID from AIKloop.js, for example pm_123.
HeaderDescription
Idempotency-KeyRequired. A unique value, such as a UUID v4. Retry a failed request with the same key. Keys are kept for 24 hours.

GET /payments

List payments, newest first.

FieldTypeDescription
limitinteger1 to 100. Default 10.
starting_afterstringID of the last object from the previous page.