Skip to content

Optional PO number #6585

@springimport

Description

@springimport

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions