Magento2: Optional PO number

Created on 12 Sep 2016  路  7Comments  路  Source: magento/magento2

Steps to reproduce

  1. Add items to cart, go to checkout and select "Purchase Order".
    111
  2. Use REST API [POST] /V1/carts/mine/payment-information
{
  "paymentMethod": {
      "method": "purchaseorder"
   }
}

Expected result

Error: PO number is required.

Actual result

"90"

(number of new order)

Additional info

API documentation checkoutPaymentInformationManagementV1

quote-data-payment-interface {
  po_number (string, optional): Purchase order number ,
  ...
}

| Q | A |
| --- | --- |
| Magento version | 2.1.0 with sample data |
| PHP version | 7 x64 |
| Operating system | Windows 10 x64 |

FrameworWebapi Fixed in 2.2.x Fixed in 2.3.x Clear Description Confirmed Format is not valid Ready for Work Reproduced on 2.1.x Reproduced on 2.2.x Reproduced on 2.3.x bug report

All 7 comments

Magento does not support your operating system. Please confirm that the issue reproduces on some supported system as well. Please see Magento technology stack requirements for more information.

Internal ticket created MAGETWO-70558

@springimport, thank you for your report.
We've created internal ticket(s) MAGETWO-70558 to track progress on the issue.

Bug still exists in Magento 2.2.4 - will this bug be fixed soon?

There is a fix for this in #14393. Please give it a try and report back @matin73.

Hi @springimport. Thank you for your report.
The issue has been fixed in magento/magento2#14393 by @centerax in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.7 release.

Hi @springimport. Thank you for your report.
The issue has been fixed in magento/magento2#17670 by @mage2pratik in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

Was this page helpful?
0 / 5 - 0 ratings