Sandbox controls
Make time pass and payments finish, in sandbox only.
Move time forward
POST
/v1/test/advance_timeMoves the sandbox’s date forward and brings every payment up to it: mailed on send_on, delivered on due. A payment from an account ending 0002 comes back returned. The clock only moves forward.
Fields
tostringRequiredYYYY-MM-DD, after the sandbox’s current date.
curl -X POST "https://api.workmade.com/v1/test/advance_time" \ -H "Authorization: Bearer $WORKMADE_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "2027-01-16" }'
{
"object": "test_clock",
"now": "2027-01-16",
"payments_sent": 2,
"payments_settled": 2,
"payments_returned": 0
}Settle a payment
POST
/v1/test/payments/pay_7Hc1/settleDelivers one scheduled or mailed payment now and sends payment.settled. Anything else gets 409 payment_not_open.
curl -X POST "https://api.workmade.com/v1/test/payments/pay_7Hc1/settle" \ -H "Authorization: Bearer $WORKMADE_KEY"
{
"id": "pay_7Hc1",
"object": "payment",
"taxpayer_id": "tp_8Kq2",
"agency": "IRS",
"form": "1040-ES",
"amount": 418000,
"method": "check",
"send_on": "2027-01-03",
"due": "2027-01-15",
"quarter": "2026-Q4",
"status": "delivered",
"confirmation": "CHK-270115-8000",
"attempts": [
{
"method": "check",
"status": "mailed",
"at": "2027-01-03T15:00:00Z"
},
{
"method": "check",
"status": "delivered",
"at": "2027-01-15T17:00:00Z"
}
]
}Bounce a payment
POST
/v1/test/payments/pay_7Hc1/returnReturns a payment that isn’t already canceled or returned, and sends payment.returned.
Fields
reasonstringaccount_closed(the default),insufficient_fundsoragency_rejected.
curl -X POST "https://api.workmade.com/v1/test/payments/pay_7Hc1/return" \ -H "Authorization: Bearer $WORKMADE_KEY" \ -H "Content-Type: application/json" \ -d '{ "reason": "insufficient_funds" }'
{
"id": "pay_7Hc1",
"object": "payment",
"taxpayer_id": "tp_8Kq2",
"agency": "IRS",
"form": "1040-ES",
"amount": 418000,
"method": "check",
"send_on": "2027-01-03",
"due": "2027-01-15",
"quarter": "2026-Q4",
"status": "returned",
"confirmation": null,
"attempts": [
{
"method": "bank_debit",
"status": "returned",
"reason": "insufficient_funds",
"at": "2026-11-30T18:02:11.000Z"
}
]
}Send a sample event
POST
/v1/test/webhooksSends an event with a sample object to every endpoint, or only to endpoint_id.
Fields
typestringRequired- Any event type, including the reserved ones.
endpoint_idstring- Send to this endpoint only.
curl -X POST "https://api.workmade.com/v1/test/webhooks" \ -H "Authorization: Bearer $WORKMADE_KEY" \ -H "Content-Type: application/json" \ -d '{ "type": "payment.settled" }'
{
"id": "evt_4Qw8",
"object": "event",
"type": "payment.settled",
"created": "2026-11-30T18:02:11.000Z",
"data": {
"object": {
"object": "payment",
"sample": true,
"note": "A sample object, sent because you asked for a test event."
}
}
}POSTMove time forward
curl -X POST "https://api.workmade.com/v1/test/advance_time" \ -H "Authorization: Bearer $WORKMADE_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "2027-01-16" }'
{
"object": "test_clock",
"now": "2027-01-16",
"payments_sent": 2,
"payments_settled": 2,
"payments_returned": 0
}Was this page helpful?