Cancel a payout run
Cancel everything of the run that has not been sent. A PENDING row becomes SKIPPED with failureCode CANCELLED. A contact row whose claimable payout is still AWAITING_CLAIM has its payout cancelled, which ends its claim link and releases its hold, and becomes SKIPPED with failureCode CANCELLED. PROCESSING and COMPLETED rows, and contact rows already claimed, are left to finish. A run still PENDING_APPROVAL becomes CANCELLED, and its PAYOUT_RUN action fails with AGENT_CANCELLED. A run that has finished is refused with 409.
Authorizations
Bearer token authentication for agent-scoped endpoints. The token is the accessToken returned when redeeming a device code via POST /agents/device-codes/redeem. Agent credentials are user-scoped: all requests are automatically bound to the agent's associated customer and subject to the agent's policy.
Response
The cancelled run
A payout run an agent created. allOrNothing is always false, and scheduledAt is never set.