GL Accounts

Map an FX authority to a real company GL account

put/companies/{companyId}/fx-account-roles/{role}

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required
role, 'TRANSFER_CLEARING' | 'REALIZED_FX_GAIN_LOSS' | 'UNREALIZED_FX_GAIN_LOSS' required

Headers

X-Median-App-Surface, 'qa' required

Customer-app QA bundle marker. This is necessary but not sufficient; the server also requires a JWT-authenticated member, an allowlisted company id, and persisted client_status=test.

Request body

object required
glAccountId, string uuid required

Response

Audited company-scoped role mapping

FxAccountingRoleResponse required
success, boolean
data, FxAccountingRoleAuthority

Example response

{
  "data": {
    "account": {
      "code": "1000",
      "name": "Cash"
    }
  }
}

Changes

No recorded changes to this operation across all 110 revisions of this API.