/v1/auth/deviceStart owner CLI authorization
No-KYC card and gift purchasing, direct USDC transfers and x402 API payments. Use scoped purchase keys or prepare a payment for your own wallet to sign.
Use Node.js 20 or later. The owner runs the login command, opens its displayed URL and approves the code in their wallet-authenticated console. CLI owner access lasts 24 hours. It manages agents and approvals and cannot withdraw funds.
npm install -g https://veyryn.xyz/cli/elsepay-cli-1.1.0.tgz
elsepay --help
elsepay auth loginFund the shared spending balance with USDC on Solana in Overview. Your wallet signs the funding transaction. Never give the CLI or an agent your wallet seed or private key.
The owner session creates and revokes agents and approves purchases. An autonomous job uses its assigned agent key, with no authority to raise its budget or create other agents.
elsepay agents create \
--name buyer \
--budget 100.00 --per-order 25.00 --daily 50.00 --days 7 \
--scopes cards:purchase,gifts:purchase,orders:read,secrets:read
elsepay balance --agent buyer --jsonThis key can request cards and gift cards, read its orders and explicitly reveal its own delivery details. Remove secrets:read when the agent should not see card numbers or gift codes. The CLI stores new keys in an owner-only local file and redacts them from ordinary output.
--countries US,GB and an optional --products ID,ID gift product allowlist. Card and gift purchasing have separate scopes.Agent budgets are caps on a shared owner balance. Creating an agent does not reserve its entire budget. Each purchase reserves the exact total atomically.
Use elsepay agents key buyer --reveal only when transferring the assigned key into a protected agent secret store. Set it as ELSE_API_KEY for the agent process. Avoid shell history, shared logs and prompts containing keys.
elsepay cards quote --agent buyer --amount 10.00 --json
# Use the returned quote ID and a unique job ID.
elsepay orders create --agent buyer \
--quote "$QUOTE_ID" --idempotency-key "$JOB_ID" --json
elsepay orders get "$ORDER_ID" --agent buyer --refresh --json
elsepay orders reveal "$ORDER_ID" --agent buyer --reveal --jsonSet QUOTE_ID to the returned quote ID, JOB_ID to one unique ID for this intended purchase, and ORDER_ID to the returned order ID. Quotes expire after two minutes. A quote does not charge funds. A successful submission can still be pending.
US prepaid cards support $5.00-$1,000.00 face values. Add --international for international cards, with whole USD amounts from $100.00-$1,000.00. International issuance can take up to 24 hours. Merchant acceptance, product eligibility and merchant checkout requirements still apply. Cards are funded once and are not reloadable through Veyryn.
elsepay gifts search --agent buyer --country US --query Amazon --json
# Select a returned product ID and its supported denomination.
elsepay gifts quote --agent buyer --product "$PRODUCT_ID" \
--country US --currency USD --amount 25.00 --json
# Submit the resulting quote through orders create.Search within the agent's allowed countries. Use the returned product ID, currency, denominations, minimum, maximum and increment. A gift card is tied to its stated brand and region. Submit the quote through the same order flow, then explicitly reveal the code when the order is ready.
A $25.00 face value can cost more than 25.00 USDC after fees. Give the agent a per-order limit that covers the full quoted total.
Wallet payments run independently of Laso. The public API reads balances and prepares unsigned native USDC transactions on Solana mainnet. It cannot sign, broadcast, withdraw the Veyryn checkout balance or access wallet keys. Your signer owns final approval. No Veyryn API key is required and the CLI never forwards one to these endpoints.
elsepay wallet balance --address "$WALLET" --json
elsepay wallet prepare --from "$WALLET" --to "$RECIPIENT" --amount 10.00 --json
elsepay wallet request --address "$WALLET" --amount 10.00 --json
elsepay wallet status "$SIGNATURE" --jsonSign the returned base64 transaction with your own Solana wallet, then broadcast through your trusted RPC. Review the exact recipient, mint, amount, network fee, token account rent and expiry first. Read the existing signature after submission. Unknown status is not proof that nothing was sent. The balance endpoint reads the wallet’s main associated USDC token account.
Fetch the service’s public x402 v2 challenge without sending credentials or a payment. Pin the expected service URL and recipient, and set a maximum USDC spend.
elsepay x402 prepare --from "$WALLET" --service https://service.example/resource --recipient "$MERCHANT" --max 1.00 --challenge challenge.json --jsonThe result contains an unsigned transaction and a v2 paymentPayload envelope. Partially sign the transaction with your wallet, replace paymentPayload.payload.transaction with those signed bytes in base64, and base64-encode the complete JSON envelope into the PAYMENT-SIGNATURE header. Send exactly one GET to the same HTTPS URL. The service sponsor completes signing and settlement. Never broadcast the partially signed x402 transaction yourself. Never retry a signed authorization to resolve an uncertain response.
Supported: exact native USDC on Solana mainnet, version 0 transactions, one recipient, an existing recipient USDC account and a separate network fee sponsor. Splits and other networks are rejected. The browser additionally requires CORS, including exposed payment headers and permission for PAYMENT-SIGNATURE. Service responses and receipts are not a guarantee of on-chain settlement.
Veyryn card and gift agent budgets do not constrain external wallet payments. Apply your wallet’s own permissions, recipient allowlist, spending caps and approval policy. Wallet funds and receipts are separate from Veyryn checkout funds and orders. Direct payments are public on Solana; Umbra tools provide encrypted balances and private transfers.
Base URL: https://veyryn.xyz/payments/v1. Wallet OpenAPI describes balances, direct transfer preparation, x402 preparation and transaction status. Preparation costs 0.00 USDC in Veyryn fees; ordinary network costs apply to direct sends.
Base URL: https://veyryn.xyz/v1. Use your assigned agent key as a Bearer token. Budgets and ownership checks are enforced by the server, equally for CLI and HTTP clients.
curl https://veyryn.xyz/v1/quotes \
-H "Authorization: Bearer $ELSE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"kind":"agent_card","amount":"10.00","currency":"USD"}'
curl https://veyryn.xyz/v1/orders \
-H "Authorization: Bearer $ELSE_API_KEY" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: $JOB_ID" \
-d '{"quote_id":"RETURNED_QUOTE_ID"}'Download the OpenAPI specification or give your agent the Veyryn instructions. Responses include an X-Request-Id. Errors include a code, message, request ID and retryable flag. Respect HTTP 429 and Retry-After.
Add --approval-above 15.00 when creating an agent to require approval for full quote totals above 15.00 USDC. Use --approval-above 0.00 for every purchase. Orders enter awaiting_approval, reserving both funds and agent budget.
elsepay approvals list --json
elsepay approvals approve "$ORDER_ID" --json
elsepay approvals reject "$ORDER_ID" --jsonThe owner can also approve or reject from Agents in the console. Approval must occur before the two-minute quote expires. Rejected or expired approvals return their reservation. An agent cannot approve its own request.
The CLI saves its request ID before submitting a purchase. If a connection times out, recover that same request. Never create a second purchase to resolve an unknown payment outcome.
elsepay orders recover "$JOB_ID" --agent buyer --json
elsepay orders get "$ORDER_ID" --agent buyer --refresh --jsonawaiting_approvalReserved; waiting for the owner.
processing / pending / queuedAccepted or being issued. Delivery is not yet confirmed.
readyCard or gift delivery is available.
reviewPayment or delivery needs reconciliation. Do not pay again.
failed / cancelledInspect the failure code and account balance before a new intent.
complete / archivedTerminal provider state; availability of card details depends on the issuer.
Idempotency keys are 8-120 characters using letters, numbers, dots, underscores or hyphens. Reuse a key only for the same quote. The quote also maps to a single order. --wait polls reads for up to two minutes; exit 3 means still pending. Exit 2 is an error, and exit 0 means the command succeeded. Always inspect the returned order state.
Keys are stored as hashes on the server. Rotate or revoke them from the owner console or CLI. New requests using an old key are rejected. In-flight payments may finish, and revealed card details remain usable according to issuer rules. Key revocation does not freeze a card. Veyryn does not claim issuer merchant locks.
Only an explicit reveal operation with secrets:read returns card numbers, CVV or gift delivery. Keep this output out of shared logs, analytics and unnecessary model context. The API and CLI do not accept withdrawal requests or wallet private keys.
Veyryn adds 1% of the provider price, capped at $10.00 per order. Quotes show both components. Funding has Solana network costs. Rewards, cashback and referral bonuses remain inactive. Veyryn requires no customer KYC. Umbra provides the wallet privacy layer for encrypted balances and private transfers; checkout funding is public and purchase records are retained. Read the product terms and privacy information.
/v1/auth/deviceStart owner CLI authorization
/v1/auth/device/pollClaim an approved owner CLI session
/v1/auth/logoutRevoke the current owner CLI session
/v1/meRead owner balance or agent policy
/v1/agentsList agents (owner)
/v1/agentsCreate an agent and return its key once (owner)
/v1/agents/{agent_id}/rotateRotate an agent key (owner)
/v1/agents/{agent_id}/revokeRevoke an agent key (owner)
/v1/catalog/giftsSearch allowed gift products
/v1/quotesQuote a card or gift purchase (agent)
/v1/ordersReserve and submit one purchase (agent)
/v1/ordersList owned orders
/v1/orders/{order_id}Read an owned order, optionally refresh its card status
/v1/orders/{order_id}/revealReveal card or gift details (agent with secrets scope)
/v1/orders/{order_id}/approveApprove an exact pending purchase (owner)
/v1/orders/{order_id}/rejectCancel a pending approval and release its reservation (owner)
/v1/requests/{request_key}Recover an order by its idempotency key (agent)
/v1/approvalsList pending approvals (owner)
/v1/eventsRead the scoped audit trail