v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBEarmarking (external accounts)
Update earmark
Update an earmark balance.
This endpoint generates the following events:
- Platform authorization created
- Account balance changed
- Account balance changed (Availables)
- Transaction created
- Earmark created, updated, or canceled with UPDATED action.
NOTES:
- This endpoint requires an account token - an access token encoded with an external account ID. Tokens can expire quickly, which can result in a 401 Unauthorized message.
- To find the correct reason IDs, refer to the List account status reasons endpoint.
- The maximum number of internal operation inputs (updates that change the earmark amount) allowed is 2,000. Update requests that exceed this limit return bad request errors.
- An earmark balance cannot be reduced to zero as a result of this operation. If successfully executing the request would result in a zero balance, the request fails and a bad request error is returned. If you want to reduce the balance to zero, you must use Cancel earmark, instead.
patch/corporate/v2/earmarks/{earmarkId}
Path parameters
earmarkIdstring required
Earmark ID generated by Create earmark.
Request body
Example request
{
"internal_operation": {
"tracking_id": "3368328d-e4c6-4c75-99a9-9d59f3501d8c",
"business_date": "2023-03-09",
"validation_rules": {
"ACCOUNT_STATUS": {
"override": false
},
"LEDGER": {
"force": false
},
"FLEX_CONTROLS": {
"override": true
},
"RATES": {
"override": true
}
}
},
"update_type": "INCREASE",
"amount": 1000.53,
"release_datetime": "2022-02-10T15:00:00Z"
}Response
OK
Example response
{
"earmark_id": "da85b309-a7f7-4316-b2ad-f069f0838058",
"account_id": 102701621,
"external_account_id": "b993ba96-b3e8-4ef7-9cf7-7eee5ddafdab",
"amount": 50,
"balance": 123.45,
"release_datetime": "2022-02-10T15:00:00Z",
"internal_operations": [
{
"tracking_id": "3368328d-e4c6-4c75-99a9-9d59f3501d8c",
"business_date": "2023-03-09",
"type": "HOLD_FUNDS",
"processing_code": "99066",
"amount": 50,
"validation_rules": {
"ACCOUNT_STATUS": {
"override": false
},
"LEDGER": {
"force": false
},
"FLEX_CONTROLS": {
"override": true
},
"RATES": {
"override": true
}
},
"created_at": "2022-02-10T15:00:00Z"
}
]
}