How to Create order using Rest API Magento 2?

Create Sales Order by REST API Magento 2 useful to generate dynamic order from the third party platform in Magento System.

You can create an order using the required value from the given Payload. Send Payload in your request with PUT action.

For the Demonstrate purpose pass data like Shipping method, Flatrate shipping, Added Custom discount Shopping cart Rule, and COD as a payment method in payload request.

Check Create Invoice Using Magento 2 REST API
Check Create Shipment Using Magento 2 REST API

We have taken reference for the “Push It Messenger Bag (24-WB04)” simple product from the Magento Sample Data.

Request: {YOUR_URL}/rest/V1/orders/create

Action Type: PUT

Payload Body:

When you run API using above payload,
You got the response from success order data with order_increment id as below format.