Skip to main content
DELETE
Delete a settlement rule

Authorizations

Authorization
string
header
required

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.

Path Parameters

settlementRuleId
string
required

System-generated unique settlement rule identifier

Response

The deleted rule

id
string
required

System-generated unique settlement rule identifier

Example:

"SettlementRule:019542f5-b3e7-1d02-0000-000000000001"

customerId
string
required
Example:

"Customer:019542f5-b3e7-1d02-0000-000000000001"

name
string
required
Example:

"Glossier deal"

status
enum<string>
required

Status of a settlement rule.

Available options:
PENDING_APPROVAL,
ACTIVE,
PAUSED,
DELETED
priority
integer<int32>
required
Example:

1

currency
string
required
Example:

"USD"

match
object[]
required
splits
object[]
required
holdSeconds
integer
required
Example:

0

achHoldSeconds
integer
required
Example:

86400

limits
object
required

Caps on what the rule pays, in the smallest unit of its currency. An execution that would go over a cap is skipped with LIMIT_EXCEEDED, and the customer keeps the payment.

createdAt
string<date-time>
required
Example:

"2026-11-06T18:00:00Z"

updatedAt
string<date-time>
required
Example:

"2026-11-06T18:00:00Z"

agentId
string

The agent that created the rule through the agent API. Absent for a rule created with an API token.

Example:

"Agent:019542f5-b3e7-1d02-0000-000000000042"

agentActionId
string

The CREATE_SETTLEMENT_RULE agent action awaiting the customer's approval of the rule. Present while the rule is PENDING_APPROVAL.

Example:

"AgentAction:019542f5-b3e7-1d02-0000-000000000099"

pendingChangeActionId
string

The UPDATE_SETTLEMENT_RULE agent action holding a change to the rule's match, shares or limits until the customer approves it. Present while the change waits; the rule keeps its current terms until then.

Example:

"AgentAction:019542f5-b3e7-1d02-0000-000000000098"