Skip to main content
PATCH
/
contracts
/
{id}
/
fees
/
{fee_id}
Update Fee
curl --request PATCH \
  --url https://v1.api.flux-os.com/contracts/{id}/fees/{fee_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-user-id: <api-key>' \
  --data '
{
  "type": "<unknown>",
  "fee_category": "<unknown>",
  "currency": "<unknown>",
  "amount": null,
  "transport_leg": "<unknown>",
  "measurement_unit": "<unknown>"
}
'
{
  "id": "<string>",
  "contract": {
    "external_id": "<string>",
    "id": "<string>"
  },
  "type": {
    "name": "<string>",
    "short_code": "<string>",
    "id": "<string>"
  },
  "fee_category": {
    "name": "<string>",
    "short_code": "<string>",
    "id": "<string>"
  },
  "currency": {
    "name": "<string>",
    "symbol": "<string>",
    "id": "<string>"
  },
  "amount": null,
  "transport_leg": "<unknown>",
  "measurement_unit": {
    "name": "<string>",
    "abbreviation": "<string>",
    "id": "<string>",
    "html_symbol": null
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "total_cost": 123
}

Authorizations

x-api-key
string
header
required
x-user-id
string
header
required

Path Parameters

id
integer
required

The contract ID.

fee_id
integer
required

The fee ID.

Body

application/json
type
any
required
fee_category
any
required
currency
any
required
amount
number | null
transport_leg
unknown
measurement_unit
unknown

Response

Fee updated.

id
string
contract
object
type
object
fee_category
object
currency
object
amount
number | null
transport_leg
unknown
measurement_unit
object
created_at
string<date-time>
updated_at
string<date-time>
total_cost
number