{"action":"closed","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12673","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12673/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12673/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12673/events","html_url":"https://github.com/woocommerce/woocommerce/issues/12673","id":197086333,"number":12673,"title":"[2.7] Single order API endpoint doesn't return line item product ID and other values","user":{"login":"bryceadams","id":1532482,"avatar_url":"https://avatars.githubusercontent.com/u/1532482?v=3","gravatar_id":"","url":"https://api.github.com/users/bryceadams","html_url":"https://github.com/bryceadams","followers_url":"https://api.github.com/users/bryceadams/followers","following_url":"https://api.github.com/users/bryceadams/following{/other_user}","gists_url":"https://api.github.com/users/bryceadams/gists{/gist_id}","starred_url":"https://api.github.com/users/bryceadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryceadams/subscriptions","organizations_url":"https://api.github.com/users/bryceadams/orgs","repos_url":"https://api.github.com/users/bryceadams/repos","events_url":"https://api.github.com/users/bryceadams/events{/privacy}","received_events_url":"https://api.github.com/users/bryceadams/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/53","html_url":"https://github.com/woocommerce/woocommerce/milestone/53","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones/53/labels","id":1537224,"number":53,"title":"2.7","description":"2.7 will focus on API + CRUD improvements.","creator":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":243,"state":"open","created_at":"2016-01-22T23:35:12Z","updated_at":"2016-12-22T15:01:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-22T03:22:51Z","updated_at":"2016-12-22T15:01:55Z","closed_at":"2016-12-22T15:01:55Z","body":"## EXPLANATION OF THE ISSUE\r\n\r\nThe product ID in a line item is always `0`.\r\n\r\n## STEPS TO REPRODUCE THE ISSUE\r\n\r\n1. 2.7\r\n2. Make an API call to a single order\r\n3. See a line item's `product_id` value\r\n\r\nI haven't confirmed but presume the same with the `variation_id` column.\r\n\r\nNow that I'm looking at it, it seems like most of the values are 0, like `total`, `subtotal`. Here's a line item response on my end:\r\n\r\n```\r\n\"line_items\" => [\r\n       [\r\n         \"id\" => 4390,\r\n         \"name\" => \"Go Tell It On The Mountain By James Baldwin\",\r\n         \"product_id\" => 0,\r\n         \"variation_id\" => 0,\r\n         \"quantity\" => 1,\r\n         \"tax_class\" => \"\",\r\n         \"subtotal\" => \"0.00\",\r\n         \"subtotal_tax\" => \"0.00\",\r\n         \"total\" => \"0.00\",\r\n         \"total_tax\" => \"0.00\",\r\n         \"taxes\" => [],\r\n         \"meta_data\" => [],\r\n         \"sku\" => \"GOTEL56288\",\r\n         \"price\" => 124.4,\r\n         \"meta\" => [],\r\n       ],\r\n     ],\r\n```"}}
{"actor":{"display_login":"mikejolley"}}