XML 182 R165.htm IDEA: XBRL DOCUMENT
v3.23.1

Contractual Commitments - Granted Guarantees - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |
--- | --- | ---
Dec. 31, 2022 | Dec. 31, 2020 | Dec. 31, 2021
Class XVI NOs [Member] |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Restricted cash | $ 160 |  | $ 19
Percentage of debt services | 125.00% |  |
Term over which the debt services shall be settled | 6 months |  |
Reserve outstanding amount | $ 25 |  |
Reserve maximum outstanding amount | 185 |  |
Argentine Bonds 2029 and 2030 |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Nominal Value of Security |  | $ 290 |
Argentine Bonds 2029 and 2030 | OPESSA |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Security commitment |  | $ 30 |
Granted Guarantees [member] |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |
Assumed other commitments | 259 |  |
Bank guarantees issued | 6 |  |
Other commitments assumed released | $ 157 |  |

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 2022-03-24 -Paragraph 21 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2022-en-r&anchor=para_21_i&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_55&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_RestrictedCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of liabilities settled by the entity on behalf of a related party in related party transactions. [Refer: Related parties [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 24 -IssueDate 2022-03-24 -Paragraph 21 -Subparagraph j -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2022-en-r&anchor=para_21_j&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_SettlementOfLiabilitiesByEntityOnBehalfOfRelatedPartyRelatedPartyTransactions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

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 Other commitments assumed released. + References No definition available. + Details
Name: | ypf_OtherCommitmentsAssumedReleased
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 Reserve maximum outstanding amount. + References No definition available. + Details
Name: | ypf_ReserveMaximumOutstandingAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Reserve outstanding amount. + References No definition available. + Details
Name: | ypf_ReserveOutstandingAmount
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
- Definition Security commitment. + References No definition available. + Details
Name: | ypf_SecurityCommitment
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Term over which the debt services shall be settled. + References No definition available. + Details
Name: | ypf_TermOverWhichTheDebtServicesShallBeSettled
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | ypf_GuaranteedSecurityAxis=ypf_ArgentineBondsTwoThousandTwentyNineAndTwoThousandThirtyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_InvestorsAxis=ypf_OPESSAMember
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: |