{"action":"closed","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/8020","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/8020/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/8020/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/8020/events","html_url":"https://github.com/magento/magento2/issues/8020","id":198424373,"node_id":"MDU6SXNzdWUxOTg0MjQzNzM=","number":8020,"title":"Sales order ID is updated when sales order save is called from SOAP API","user":{"login":"hacheni","id":20256551,"node_id":"MDQ6VXNlcjIwMjU2NTUx","avatar_url":"https://avatars2.githubusercontent.com/u/20256551?v=4","gravatar_id":"","url":"https://api.github.com/users/hacheni","html_url":"https://github.com/hacheni","followers_url":"https://api.github.com/users/hacheni/followers","following_url":"https://api.github.com/users/hacheni/following{/other_user}","gists_url":"https://api.github.com/users/hacheni/gists{/gist_id}","starred_url":"https://api.github.com/users/hacheni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacheni/subscriptions","organizations_url":"https://api.github.com/users/hacheni/orgs","repos_url":"https://api.github.com/users/hacheni/repos","events_url":"https://api.github.com/users/hacheni/events{/privacy}","received_events_url":"https://api.github.com/users/hacheni/received_events","type":"User","site_admin":false},"labels":[{"id":373917120,"node_id":"MDU6TGFiZWwzNzM5MTcxMjA=","url":"https://api.github.com/repos/magento/magento2/labels/Component:%20Framework/Webapi","name":"Component: Framework/Webapi","color":"7fb703","default":false},{"id":686477493,"node_id":"MDU6TGFiZWw2ODY0Nzc0OTM=","url":"https://api.github.com/repos/magento/magento2/labels/Fixed%20in%202.3.x","name":"Fixed in 2.3.x","color":"0e8a16","default":false},{"id":686420665,"node_id":"MDU6TGFiZWw2ODY0MjA2NjU=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Clear%20Description","name":"Issue: Clear Description","color":"0e8a16","default":false},{"id":686476746,"node_id":"MDU6TGFiZWw2ODY0NzY3NDY=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Confirmed","name":"Issue: Confirmed","color":"0e8a16","default":false},{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false},{"id":21716835,"node_id":"MDU6TGFiZWwyMTcxNjgzNQ==","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Ready%20for%20Work","name":"Issue: Ready for Work","color":"0e8a16","default":false},{"id":686477069,"node_id":"MDU6TGFiZWw2ODY0NzcwNjk=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.1.x","name":"Reproduced on 2.1.x","color":"e99695","default":false},{"id":686477126,"node_id":"MDU6TGFiZWw2ODY0NzcxMjY=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.2.x","name":"Reproduced on 2.2.x","color":"e99695","default":false},{"id":686477167,"node_id":"MDU6TGFiZWw2ODY0NzcxNjc=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.3.x","name":"Reproduced on 2.3.x","color":"7d6ed1","default":false},{"id":147131376,"node_id":"MDU6TGFiZWwxNDcxMzEzNzY=","url":"https://api.github.com/repos/magento/magento2/labels/bug%20report","name":"bug report","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-01-03T07:50:44Z","updated_at":"2019-09-05T16:00:12Z","closed_at":"2019-09-05T16:00:12Z","author_association":"NONE","body":"Hi all,\r\n\r\nWhen using the Magento 2.1.1 SOAP API to update the sales order state, the displayed ID (increment_id) is changed with the order state.\r\n\r\n### Preconditions\r\nWe use a JAVA client for the magento 2.1.1 SOAP API to handle sales order in an external application.\r\n\r\n### Steps to reproduce\r\n1. Create a sales order from the magento shop. Assume that the displayed order ID (increment_id) is 0000001 and the internal order ID (entity_id) is 1. The order is created and its state is complete.\r\n2. Use the salesOrderRepository SOAP API to fetch the order and treat it in our external application.\r\n3. Assume the the order is completely treated in our application, we want to close it. So we use the salesOrderRepository SOAP API save operation to update the order state from complete to closed.\r\n\r\n### Expected result\r\nWhat we expected is that the order state is changed but its visible ID remains the same since it is the ID sent to the customer as a reference and if something wrong happens we will not find a reference to the customer order.\r\n\r\n### Actual result\r\nThe order state is updated correctly but the visible ID is increment to 0000002. The internal order ID is not touched and we are still able to fetch it using the SOAP API with the same internal ID. Finally we have sent an email to the customer telling him that his order (ID = 0000001) is created and when the order is treated, its visible ID is changed to 0000002. Our problem here is when the customer will complain about an error occurred in his order, he will tell us that his order ID is 0000001 which does not exist anymore in the magento store since it is transformed to 0000002 after the SOAP API save call.  \r\n\r\nBest Regards"}}
{"actor":{"display_login":"magento-engcom-team"}}