-
Notifications
You must be signed in to change notification settings - Fork 9.4k
placing order is not working through REST api call #2517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@arunkasyakar Please try adding |
after adding the cartId in payload i am not getting the internal error but i got error response that is: { my payload is: { i tried this with various payment method like: cashondelivery, banktransfer, checkmo and free but in all cases i am getting the same response |
@arunkasyakar We have tried to reproduce same behaviour as you described in this ticket and in #2497 but currently with no success. These issues seem to be similar. We used current To help us solve the issue in a timely manner please provide detailed information on flow you are going through before reaching Place Order, customizations you have done to your installation (if there are any), settings changed since original installation (especially payment settings). Also, please check if Magento's checkout works fine (it uses pretty much the same api calls to place an order). Thank you. |
with pay load: { now i am getting the error i made some configuration changes on stores-> sales->payment methods
|
@arunkasyakar Thank you for the information provided.
|
i tried for india's address also but i am getting the same response |
@arunkasyakar Please try setting both billing and shipping addresses to India ( |
thanks @ishakhsuvarov now its working fine, but what about banktransfer, and cashondeliver payment methods. |
@arunkasyakar You may get the list of available payment methods (with their codes) for the current cart using |
thanks @ishakhsuvarov . i have one more doubt, is there any api available to update the payment transaction information after placing the order. i have checked for this in swagger api document but i did not get anything. |
@arunkasyakar Order information may not be updated after it's placed. |
so how will be the order status change from pending to processing or completed |
@arunkasyakar Please refer to the |
Thanks @ishakhsuvarov |
when i am trying to place order from the api call:
http://MYHOST/rest/default/V1/carts/1/order
payload:
{
"paymentMethod": {
"poNumber": "string",
"method": "checkmo",
"additionalData": [
"string"
],
"extensionAttributes": {
"agreementIds": [
"string"
]
}
}
}
i am getting internal error that is:
{
"message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5655974c6087b"
}
and the error log is:
[2015-11-25 11:11:08] main.CRITICAL: exception 'LogicException' with message 'Report ID: webapi-5655974c6087b; Message: Property "CartId" does not have corresponding setter in class "Magento\Quote\Api\Data\PaymentInterface".' in /var/www/html/MYPROJECT/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:194
Stack trace:
#0 /var/www/html/MYPROJECT/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(LogicException))
#1 /var/www/html/MYPROJECT/app/code/Magento/Webapi/Controller/Rest.php(163): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(LogicException))
#2 /var/www/html/MYPROJECT/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#3 /var/www/html/MYPROJECT/lib/internal/Magento/Framework/App/Http.php(115): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#4 /var/www/html/MYPROJECT/lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#5 /var/www/html/MYPROJECT/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#6 {main} [] []
The text was updated successfully, but these errors were encountered: