Transaction Holds

postHolds

POST
/holds

Create a holds resource. A holds resource represents a reviewable action taken on a Transaction.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create a Transaction Hold Request

Create a Transaction Hold Request

login*string

The identifier of the Login that owns this holds resource.

verificationRef?string

If this hold resource was triggered through Payrix Integration Risk, then this field stores the identifier of the VerificationRef.

released?string

If this hold was released, this will contain the timestamp for when it was released. (YYYY-MM-DD HH:II:SS)

Match^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
reviewed?string

If this hold was reviewed, this will contain the timestamp for when it was reviewed. The format should be YYYY-MM-DD HH:MM:SS.

Match^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
releaseAction?holdsReleaseAction

The final action taken on the hold while it's been released.

  • 1 - Holds released because the hold resource was approved.
  • 2 - Holds released because the hold resource was cancelled.
  • 3 - Holds released because the hold resource was refunded.
  • 4 - Holds released because the hold resource was failed.
  • 5 - Expired.

Value in

  • 1
  • 2
  • 3
  • 4
  • 5
holdSource?holdsHoldSource

Field created to know the reason for why a hold was created.

  • DS_MODEL_POLICY_RUN - DS_MODEL_POLICY_RUN
  • API_DECISION - API_DECISION
  • POLICY_RUN - POLICY_RUN
  • RISK_ALERT - RISK_ALERT
  • MANUAL - MANUAL
  • ERROR - ERROR

Value in

  • "DS_MODEL_POLICY_RUN"
  • "API_DECISION"
  • "POLICY_RUN"
  • "RISK_ALERT"
  • "MANUAL"
  • "ERROR"
holdSourceId?string

reasonid for why a hold was created.

delayedFundingStartDate?string

The timestamp when hold was considered to be delaying funding. The format should be YYYY-MM-DD HH:MM:SS.

Match^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
delayedFundingEndDate?string

The timestamp when hold stopped delaying funding, this might be due to the hold been released, cancelled or funded. (YYYY-MM-DD HH:II:SS)

Match^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
analyst?string

The person who review the hold applied.

claimed?|

The timestamp for the most recent update of the analyst field. (YYYY-MM-DD HH:II:SS)

Match^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1
notes?array<>

Response Body

application/json

application/json

curl -X POST "https://example.com/holds" \  -H "Content-Type: application/json" \  -d '{    "login": "t1_hld_0000fc11df8e4c00000e00c",    "verificationRef": "t1_xyz_12345eb00f0cf1bfc00be0f",    "released": "2025-01-31 08:42:16",    "reviewed": "2025-01-31 08:42:16",    "releaseAction": 2,    "holdSource": "API_DECISION",    "holdSourceId": "5a9bba34-38eb-489e-abd8-765e18562a08",    "delayedFundingStartDate": "2025-01-31 08:42:16",    "delayedFundingEndDate": "2025-01-31 08:42:16",    "analyst": "name",    "claimed": "2025-01-31 08:42:16",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_hld_0000fc11df8e4c00000e00c",        "created": "2025-01-31 08:42:16.7318",        "modified": "2025-01-31 08:42:16.7318",        "creator": "t1_log_123e1cbf1bcfe0d606bd000",        "modifier": "t1_log_123e1cbf1bcfe0d606bd000",        "login": "t1_log_123fc13e1234f8fd20e0fa0",        "entity": "t1_ent_66d205375262ec0f0000000",        "txn": "t1_txn_6729fc89898bbfaedc00ff0",        "terminalTxn": "t1_xyz_12345e666662ddca123a0c0",        "account": "t1_xyz_1234bff729db11267ad0000",        "verification": "t1_xyz_1234567b000ebe0b0e0dfe0",        "verificationRef": "t1_xyz_12345eb00f0cf1bfc00be0f",        "decisionAction": "t1_xyz_00a005b3e000c0ce000e0a0",        "action": 3,        "released": "2025-01-31 08:42:16",        "reviewed": "2025-02-02 08:50:16",        "inactive": 0,        "frozen": 0,        "releaseAction": 2,        "delayedFundingStartDate": "2025-02-03 08:42:16",        "delayedFundingEndDate": "2025-02-04 08:42:16",        "analyst": "t1_log_00aa000a888801466471d0z",        "claimed": "2025-02-25 06:42:16",        "holdSource": "API_DECISION",        "holdSourceId": "5a9bba34-38eb-489e-abd8-765e18562a08",        "division": "t1_div_00ea000e00e0eb1234c09e9"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}