Staging Environment
| Base URL | https://dev.cashweb.cash/api/v1/partner |
| Purpose | Integration testing and development |
Getting Sandbox Credentials
Contact the CashWeb team to receive staging API keys:- Email: michael@cashweb.cash
Testing Workflow
1. Create a Quote
2. Create a Transaction
3. Verify Webhook Delivery
Set up a webhook endpoint (use a service like webhook.site for testing) and verify you receivetransaction.created events.
4. Query Transaction Status
5. Simulate Lifecycle Events
Use the staging-only sandbox simulator to drive partner webhook and TSQ flows from one standalone endpoint: You must first create a transaction and use the returned transactionid as transaction_id. The simulator does not create transactions for you.
transaction_id: target CashWeb partner transaction id returned byPOST /transactionsevent: lifecycle event to simulatedeposit_id: optional stable override for the simulated deposit identifierblockchain_hash: optional stable override for simulated deposit chain data
deposit.detecteddeposit.confirmedtransaction.completedtransaction.failedtransaction.expiredtransaction.refundedpayout.settled
- This endpoint exists only in staging and test environments.
- Production does not mount the route at all.
deposit.detectedcreates or reuses a deposit record and emits the corresponding partner webhook.deposit.confirmedreuses the same transaction and deposit progression logic as normal deposit handling.transaction.completed,transaction.failed,transaction.expired, andtransaction.refundedadvance the transaction through the same lifecycle machinery used by normal processing.payout.settledemits the payout-settled partner webhook
Staging vs Production
| Behavior | Staging | Production |
|---|---|---|
| API keys | Sandbox-only credentials | Production credentials |
| Rate limits | Relaxed | Enforced |
| Webhooks | Delivered to test endpoints | Delivered to registered endpoints |
| Blockchain | Mainnet deposits | Mainnet deposits |
| Payouts | Simulated | Real fiat settlements |