Aim Atlantic / Developers

Build your first payment flow

Onboard your business, create a test payment and receive a verified result.

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

Aim Atlantic provides one API for payments, refunds, recurring billing and transaction events. Use your business workspace to manage credentials, review payments and configure webhooks.

Sandbox access: use the sandbox dashboard and API at https://sandbox-api.aimatlantic.com. Access is by invitation. Sandbox transactions use test payment details and do not move real money.

Live access: approved businesses use the production dashboard and API at https://api.aimatlantic.com. The existing live dashboard address remains available. Production requires a separate invitation, live credentials and business activation.

1. Activate your invited sandbox

Accept your business invitation, verify your email and complete MFA. Open Settings → Profile and submit your company profile. An owner can then open Developers to issue a sandbox API key. Select payments:read, payments:write and events:read; add refunds:write to test refunds and finance:read to inspect customer wallets. Copy the key once into your server's secret manager.

Documentation is currently available without signing in. Dashboard access and API credentials remain separate.

2. Register your webhook

Give Aim Atlantic your exact public HTTPS callback URL for approval. In Developers, register that endpoint and save its signing secret. Register it before creating payments so their full event history is scheduled for delivery.

If your receiver is not ready, you can start payment and refund testing by retrieving results from the API. Once the callback is approved and registered, create fresh test payments to verify event delivery; earlier events are not automatically backfilled to a new endpoint.

Read webhook verification and retries. Your receiver must verify the raw request body, store events durably, and deduplicate by event ID before applying business effects.

3. Create a test payment from your server

Set API_BASE_URL=https://sandbox-api.aimatlantic.com. Keep AIM_API_KEY in your server environment.

curl "$API_BASE_URL/v1/payments" \
  -H "Authorization: Bearer $AIM_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: order_2026_0001' \
  -d '{"amount":10000,"currency":"USD","reference":"order-0001","customer":{"name":"Example Customer","email":"customer@example.com"}}'

Amounts are integer minor units: 10000 means USD 100.00. Save the returned payment id. Retrying the same key and body returns the same payment; a changed body conflicts.

Replace the example name and email with your customer's details. Aim Atlantic finds or creates their wallet in the background using your organization, environment and email. Send both customer.name and customer.email, without customer.id. No customer-registration call is needed. Omitting customer entirely creates an unattributed payment. See customer wallets for returning customers and balance lookup.

reference is required. This hosted-checkout example omits payment_method, card details and tokens. For S2S token confirmation, see the separate create and confirm steps. The optional direct-card contract requires separate activation before use.

Open the returned checkout_url in the customer's browser. This merchant checkout collects card details directly through secure hosted fields. Use test cards only. Keep the complete link, including its fragment; it is a scoped checkout credential and expires after 24 hours.

Payment responses identify the environment as "sandbox".

Use the sandbox checkout test cards to exercise successful authentication and declines.

4. Confirm the outcome

Do not fulfill an order from a checkout redirect or the initial create response. Process a verified payment.succeeded webhook and deduplicate it, or fetch the authoritative payment from your server:

curl "$API_BASE_URL/v1/payments/$PAYMENT_ID" \
  -H "Authorization: Bearer $AIM_API_KEY"

Authentication, processing and failure can all occur before success. Keep the same payment ID while an outcome is unknown; do not create another charge to retry an uncertain result.

5. Test a refund

curl "$API_BASE_URL/v1/payments/$PAYMENT_ID/refunds" \
  -H "Authorization: Bearer $AIM_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: refund_order_0001' \
  -d '{"amount":2500}'

This refunds USD 25.00 of a captured test payment. Observe refund.created and the eventual refund result. pending is not final success. Refunds do not erase the original gross captured amount.

Continue with payments, webhooks, recurring payments and the API reference.

On this page