Lifecycle API
Simulate a sandbox lifecycle response
Advance a submitted synthetic sandbox bill through deterministic accepted, processed, rejected, denied, partial-payment, or paid scenarios.
https://app.mindbill.org/partner/v2/sandbox/bills/{billId}/simulateAdvance a submitted synthetic sandbox bill through deterministic accepted, processed, rejected, denied, partial-payment, or paid scenarios. This endpoint is unavailable to live credentials and is intended for demos and integration tests.
Use this URL with a server API key or a browser session and its exact allowed Origin. Both credentials use the same request and response contract. See the component API inventory for exact paths and SDK methods.
Path parameters
billIdRequiredstringMindBill bill ID.
Request body
scenarioRequiredstringDeterministic synthetic response to apply.
amountnumberOptional payer-reported amount used by partial-payment scenarios.
reasonCodestringOptional synthetic adjustment or rejection reason code.
Examples
curl 'https://app.mindbill.org/partner/v2/sandbox/bills/{billId}/simulate' \
--request POST \
--header "Authorization: Bearer $MINDBILL_API_KEY" \
--header 'Content-Type: application/json' \
--data @request.json \
--header 'Idempotency-Key: example-write-0001'curl 'https://app.mindbill.org/partner/v2/sandbox/bills/{billId}/simulate' \
--request POST \
--header "Authorization: Bearer $MINDBILL_BROWSER_TOKEN" \
--header 'Origin: https://your-app.example' \
--header 'Content-Type: application/json' \
--data @request.json \
--header 'Idempotency-Key: example-write-0001'Response
200
Response fields are documented below.dataRequiredobjectSynthetic simulation result and updated bill state.