This may be through an auction, mainly annual and day ahead, or in some cases through a secondary market (i.e. buying or selling capacity to other organizations)
Capacity is usually bought in flow rate units (e.g. Nm3/hour for gas, MW for power) over a period of days, a month, quarter, years etc.
Capacity gives the right, but not the obligation, to flow gas or power from one location to another
Transmission
In order to use the capacity the trading organization needs to nominate transmission of gas or power to the TSO
Let's say we have a long term capacity contract to flow power from the France to the UK through the IFA
Noticing the price of power is less in France than in the UK so we nominate to the TSO that we will flow power (up to the capacity flow rate), using the capacity.
We normally book this as a trade in our ETRM, but there is no change of title - this is an internal trade
Obviously we need to hedge this with an appropriate long position in France (we buy the power in France) and a short position in UK (we sell the power in UK)