Skip to main content
POST
/
contracts
/
{id}
/
fees
Create Fee
curl --request POST \
  --url https://v1.api.flux-os.com/contracts/{id}/fees \
  --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>"
}
'
{
  "data": {
    "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.

Body

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

Response

Fee successfully created.

data
object