Skip to main content

Overview

The Archefusion API uses API keys to authenticate requests. Every request must include your API key in the Authorization header using the Bearer format.
Authorization: Bearer YOUR_APIKEY
Example:
'Authorization': “Bearer af_test_ZLMu6giesFq9KbtrTYnEDhFHkCmTx7cmAa9P7n7am7E

How to get your test API keys

Step 1: Log in to your merchant dashboard on Archefusion. Step 2: Add test API credentials to at least one of your configured payment gateways. Step 3: Ensure at least one of your configured payment gateways has been activated. To activate a gateway, toggle its status from inactive to active on the payment gateway configuration page. Active payment gateway Step 4: Navigate to “Settings” > “API keys.” Step 5: Copy your API key or click “Create New Key” to generate a new one. Archefusion API Key page

How to get your live API keys

Step 1: Log in to your merchant dashboard on Archefusion. Step 2: Add live API credentials to at least one of your configured payment gateways. Step 3: Ensure at least one of your configured payment gateways has been activated. To activate a gateway, toggle its status from inactive to active on the payment gateway configuration page. Active payment gateway Step 4: Toggle “Live Mode” to go live. Switch merchant account to live mode Step 5: Navigate to “Settings” > “API keys.” Step 6: Click the “Create New Key” button to generate a new API key and copy it. Live API keys
Copy and store your API key securely once generated. You will not be able to view or copy it again after this step.

Keep your API keys secure

  1. API requests made without a valid API key will return a 401 Unauthorized error.
  2. Store your keys securely using environment variables or secret managers; never hardcode them
  3. Never share your keys in public repositories or use them in client-side code.
  4. Rotate your API key immediately if you suspect it has been compromised.