Skip to content

REST API /V1/carts/:cartId/selected-payment-method Internal Error #3660

@RUjmiak

Description

@RUjmiak

Hello,

I am trying to create order by REST API.

I have created cart with item. Then I created billing address and I want to select payment method

request
PUT /rest/V1/carts/13/selected-payment-method
{
"method": {
"poNumber": "25",
"method": "cashondelivery"
}
}

Q: what is poNumber? I put there billing address id but I have no idea what poNumber is...

response
{
"message": "Internal Error. Details are available in Magento log file. Report ID: webapi-56d98b6cf03ca"
}

Log
main.CRITICAL: exception 'LogicException' with message 'Report ID: webapi-56d98b6cf03ca; Message: Property "CartId" does not have corresponding setter in class "Magento\Quote\Api\Data\PaymentInterface".' in /var/www/html/magento/vendor/magento/framework/Webapi/ErrorProcessor.php:194

We want to connect magento api to our 3rd part application... We are still finding how requests should looks because we cant find informations what params in requests/response mean.

It would be great if somebody can write us step by step what we should do if we want to create new order by REST API?

Thanks!

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions