Closed galaoleksandr closed 5 years ago
mutation { generateCustomerToken( email: {{ EMAIL }} password: {{ PASS }} ) { token } }
Response:
{ "data": { "generateCustomerToken": { "token": {{ TOKEN }} } } }
mutation { createEmptyCart }
Headers:
{ "Content-Type": "application/json", "Authorization": "Bearer {{ TOKEN }}" }
{ "data": { "createEmptyCart": {{ CART_ID }} } }
mutation { setPaymentMethodOnCart ( input: { cart_id: {{ CART_ID }} payment_method: { code: "purchaseorder" purchase_order_number: "12345" } }) { cart { available_payment_methods { code title } } } }
Purchase order is set
{ "errors": [ { "message": "Purchase order number is a required field.", "category": "graphql-input", "locations": [ { "line": 2, "column": 3 } ], "path": [ "setPaymentMethodOnCart" ] } ], "data": { "setPaymentMethodOnCart": null } }
https://github.com/magento/graphql-ce/pull/578
Preconditions (*)
Steps to reproduce (*)
Response:
Headers:
Response:
Headers:
Expected result (*)
Purchase order is set
Actual result (*)
Response: