Operation Payload

What It Does

Use category: "operation" to attach business operation data to a disbursement. This can include revenue, cost, operating dates, and optional asset fields.

Field Summary

Required Fields

FieldRequiredNotes
operation_idAlwaysUnique operation identifier.
stepAlwayscreate, update, or delete.
disbursement_idCreateParent disbursement id.
operation_nameCreateShort operation name.

Common optional fields:

An operation can be a trade finance operation, an asset-backed operation or any given type of operation.

Use the optional fields that best describe your usecase.

FieldNotes
operation_descriptionLonger description of the operation.
operation_start_dateOperation start date. Accepts ISO 8601 date-only or timestamp input.
operation_end_dateOperation end date. Accepts ISO 8601 date-only or timestamp input.
operation_revenueNumeric operation revenue.
operation_costNumeric operation cost.
currencyISO 4217 code. Keep aligned with related amounts.
asset_idAsset identifier when operation has asset context.
asset_typeAsset type when operation has asset context.
asset_valueAsset value when operation has asset context.
asset_descriptionAsset description when operation has asset context.
asset_purchase_dateAsset purchase date. Accepts ISO 8601 date-only or timestamp input.
asset_conditionCurrent asset condition. Sending a non-empty value creates a worker-managed asset status row.
depreciation_amountDepreciation amount. Requires asset_id or asset_value.
depreciation_periodDepreciation period: daily, monthly, quarterly, or yearly. Requires asset_id or asset_value.
depreciation_methodDepreciation method: straight_line or amortization. Requires asset_id or asset_value.
infoAdditional structured metadata.

Allowed depreciation_period: daily, monthly, quarterly, yearly.

Allowed depreciation_method: straight_line, amortization.

Create Operation

{
  "category": "operation",
  "data": {
    "step": "create",
    "operation_id": "OP-2024-001",
    "disbursement_id": "DSB-2024-001",
    "operation_name": "Vehicle lease activity",
    "operation_description": "Revenue operation backed by a vehicle asset",
    "operation_start_date": "2024-10-20T12:34:56Z",
    "operation_revenue": 1000,
    "operation_cost": 250,
    "currency": "USD",
    "asset_id": "AST-2024-001",
    "asset_type": "vehicle",
    "asset_value": 15000,
    "asset_condition": "active",
    "depreciation_amount": 100,
    "depreciation_period": "monthly",
    "depreciation_method": "straight_line"
  }
}

Update

Use step: "update" with the same operation_id and fields to change.

{
  "category": "operation",
  "data": {
    "step": "update",
    "operation_id": "OP-2024-001",
    "operation_revenue": 1250,
    "operation_cost": 275
  }
}

Delete

{
  "category": "operation",
  "data": {
    "step": "delete",
    "operation_id": "OP-2024-001"
  }
}

Notes