XML 186 R165.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Contingent Assets and Liabilities - Additional Information (Detail) $ in Millions | Dec. 30, 2014 Judgment | Mar. 30, 2023 USD ($)
--- | --- | ---
Peterson and eton park and ypf and the republic [member] |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |
Contractual liability payable value |  | $ 0
Direct damages payable for breach of contract |  | $ 0
CSJN [member] | Asociacion Superficiarios de la Patagonia [Member] |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |
Number of interlocutory judgments issued | Judgment | 2 |

X
- Definition Contractual liability payable value. + References No definition available. + Details
Name: | ypf_ContractualLiabilityPayableValue
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Direct damages payable for breach of contract. + References No definition available. + Details
Name: | ypf_DirectDamagesPayableForBreachOfContract
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Disclosure of contingent assets and liabilities. + References No definition available. + Details
Name: | ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of interlocutory judgments. + References No definition available. + Details
Name: | ypf_NumberOfInterlocutoryJudgments
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ypf_CaseDetailsAxis=ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfProvisionsAxis=ypf_CsjnMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_LegalEntitiesAxis=ypf_AsociacionSuperficiariosDeLaPatagoniaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |