API Reference / Sandbox
Reset sandbox data
POSThttps://api.moolre.com/open/sandbox/reset
Clear test data for one sandbox wallet that is yours. After a reset an externalref can be used again. Sandbox only.
Headers
- X-API-USER string required
Your Moolre username.
- X-API-KEY string required
Your wallet private API key. A public key is refused.
Body parameters
- accountnumber string required
Your sandbox wallet account number.
- scope string optional
all (default), transactions (also clears OTP and idempotency rows and restores the balance), balance, webhooks, bulk or invoices.
- balance string optional
The balance to restore, for example 1000.00.
Responses
200 Success
The number of rows deleted per table and the new balance.
{ "status": 1, "code": "SBR01", "message": "Sandbox data reset.", "data": { "deleted": { "transactions": 12, "webhook_deliveries": 4 }, "balance": "1000.00" }, "go": null, "meta": { "requestid": "req_c68f4c66115c26725c796242", "notices": [] }}200 (HTTP 400 in strict mode) Bad scope
scope is not one of the allowed values.
{ "status": 0, "code": "SBR03", "message": "scope must be one of all, transactions, balance, webhooks, bulk, invoices.", "data": "scope", "go": null, "meta": { "requestid": "req_c68f4c66115c26725c796242", "notices": [] }}