Aim Atlantic / Developers
Integrate

Recurring payments

Consent-based automatic renewals with authentication recovery.

Sandbox integration · v0.4
Use test payment details only. No real money moves; live activation is separate.

Save the card with the first payment

Create the initial payment with recurring_consent only after the customer agrees to saving their card and the amount, frequency and cancellation terms. Keep your evidence of that agreement; this field records your attestation, not proof that consent was obtained.

{
  "amount": 10000,
  "currency": "USD",
  "reference": "membership-initial",
  "customer": {"name": "Example Customer", "email": "customer@example.com"},
  "recurring_consent": {
    "accepted": true,
    "accepted_at": "2026-09-28T12:00:00Z",
    "terms_url": "https://merchant.example/recurring-terms",
    "reference": "YOUR_CONSENT_RECORD"
  }
}

Replace timestamps and URLs with your actual records. The customer completes the initial payment and 3DS at checkout. Wait for its confirmed success. The processor saves the reusable card method. In this hosted-checkout example, raw card numbers do not pass through the Aim Atlantic API. Separately activated direct-card integrations can supply the initial card as described in the payment guide; renewals use the saved method and never require retaining the card number or CVC.

Create the renewal schedule

The optional customer object on the initial payment assigns it to a customer wallet using name and email. Renewals inherit the source payment's attribution; do not add customer or customer.id to the subscription request.

Use POST /v1/subscriptions, subscriptions:write and an idempotency key:

{
  "source_payment_id": "INITIAL_PAYMENT_UUID",
  "reference": "membership-0001",
  "amount": 10000,
  "currency": "USD",
  "interval": "month",
  "interval_count": 1,
  "first_payment_at": "2026-10-28T12:00:00Z",
  "consent_confirmed": true
}

The source must belong to your business, have recorded recurring consent and authenticated 3DS, and use the same currency. Set the first renewal at least one minute in the future. Weekly and monthly intervals support counts of 1–12. Month-end schedules retain their original anchor: January 31 renews on February’s last day, then March 31. Processing is asynchronous; dates are due times, not guaranteed execution times.

Authentication recovery

Consented off-session renewals can succeed using the previously authenticated saved card. A renewal cannot accept a replacement token or new card through its checkout link. Its checkout page is status-only when customer action is required; interactive renewal recovery is not available in this release.

If authentication or a different card is needed, pause the schedule and retrieve GET /v1/subscriptions/{id}/invoices. Check the existing payment's current status and cancel it only if it is still unpaid and cancelable. Confirm cancellation before creating a new authenticated payment with fresh recurring consent. Cancel the old schedule before creating its replacement from the successful new source payment. Contact Aim Atlantic if the existing payment outcome is uncertain. Your application sends customer notifications; Aim Atlantic does not send renewal emails.

A timeout is not proof of failure; retain the original payment and invoice while its result is uncertain. An unpaid earlier invoice blocks later renewals until resolved. Events include invoice.created, invoice.paid, invoice.requires_action and invoice.payment_pending. Inspect the current payment before deciding whether customer action is needed.

Manage schedules

Owners use Recurring payments in the dashboard. API integrations send { "action": "pause" }, resume or cancel to POST /v1/subscriptions/{id} with subscriptions:write and an idempotency key. Cancellation is permanent. A payment already submitted can still complete; cancel or refund that payment separately when appropriate.

A resumed overdue schedule attempts one due invoice, then advances to the next future anchor; it does not charge every missed period. Amount changes, prorations, automatic emails and automatic retry/dunning campaigns are not included. Create a new consented schedule when its commercial terms change.

On this page