XML 217 R173.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Related parties - Transactions with related parties (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Main transactions with related parties |  |  |
Sales and services | $ 116,884 | $ 111,404 | $ 109,980
Purchases and others | 590,860 | 708,444 | 627,924
Joint ventures |  |  |
Main transactions with related parties |  |  |
Sales and services | 25,763 | 21,267 | 49,821
Purchases and others | 543,565 | 643,131 | 591,419
Associates |  |  |
Main transactions with related parties |  |  |
Sales and services | 91,121 | 90,137 | 60,159
Purchases and others | 47,295 | 65,313 | 36,505
Gas Natural del Oriente S.A. E.S.P. | Associates |  |  |
Main transactions with related parties |  |  |
Sales and services | 0 | 0 | 0
Purchases and others | 39,659 | 53,994 | 27,175
Extrucol S.A. | Associates |  |  |
Main transactions with related parties |  |  |
Sales and services | 16 | 20 | 0
Purchases and others | 4,591 | 3,411 | 2,354
E2 Energia Eficiente S.A. E.S.P. | Associates |  |  |
Main transactions with related parties |  |  |
Sales and services | 91,105 | 90,117 | 60,159
Purchases and others | 3,045 | 7,908 | 6,976
Equion Energa Limited | Joint ventures |  |  |
Main transactions with related parties |  |  |
Sales and services | 731 | 33 | 13,996
Purchases and others | 2,578 | 23,845 | 149,046
Ecodiesel Colombia S.A. | Joint ventures |  |  |
Main transactions with related parties |  |  |
Sales and services | 25,032 | 21,234 | 35,825
Purchases and others | $ 540,987 | $ 619,286 | $ 442,373

X
- Definition The amount of purchase and other transactions made by the entity in related party transactions. + References No definition available. + Details
Name: | ec_PurchasesAndOtherAssetsRelatedPartyTransactions
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of revenue arising from sales and services in related party transactions. + References No definition available. + Details
Name: | ec_SalesAndServicesRelatedPartyTransactions
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ifrs-full_JointVenturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ifrs-full_AssociatesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ec_GasNaturalDelOrienteS.a.E.s.p.Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ec_ExtrucolS.a.Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ec_E2EnergaEficienteS.a.E.s.p.Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_JointVenturesAxis=ec_EquionEnergyLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_JointVenturesAxis=ec_EcodieselColombiaSaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |