Last updated November 2026
Integrate virtual card issuance, funding, lifecycle management and transaction history into your application. A server-to-server REST API for approved businesses.
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.
export BASE="https://weezzz.com/api/v1"
export ID="YOUR_CLIENT_ID"
export SECRET="YOUR_CLIENT_SECRET"X-Client-ID: YOUR_CLIENT_ID
X-Client-Secret: YOUR_CLIENT_SECRET
Accept: application/json
Content-Type: application/jsonX-Idempotency-Key. See operation tracking below.From product discovery to a verified card.
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.
curl "$BASE/balance" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"curl "$BASE/fees/preview?fee_type=creation&amount=20¤cy=USD" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"The following amount and product code are illustrative. Replace them using the catalog. Persist a unique key before submitting a new order.
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"
}'{
"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.
All paths below are relative to /api/v1. Use credentials with the indicated scope.
/cards/productscards:read/cardscards:create/cardscards:read/cards/{extId}/detailscards:read/cards/{extId}/sensitivecards:read + cards:sensitive/cards/{extId}/topupcards:topup/cards/{extId}/freezecards:freeze/cards/{extId}/unfreezecards:freeze/cards/{extId}/blockcards:freeze/cards/{extId}/transactionscards:read/operations/{id}cards:read/operations/{id}/synccards:read/balancewallet:read/wallet/ledgerwallet:read/wallet/fundingswallet:fund/wallet/fundingswallet:read/wallet/fundings/{id}wallet:read/feeswallet:read/fees/previewwallet:read/webhookswebhooks:read/webhooks/testwebhooks:write/webhooks/deliverieswebhooks:readPublic health check: GET https://weezzz.com/api/ping (outside the v1 prefix).
Use the public card identifier returned by Weezzz.
| Field | Requirement |
|---|---|
product_code | Required · catalog code |
amount | Required · numeric, max 2 decimal places, product limits apply |
currency | Required · USD for current live card integration |
card_name | Optional · up to 255 characters |
email | Required for products that specify it |
first_name / last_name | Optional · up to 100 characters each |
validity_years | Optional · 1–4, only for supported products |
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"{
"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.
curl "$BASE/cards?page=1&size=25" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"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.
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.
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 '{}'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 '{}'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.
Prevent duplicate card creation and double charges.
export OP="YOUR_OPERATION_UUID"
curl "$BASE/operations/$OP" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"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.
Full PAN and CVV are not included in standard card details.
cards:read and explicit cards:sensitive. Contact Weezzz to request access; issuer authorization and applicable security requirements must be verified.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 field | Meaning |
|---|---|
card_number | Full PAN string (restricted) |
cvv | Verification code string (restricted) |
last4 / masked_pan | Masked display fields |
expiry_month / expiry_year | Expiry |
external_id | Public identifier |
card_name / product_code / currency / network / status / balance | Card metadata; values may be nullable |
| HTTP / code | Action |
|---|---|
403 · sensitive_disabled | Service unavailable; contact Weezzz. |
403 · sensitive_access_denied or scope failure | Check authorization; do not retry repeatedly. |
404 · card_not_found | Check identifier and account ownership. |
409 · card_not_ready | Verify issuance and status. |
502 · provider_unavailable, provider_identity_unverified, details_unavailable | Do not display unverified data; retry only as appropriate or contact support. |
Check available funds before every write.
curl "$BASE/wallet/ledger" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"curl "$BASE/fees?currency=USD" \
-H "X-Client-ID: $ID" \
-H "X-Client-Secret: $SECRET" \
-H "Accept: application/json"curl "$BASE/fees/preview?fee_type=topup&amount=10¤cy=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.
POST /wallet/fundings using the payload specified in your business panel. Persist its identifier and an idempotency key for the request.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.
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.
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.
Handle both status and JSON body; response shapes vary by endpoint.
| HTTP | Meaning / handling |
|---|---|
| 200 / 201 | Read succeeded / operation or creation confirmed as indicated by body. |
| 202 | Accepted or unresolved. Reconcile, do not create again. |
| 400 | Invalid request or missing idempotency key. |
| 401 | Authentication failure. |
| 403 | Permission, environment or policy restriction. |
| 404 | Resource missing or not owned by this API client. |
| 409 | Conflict, unresolved operation or card not ready. |
| 422 | Validation, insufficient balance or rejected operation. |
| 429 | Rate limited. Back off; use Retry-After when supplied. |
| 5xx | Service or issuer problem. A write may have succeeded; reconcile before retrying. |
{
"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.
Before enabling live payments or restricted data.
Start in sandbox and review your account-specific limits and pricing.