ROKIConnect

Inicio rápido

# 1. Create a payment
curl -X POST https://aura.roki.systems/api/connect/v1/payments \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Idempotency-Key: order-1001-create" \
  -d '{
    "amount": 150.00,
    "external_reference": "order-1001",
    "name": "Order #1001",
    "metadata": { "order_id": "1001" },
    "success_url": "https://yoursite.com/thank-you",
    "cancel_url": "https://yoursite.com/cart",
    "expires_at": "2026-08-09 18:00:00"
  }'

# -> 201 with "id" and "checkout_url": store the id, redirect the customer to checkout_url

# 2. Check the status
curl https://aura.roki.systems/api/connect/v1/payments/706 \
  -H "Authorization: Bearer sk_test_..." \
  -H "Accept: application/json"