XML 140 R119.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Trade Receivables - Summary of Trade Receivables (Detail) - USD ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | --- | ---
Disclosure of Trade receivables [line items] |  |  |  |
Accounts receivable and related parties, current gross |  | $ 973 | $ 1,504 | $ 1,305
Accounts receivable and related parties, non- current gross |  | 31 | 6 | 43
Accounts Receivable and Related Parties [member] |  |  |  |
Disclosure of Trade receivables [line items] |  |  |  |
Accounts receivable and related parties, current gross | [1],[2] | 1,020 | 1,580 | 1,407
Accounts receivable and related parties, non- current gross | [1],[2] | 43 | 61 | 138
Provision for Doubtful Trade Receivable [member] |  |  |  |
Disclosure of Trade receivables [line items] |  |  |  |
Current trade receivables |  | (47) | (76) | (102)
Accounts receivable and related parties, non- current gross |  | $ (12) | $ (55) | $ (95)
[1] | See Note 24 for information about credits for contracts included in trade receivables.
[2] | See Note 36 for information about related parties.

X
- Definition The amount of an allowance account used to record impairments to financial assets due to credit losses. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expired 2023-01-01 -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_16&doctype=Standard&book=b -URIDate 2023-03-23 + Details
Name: | ifrs-full_AllowanceAccountForCreditLossesOfFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of current trade receivables. [Refer: Trade receivables] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 78 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_b&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 68 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_68&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CurrentTradeReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of non-current trade receivables. [Refer: Trade receivables] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 78 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_NoncurrentTradeReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of Trade receivables [line items] + References No definition available. + Details
Name: | ypf_DisclosureOfTradeReceivablesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_AccountsReceivableAndRelatedPartiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_ProvisionForDoubtfulTradeReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |