Skip to navigation

Retrieve an outcome definition

Returns the current version, or an earlier one with version. Includes reversal and dispute rates for the last 30 days. List the versions at /v1/outcome_definitions/{outcome_definition}/versions.

Authentication

AuthorizationBearer

A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.

Path parameters

outcome_definitionstringRequired

The outcome definition ID (od_...) or key.

Query parameters

versionintegerOptional>=1
Return this version. Defaults to the current one.

Response

The outcome definition.
idstring
object"outcome_definition"
keystring
namestring
event_namestring
criteriastring
versioninteger
Starts at 1 and goes up by one with each change to terms.
confirmation_windowstring
reversal_horizonstring
reversal_ruleslist of objects
dispute_settingsobject
metadatamap from strings to strings
Up to 50 keys of your own, with keys up to 40 characters and values up to 500 characters.
livemodeboolean
created_atdatetime
version_created_atdatetime
When this version took effect.
presetstringOptional
The preset used to fill in values when this version was made, if any. The values below are explicit either way.
warningslist of objectsOptional
Only on create and update responses. Values outside the recommended ranges, with the reason.
actorobjectOptional
Who made this version.
statsobjectOptional
The last 30 days, across all versions.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error