Skip to content

Sandbox scenarios

POST
/open/sandbox/scenarios

Read the sandbox test catalogue as JSON: the test numbers (last three digits), the magic amounts, the request status values and the outcome each produces. Public and read-only: no keys needed. A test suite can read this instead of hard-coding the numbers.

science

Sandbox Simulation Mode

All actions on this page are fully simulated. No real accounts are created, and no real money is debited or credited. Use this environment to safely test your integration workflow.

history

Request History

Your request history will appear here.

Headers

X-API-USER stringrequired

Optional. Your Moolre username.

Body Params

Responses

The catalogue: environment, outcomes (test numbers, magic amounts and statuses), the trigger and reset endpoints, webhook signing, and limits.

statusinteger
1 for success
codestring
Response code, SBX01
messagestring
Response message
dataobject
Result
gonull
Navigation hint
metaobject
Always present. meta.requestid is the unique id of this request (also the X-Request-Id header); quote it to support. meta.notices is an array, empty when there is nothing to report. meta.replayed is true only on an idempotent replay.
{  "status": 1,  "code": "SBX01",  "message": "Sandbox scenarios",  "data": {    "environment": "sandbox",    "outcomes": "...",    "trigger": {      "endpoint": "POST /open/sandbox/trigger"    },    "reset": {      "endpoint": "POST /open/sandbox/reset"    },    "limits": {      "otp": "At most 3 OTP SMS per phone per 10 minutes"    }  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}

Fields every response can carry

On failures, read code, message and data (the first failing field). meta is always present and holds requestid (also the X-Request-Id header), notices and, only on idempotent replays, replayed. There is no outcome field: use status, code and data.txstatus. Send X-Moolre-Http-Status: strict to receive real HTTP status codes. See Responses and request IDs and Errors and status codes.

Language

curl --request POST \     --url 'https://sandbox.moolre.com/open/sandbox/scenarios' \     --header 'X-API-USER: Your Username' \     --header 'Content-Type: application/json' \     --data '{}'

Response

Body

{  "status": 1,  "code": "SBX01",  "message": "Sandbox scenarios",  "data": {    "environment": "sandbox",    "outcomes": "...",    "trigger": {      "endpoint": "POST /open/sandbox/trigger"    },    "reset": {      "endpoint": "POST /open/sandbox/reset"    },    "limits": {      "otp": "At most 3 OTP SMS per phone per 10 minutes"    }  },  "go": null,  "meta": {    "requestid": "req_c68f4c66115c26725c796242",    "notices": []  }}