Introduction
Wiredx API
Wiredx lets you accept ACH bank payments at 0.35% per payment, capped at $2.50. The API is REST-based, uses JSON responses, and amounts are always in cents.
Base URL: https://api.wiredx.live/v1
Quickstart
The full flow takes three steps: create a payment on your server, send the customer to hosted checkout, then listen for the webhook.
1. Create a payment
curl https://api.wiredx.live/v1/payments \
-H "Authorization: Bearer sk_test_..." \
-d amount=12000 \
-d currency=usd \
-d customer_email=ana@example.com2. Redirect to hosted checkout
# Send the customer to payment.checkout_url
open "https://wiredx.live/checkout/pay_6f1c2a9e"3. Handle the webhook
# Wiredx POSTs JSON to your endpoint:
# { "type": "payment.succeeded", "data": { "id": "pay_6f1c2a9e", ... } }Authentication
Authenticate with your secret key as a Bearer token. Keys starting with sk_test_ hit test mode; sk_live_ keys move real money. Create keys under Dashboard → API keys.
curl https://api.wiredx.live/v1/payments \
-H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"Create a payment
Creates a payment and returns a checkout_url where the customer links their bank and authorizes the debit.
| Parameter | Type | Description |
|---|---|---|
| amountrequired | integer | Amount in cents. Minimum 100 ($1.00). |
| currencyrequired | string | Only usd is supported. |
| customer_email | string | Receipt and checkout prefill email. |
| description | string | Shown to the customer at checkout. |
| metadata | object | Up to 20 key/value pairs for your own reference. |
curl https://api.wiredx.live/v1/payments \
-H "Authorization: Bearer sk_test_..." \
-d amount=12000 -d currency=usd \
-d customer_email=ana@example.com \
-d "metadata[order_id]=1042"{
"id": "pay_6f1c2a9e",
"object": "payment",
"amount": 12000,
"currency": "usd",
"fee": 42,
"status": "requires_payment",
"customer_email": "ana@example.com",
"metadata": { "order_id": "1042" },
"checkout_url": "https://wiredx.live/checkout/pay_6f1c2a9e",
"livemode": false,
"created": 1767225600
}Retrieve a payment
Returns a single payment object.
curl https://api.wiredx.live/v1/payments/pay_6f1c2a9e \
-H "Authorization: Bearer sk_test_..."List payments
| Parameter | Type | Description |
|---|---|---|
| limit | integer | 1–100, default 10. |
| status | string | Filter by status. |
| starting_after | string | Cursor: a payment ID for pagination. |
curl "https://api.wiredx.live/v1/payments?limit=10&status=succeeded" \
-H "Authorization: Bearer sk_test_..."{
"object": "list",
"data": [ { "id": "pay_6f1c2a9e", "status": "succeeded", ... } ],
"has_more": false
}Refunds
Refunds are sent as an ACH credit back to the customer's bank and arrive in 1–3 business days. Omit amount to refund in full.
| Parameter | Type | Description |
|---|---|---|
| amount | integer | Cents to refund. Defaults to the full amount. |
| reason | string | duplicate, requested_by_customer, or other. |
curl https://api.wiredx.live/v1/payments/pay_6f1c2a9e/refunds \
-H "Authorization: Bearer sk_test_..." \
-d amount=5000Webhooks
Add endpoints under Dashboard → Webhooks. We POST a JSON event every time a payment changes status, and retry with backoff for up to 3 days if your server doesn't return 2xx.
| Parameter | Type | Description |
|---|---|---|
| payment.pending | event | Debit submitted; settles in 1–3 business days. |
| payment.succeeded | event | Funds settled. Safe to fulfill. |
| payment.returned | event | Bank reversed the debit (e.g. R01 insufficient funds). |
| payment.failed | event | Debit could not be submitted. |
{
"id": "evt_91ab3c",
"type": "payment.returned",
"created": 1767225600,
"data": {
"id": "pay_6f1c2a9e",
"amount": 12000,
"status": "returned",
"return_code": "R01"
}
}Wiredx-Signature header: an HMAC-SHA256 of the raw body using your endpoint's signing secret. Compare it in constant time before trusting the event.Testing
In test mode, hosted checkout shows buttons to choose the bank outcome. From the dashboard, open any payment and use Simulate success or Simulate return — webhook deliveries are logged so you can inspect the payload.
Try it
Build a request and see the response shape — no key needed. For a real test payment, use the dashboard sandbox.
curl https://api.wiredx.live/v1/payments \
-H "Authorization: Bearer sk_test_..." \
-d amount=12000 \
-d customer_email=ana@example.comErrors
Wiredx uses standard HTTP codes. Error bodies always contain type, code and a human-readable message.
| Parameter | Type | Description |
|---|---|---|
| 400 | invalid_request | Missing or invalid parameter. |
| 401 | authentication_error | Missing or invalid API key. |
| 404 | not_found | Resource doesn't exist. |
| 409 | idempotency_conflict | Idempotency-Key reused with different params. |
| 429 | rate_limited | Too many requests. |
| 500 | api_error | Something went wrong on our side. |
{
"error": {
"type": "invalid_request",
"code": "amount_too_small",
"message": "amount must be at least 100 cents",
"param": "amount"
}
}Rate limits
Default limit is 100 requests per second in live mode and 25 in test mode. Responses include RateLimit-Remaining. Need more? Contact support.
SDKs & examples
Official libraries are coming soon. Until then, any HTTP client works.
# No install needed