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

Every request runs in test mode or live mode depending on the key you use. Test mode never moves real money.

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.com

2. 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"
Never expose secret keys in browser code or public repositories. Keep them on your server.

Create a payment

POST/v1/payments

Creates a payment and returns a checkout_url where the customer links their bank and authorizes the debit.

ParameterTypeDescription
amountrequiredintegerAmount in cents. Minimum 100 ($1.00).
currencyrequiredstringOnly usd is supported.
customer_emailstringReceipt and checkout prefill email.
descriptionstringShown to the customer at checkout.
metadataobjectUp 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"
Response
{
  "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

GET/v1/payments/:id

Returns a single payment object.

curl https://api.wiredx.live/v1/payments/pay_6f1c2a9e \
  -H "Authorization: Bearer sk_test_..."

List payments

GET/v1/payments
ParameterTypeDescription
limitinteger1–100, default 10.
statusstringFilter by status.
starting_afterstringCursor: a payment ID for pagination.
curl "https://api.wiredx.live/v1/payments?limit=10&status=succeeded" \
  -H "Authorization: Bearer sk_test_..."
Response
{
  "object": "list",
  "data": [ { "id": "pay_6f1c2a9e", "status": "succeeded", ... } ],
  "has_more": false
}

Refunds

POST/v1/payments/:id/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.

ParameterTypeDescription
amountintegerCents to refund. Defaults to the full amount.
reasonstringduplicate, requested_by_customer, or other.
curl https://api.wiredx.live/v1/payments/pay_6f1c2a9e/refunds \
  -H "Authorization: Bearer sk_test_..." \
  -d amount=5000

Webhooks

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.

ParameterTypeDescription
payment.pendingeventDebit submitted; settles in 1–3 business days.
payment.succeededeventFunds settled. Safe to fulfill.
payment.returnedeventBank reversed the debit (e.g. R01 insufficient funds).
payment.failedeventDebit could not be submitted.
Example payload
{
  "id": "evt_91ab3c",
  "type": "payment.returned",
  "created": 1767225600,
  "data": {
    "id": "pay_6f1c2a9e",
    "amount": 12000,
    "status": "returned",
    "return_code": "R01"
  }
}
Verify signatures. Each delivery includes a 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.com
Fee: $0.42

Errors

Wiredx uses standard HTTP codes. Error bodies always contain type, code and a human-readable message.

ParameterTypeDescription
400invalid_requestMissing or invalid parameter.
401authentication_errorMissing or invalid API key.
404not_foundResource doesn't exist.
409idempotency_conflictIdempotency-Key reused with different params.
429rate_limitedToo many requests.
500api_errorSomething went wrong on our side.
Response
{
  "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