This page provides information about the "Orders Create" API endpoint for developers.

Endpoint URL

The URL for the "Orders Create" API endpoint is /en/developer/api_endpoints/orders_create.

Usage

To create a new order, you can send a POST request to this endpoint. The request should include the necessary details about the order, such as the product ID, quantity, and customer information.

Request Format

The request should be in JSON format. Here's an example of the request body:

{
  "productId": 123,
  "quantity": 2,
  "customer": {
    "name": "John Doe",
    "email": "johndoe@example.com",
    "phone": "123-456-7890"
  }
}

Response Format

Upon successful creation of the order, the server will respond with a JSON object containing the order details. Here's an example of the response:

{
  "orderId": 456,
  "productId": 123,
  "quantity": 2,
  "customer": {
    "name": "John Doe",
    "email": "johndoe@example.com",
    "phone": "123-456-7890"
  },
  "status": "Created"
}

For more information about the API endpoints, please visit our Developer Documentation.

Related Articles


Order_Process

Note: Make sure to follow best practices for API development to ensure the security and reliability of your application.