Weezzz

Card issuing API

Last updated November 2026

Weezzz developer platform · API v1

Build your own card issuing experience.

Integrate virtual card issuance, funding, lifecycle management and transaction history into your application. A server-to-server REST API for approved businesses.

REST / JSONSandbox & liveIdempotent writesScoped credentials
Use sandbox credentials before going live. Live access and sensitive-card permissions require approval. Product availability, limits and pricing depend on your account.

01 · Authentication

Keep all API credentials on your backend.

Base URL: https://weezzz.com/api/v1. Send JSON and use HTTPS. The same base URL is used for the partner API; the authenticated credential determines the environment.

Shell configuration (placeholders)
export BASE="https://weezzz.com/api/v1"
export ID="YOUR_CLIENT_ID"
export SECRET="YOUR_CLIENT_SECRET"
Required headers
X-Client-ID: YOUR_CLIENT_ID
X-Client-Secret: YOUR_CLIENT_SECRET
Accept: application/json
Content-Type: application/json
  • Use separate sandbox and live credentials from your business panel.
  • Keep credentials out of browser JavaScript, mobile apps, source control and logs. Rotate compromised credentials.
  • Each endpoint requires the appropriate scope. Sensitive card access requires explicit approval for the individual live API client.
  • Financial writes require an X-Idempotency-Key. See operation tracking below.

02 · Quick start

From product discovery to a verified card.

1. Discover products

GET /cards/products
curl "$BASE/cards/products" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

Select a returned product_code. Check currency, issue_min, issue_max, topup_min, topup_max and email_required. Do not hard-code a BIN or assume every product is available.

2. Check funds and pricing

GET /balance
curl "$BASE/balance" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
GET /fees/preview
curl "$BASE/fees/preview?fee_type=creation&amount=20&currency=USD" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

3. Create a card

The following amount and product code are illustrative. Replace them using the catalog. Persist a unique key before submitting a new order.

POST /cards
export CREATE_KEY="order-1042-create"
curl -X POST "$BASE/cards" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json" \
  -H "X-Idempotency-Key: $CREATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "product_code": "REPLACE_WITH_CATALOG_CODE",
  "amount": 20,
  "currency": "USD",
  "card_name": "Customer card"
}'

4. Save the returned identifiers

Example · HTTP 202 Accepted
{
  "success": true,
  "pending": true,
  "operation_id": "00000000-0000-4000-8000-000000000001",
  "data": {
    "external_id": "wzc_123",
    "public_id": "wzc_123",
    "status": "pending",
    "currency": "USD"
  }
}

An accepted operation is not a completed card. Save operation_id and public_id (or the returned external identifier), then check the operation and card status. HTTP 201 with an active card indicates successful creation.

03 · Endpoint reference

All paths below are relative to /api/v1. Use credentials with the indicated scope.

MethodEndpoint / scopeDescription
Cards
GET
/cards/productscards:read
Available products and limits
POST
/cardscards:create
Issue a card · idempotent
GET
/cardscards:read
List your cards
GET
/cards/{extId}/detailscards:read
Masked card metadata
POST
/cards/{extId}/sensitivecards:read + cards:sensitive
Restricted full details · live only
POST
/cards/{extId}/topupcards:topup
Add funds · idempotent
POST
/cards/{extId}/freezecards:freeze
Freeze · idempotent
POST
/cards/{extId}/unfreezecards:freeze
Unfreeze · idempotent
POST
/cards/{extId}/blockcards:freeze
Permanent block · idempotent
GET
/cards/{extId}/transactionscards:read
Transaction history
Operation tracking
GET
/operations/{id}cards:read
Read operation state
POST
/operations/{id}/synccards:read
Reconcile eligible operations
Wallet & pricing
GET
/balancewallet:read
Wallet balance
GET
/wallet/ledgerwallet:read
Wallet ledger
POST
/wallet/fundingswallet:fund
Start funding checkout
GET
/wallet/fundingswallet:read
List funding requests
GET
/wallet/fundings/{id}wallet:read
Funding status
GET
/feeswallet:read
Account price list
GET
/fees/previewwallet:read
Fee quote
Webhooks
GET
/webhookswebhooks:read
Read webhook configuration
POST
/webhooks/testwebhooks:write
Send test event
GET
/webhooks/deliverieswebhooks:read
Inspect delivery history

Public health check: GET https://weezzz.com/api/ping (outside the v1 prefix).

04 · Card management

Use the public card identifier returned by Weezzz.

Creation fields

FieldRequirement
product_codeRequired · catalog code
amountRequired · numeric, max 2 decimal places, product limits apply
currencyRequired · USD for current live card integration
card_nameOptional · up to 255 characters
emailRequired for products that specify it
first_name / last_nameOptional · up to 100 characters each
validity_yearsOptional · 1–4, only for supported products

Read card metadata

GET /cards/{extId}/details
export CARD="wzc_123" # replace with your returned ID
curl "$BASE/cards/$CARD/details" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
Example · masked card response
{
  "success": true,
  "data": {
    "external_id": "wzc_123",
    "public_id": "wzc_123",
    "status": "active",
    "currency": "USD",
    "network": "MC",
    "masked_pan": "**** **** **** 1234",
    "balance": "20.00",
    "expiry_month": 10,
    "expiry_year": 2030
  },
  "provider_verified": true,
  "pending": false
}

Use masked_pan for the last four digits. Never derive the last four from a card identifier. If the mask is missing, show a placeholder. Treat an unverified balance as potentially stale.

List cards and transactions

GET /cards
curl "$BASE/cards?page=1&size=25" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
GET /cards/{extId}/transactions
curl "$BASE/cards/$CARD/transactions?page=1&size=20" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

Cards use page/size (1–100 per page). Transactions also accept from/to date filters; use UTC ISO 8601. A failed history request is not an empty transaction list.

Top up

POST /cards/{extId}/topup
export TOPUP_KEY="order-1043-topup"
curl -X POST "$BASE/cards/$CARD/topup" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json" \
  -H "X-Idempotency-Key: $TOPUP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 10
}'

The API minimum is $1.01, subject to higher product limits. Ensure available wallet funds cover amount plus fees.

Freeze, unfreeze and block

POST /cards/{extId}/freeze
export FREEZE_KEY="order-1044-freeze"
curl -X POST "$BASE/cards/$CARD/freeze" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json" \
  -H "X-Idempotency-Key: $FREEZE_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST /cards/{extId}/unfreeze
export UNFREEZE_KEY="order-1045-unfreeze"
curl -X POST "$BASE/cards/$CARD/unfreeze" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json" \
  -H "X-Idempotency-Key: $UNFREEZE_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST /cards/{extId}/block
export BLOCK_KEY="order-1046-block"
curl -X POST "$BASE/cards/$CARD/block" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json" \
  -H "X-Idempotency-Key: $BLOCK_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "confirmation": "BLOCK"
}'

Block is permanent. Confirm explicitly with the cardholder and do not resubmit pending control operations with a new key.

05 · Idempotency & operation tracking

Prevent duplicate card creation and double charges.

  • For create, topup, freeze, unfreeze and block, persist one unique key per business operation. Keys must be 8–128 characters (letters, digits, dot, underscore, colon, hyphen).
  • Retry the same operation only with the same key, endpoint and identical body. Never reuse a key for another operation.
  • HTTP 202 or a timeout is not a confirmed failure. Do not create another card, credit or refund a customer until the outcome is reconciled.
  • Read operation status; use sync for supported creation and topup reconciliation. Card-control operations may require manual reconciliation.
GET /operations/{id}
export OP="YOUR_OPERATION_UUID"
curl "$BASE/operations/$OP" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
POST /operations/{id}/sync
curl -X POST "$BASE/operations/$OP/sync" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

Inspect data.state, data.current_state, data.card, data.transaction_status and data.result. The original result may remain pending even after the card state changes. Reconcile the relevant card or transaction before updating your own ledger. Back off between checks.

06 · Restricted card details

Full PAN and CVV are not included in standard card details.

Restricted to approved live merchants and explicitly authorized API clients. The global service must be enabled. Sandbox credentials cannot retrieve live card details.
  • Required scopes: cards:read and explicit cards:sensitive. Contact Weezzz to request access; issuer authorization and applicable security requirements must be verified.
  • Only cards belonging to the authenticated API client can be accessed. Card status must be active or frozen and issuer identity must be verified.
  • The route is limited to 5 requests per minute by its additional throttle; other API rate limits also apply.
POST /cards/{extId}/sensitive
curl --silent --show-error --output /dev/null --write-out "HTTP %{http_code}\n" -X POST "$BASE/cards/$CARD/sensitive" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

# Handle the response in a protected server context.
# Do not run against live cards in a logged terminal.

The command above is a status-only diagnostic: it deliberately discards the response body. In an authorized application, consume the response on your backend and return only to the verified cardholder through a protected reveal flow.

Response fieldMeaning
card_numberFull PAN string (restricted)
cvvVerification code string (restricted)
last4 / masked_panMasked display fields
expiry_month / expiry_yearExpiry
external_idPublic identifier
card_name / product_code / currency / network / status / balanceCard metadata; values may be nullable
  • Use a short-lived, authenticated reveal flow with ownership checks, CSRF protection where applicable and appropriate step-up authentication.
  • Do not store CVV or full sensitive response in logs, caches, analytics, browser storage, webhooks or idempotency records. Do not expose API keys to the frontend.
  • Respect no-store response headers and issuer / applicable card-data security requirements. Use masked metadata for routine screens.
HTTP / codeAction
403 · sensitive_disabledService unavailable; contact Weezzz.
403 · sensitive_access_denied or scope failureCheck authorization; do not retry repeatedly.
404 · card_not_foundCheck identifier and account ownership.
409 · card_not_readyVerify issuance and status.
502 · provider_unavailable, provider_identity_unverified, details_unavailableDo not display unverified data; retry only as appropriate or contact support.

07 · Wallet funding & fees

Check available funds before every write.

GET /wallet/ledger
curl "$BASE/wallet/ledger" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
GET /fees
curl "$BASE/fees?currency=USD" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"
GET /fees/preview
curl "$BASE/fees/preview?fee_type=topup&amount=10&currency=USD" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

The public Pricing page is an overview; account-specific fees and product constraints govern your integration. Obtain a fresh quote before charging.

Funding workflow

  • Start a funding request with POST /wallet/fundings using the payload specified in your business panel. Persist its identifier and an idempotency key for the request.
  • Send the customer to the returned payment checkout when applicable.
  • Verify status with GET /wallet/fundings/{id} and reconcile against the wallet balance and ledger. A redirect alone does not confirm payment.

Funding request fields depend on the funding implementation. Consult the authenticated partner documentation before submitting funding requests.

08 · Signed webhooks

Use event notifications to trigger reconciliation.

Configure your webhook URL and secret in your business panel. Verify the signature against the exact raw request body and timestamp.

X-Weezzz-Signature = HMAC-SHA256(secret, timestamp + "." + raw_body)
  • Read the timestamp supplied by the sender (X-Weezzz-Timestamp in the partner guide) and reject missing, invalid or stale timestamps.
  • Use a constant-time comparison and the signature encoding specified by your panel. Do not verify re-serialized JSON.
  • Deduplicate events using the event ID when supplied. Return a 2xx response once safely accepted.
  • Do not treat notifications as authoritative for balances: re-read the relevant resource. Never include PAN or CVV in event logs.
GET /webhooks/deliveries
curl "$BASE/webhooks/deliveries" \
  -H "X-Client-ID: $ID" \
  -H "X-Client-Secret: $SECRET" \
  -H "Accept: application/json"

Use POST /webhooks/test to validate delivery. See the panel for current event names, payload fields and retry behavior.

09 · HTTP responses & errors

Handle both status and JSON body; response shapes vary by endpoint.

HTTPMeaning / handling
200 / 201Read succeeded / operation or creation confirmed as indicated by body.
202Accepted or unresolved. Reconcile, do not create again.
400Invalid request or missing idempotency key.
401Authentication failure.
403Permission, environment or policy restriction.
404Resource missing or not owned by this API client.
409Conflict, unresolved operation or card not ready.
422Validation, insufficient balance or rejected operation.
429Rate limited. Back off; use Retry-After when supplied.
5xxService or issuer problem. A write may have succeeded; reconcile before retrying.
Example · JSON error
{
  "success": false,
  "code": "card_not_found",
  "message": "Card not found."
}

Laravel validation errors may also include an errors object. Do not rely on a universal error code field for all middleware or validation responses.

10 · Production checklist

Before enabling live payments or restricted data.

  • Test product discovery, fees, creation, pending states, topup, freeze, unfreeze and block with sandbox credentials.
  • Confirm card ownership and isolation by user and API client in all your routes.
  • Persist operation keys and reconcile pending or failed responses before any financial adjustment.
  • Handle fraud-related restrictions and declines without repeated retries. Review terms of service.
  • Request restricted access only if necessary and confirm issuer and security obligations. Test that unauthorized accounts cannot access card details.
  • Use the authenticated business-panel documentation for the current integration contract and support for unresolved operations.

Ready to integrate?

Start in sandbox and review your account-specific limits and pricing.

Open business account →

See Pricing and Terms.