Update Transaction Amount
Updates the amount for one currency bucket of a transaction.
REST Resource
PATCH /arm/rest/rc/v1/transactions/{transactionId}/amounts/{currencyBucketId}
Required Roles
- Service Administrator, which inherits Profiles and Reconciliations - Manage
- Power User with Profiles and Reconciliations - Manage and security access to the reconciliation
- User with Reconciliation - Preparer access to the target reconciliation
- Reconciliation Owner when the current workflow allows the operation
Additional access required:
The reconciliation must be available for update. If work is assigned to a team, the user may need to claim it first.
Request
Supported Media Types: application/json
The following table summarizes the client request parameters specific to this API.
Table 4-138 Update Transaction Amount Request Parameters
| Name | Description | Type | Required |
|---|---|---|---|
transactionId |
Unique transaction identifier. | Path | Yes |
currencyBucketId |
Currency bucket identifier. | Path | Yes |
currencyBucket |
Optional JSON body alias for currencyBucketId. If supplied, it must match the bucket identifier in the request URL. | Payload | No |
amount |
Amount to update. For a calculated bucket, a supplied non-null amount can be changed only when the bucket is the first bucket, is already overridden, the request sets override to true, or the reconciliation uses historical rates. | Payload | No |
currency |
Currency code. | Payload | No |
override |
Set to true to explicitly override a calculated currency bucket amount. | Payload | No |
| currencyBucketId | Optional body bucket identifier. If supplied, it must match currencyBucketId in the request URL. | Payload | No |
Example request:
PATCH /arm/rest/rc/v1/transactions/100000006161313/amounts/100002
Example of a request body:
{
"amount": 1400.00,
"currency": "USD",
"override": true
}
This endpoint supports only transactions with amortizationMode set to N. To modify original amounts for amortizing or accreting transactions, use Update Transaction Amortization: PATCH /arm/rest/rc/v1/transactions/{transactionId}/amortization. Using this amount endpoint for those transactions returns HTTP 400 (Bad Request).
For a calculated bucket, changing a supplied non-null amount requires at least one of the following: the bucket is the first bucket; its amount is already overridden; override is true in the request; or the reconciliation uses historical rates. Otherwise, the operation returns HTTP 400 (Bad Request) with the message: amount is read-only unless override is true.
The URL identifies the currency bucket. The body can omit the identifier. If currencyBucketId or its alias currencyBucket is supplied in the body, it must match the path bucket; a mismatch returns HTTP 400 (Bad Request).
In the example, bucket 100002 is updated to 1400.00 USD. The override flag allows an otherwise calculated, read-only amount to be updated. The body omits the bucket identifier because it is already in the URL.
Response
The following table summarizes the response properties.
Table 4-139 Update Transaction Amount Response Parameters
| Name | Description |
|---|---|
amount |
Amount value. |
currency |
Currency code. |
currencyBucketId |
Currency bucket identifier. |
currencyBucketName |
Currency bucket name. |
override |
Indicates whether the amount is overridden. |
formattedAmount |
Formatted display amount. |
currencyBucketLabel |
Currency bucket label. |
amountLabel |
Amount label. |
firstBucket |
Indicates whether this is the first bucket. |
format |
Formatting metadata. |
hintFormat |
Formatting hint. |
Supported Media Types: application/json
Example of a response body:
{
"amount": 1400.00,
"currency": "USD",
"currencyBucketId": 100002,
"override": true
}