---
title: "Set transaction amount"
method: PUT
path: "/transactions/{id}/set_amount"
tags: ["Transactions"]
---

# Set transaction amount

`PUT /transactions/{id}/set_amount`

## Request

- Base URL: `https://tb.paymentfusion.com`
- URL: `https://tb.paymentfusion.com/transactions/{id}/set_amount`
- Auth: none declared. Required headers: `Authorization`, `Accept`

Called by the Independent Software Vendor. The ISV makes a request to TB in order to set the amount of a transaction

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, api_id:api_token, required
- `Accept` string, required

## Request body `application/x-www-form-urlencoded`

- object
  - `amount` integer, required: The amount value used to update the amount field in the database. Described in USD up to 6 decimals, must be a number greater than 0 and its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
  - `healthcare` HealthcareRequestFields: Optional parameters passed to the gateway.
    - `iias_verified` 'true' | 'false' | 'exempt': Merchant verified/did not verify the purchased items against an IIAS or Merchant claims exemption from IIAS based on the 90 percent rule.
    - `healthcare_amount` string: Amount health-care. Field includes the amounts in prescription_amount, vision_amount, clinic_other_amount, dental_amount and should always be equal or greater to their sum. Available for Visa and Mastercard only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `prescription_amount` string: Total amount of prescriptions used to gain access to "Rx Only" purses. This amount is included in the health-care_amount. Available for Visa and Mastercard only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `copay_amount` string: Total amount for co-payments. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `vision_amount` string: Total amount of vision care purchases. This amount is included in healthcare_amount. Available for Visa only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `clinic_other_amount` string: Total amount of clinic or other medical services. This amount is included in healthcare_amount. Available for Visa only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `dental_amount` string: Total amount of dental services. This amount is included in healthcare_amount. Available for Visa only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `transit_amount` string: Total amount charged to an FSA card for transportation to/from a healthcare provider. Available for Visa only. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").
    - `cumulative_amount` string: Total cumulative authorized amount for a series of incremental authorization transactions. Described in USD up to 6 decimals, its last 4 digits must be 0. (e.g. "1", "1.00", "1.01", "1.2", "1.230000").

## Response `200`

Success

- object
  - `v` string: The API version that was used to handle the request.

## Other responses

- `4XX`: Possible errors - 1, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, 70, 73, 74, 75, 76, 77, 78, 80, 82, 84, 85, 103, 105, 106, 107, 108, 112, 118, 147, 163, 189, 218, 270, 271

---

[API](https://skmtc.dev/bankofamerica/apis/transaction-broker-api.md) - [All operations](https://skmtc.dev/bankofamerica/apis/transaction-broker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bankofamerica/apis/transaction-broker-api/revisions/6097bc689e41?raw)
