XML 190 R169.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Contractual Commitments - Granted Guarantees - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Class XVI NO [Member] |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Balance of reserve and payment account for holders of class XVI NO | $ 138 | $ 160 | $ 19
Percentage of debt services | 125.00% |  |
Period within which the amount deposited in the reserves shall be paid | 6 months |  |
Reserve and payment account outstanding amount | $ 40 | 25 |
Reserve and payment account maximum amount | 178 | $ 185 |
Granted Guarantees [member] |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Assumed other commitments | 84 |  |
Bank guarantees issued | $ 10 |  |

X
- Definition The amount of related-party commitments made by the entity to do something if a particular event occurs or does not occur in the future, including executory contracts (recognised and unrecognised). [Refer: Related parties [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 24 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_21_i&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition Balance of reserve and payment account for holders of Class XVI NO. + References No definition available. + Details
Name: | ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXVINO
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Bank guarantees issued. + References No definition available. + Details
Name: | ypf_BankGuaranteesIssued
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage of debt services. + References No definition available. + Details
Name: | ypf_PercentageOfDebtServices
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period within which the amount deposited in the reserves shall be paid. + References No definition available. + Details
Name: | ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Reserve and payment account maximum amount. + References No definition available. + Details
Name: | ypf_ReserveAndPaymentAccountMaximumAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Reserve and payment account outstanding amount. + References No definition available. + Details
Name: | ypf_ReserveAndPaymentAccountOutstandingAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Schedule of Granted Guarantees [Line Items] + References No definition available. + Details
Name: | ypf_ScheduleOfGrantedGuaranteesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ypf_InvestorsAxis=ypf_ClassXVINOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis=ifrs-full_GuaranteesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |