> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.venda.rw/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.venda.rw/_mcp/server.

# Create order (PUBLIC - no auth)

POST https://auth/orders
Content-Type: application/json

Reference: https://docs.venda.rw/venda-api-production/orders/create-order-public-no-auth

## Servers

- `https://auth` (https://auth, default)
- `https://profile` (https://profile)
- `https://media` (https://media)
- `https://health` (https://health)
- `https://organizations` (https://organizations)
- `https://products` (https://products)
- `https://categories` (https://categories)
- `https://inventory` (https://inventory)
- `https://inventory-batches` (https://inventory-batches)
- `https://suppliers` (https://suppliers)
- `https://purchase-orders` (https://purchase-orders)
- `https://supplier-payments` (https://supplier-payments)
- `https://goods-received` (https://goods-received)
- `https://supplier-returns` (https://supplier-returns)
- `https://customers` (https://customers)
- `https://customer-payments` (https://customer-payments)
- `https://sales` (https://sales)
- `https://returns` (https://returns)
- `https://orders` (https://orders)
- `https://expenses` (https://expenses)
- `https://recurring-expenses` (https://recurring-expenses)
- `https://cashier-shifts` (https://cashier-shifts)
- `https://cashier-activities` (https://cashier-activities)
- `https://stock-transfers` (https://stock-transfers)
- `https://invitations` (https://invitations)
- `https://permissions` (https://permissions)
- `https://reports` (https://reports)
- `https://api` (https://api)

## Request

### Body (application/json)

This endpoint expects an object.

- `items` (list of OrdersPostRequestBodyContentApplicationJsonSchemaItemsItems, required)
- `storeSlug` (string, required)
- `customerName` (string, required)
- `customerPhone` (string, required)
- `paymentMethod` (string, required)

## Response

### 200

Successful response

## Types

### OrdersPostRequestBodyContentApplicationJsonSchemaItemsItems

- `quantity` (string, required)
- `productVariantId` (string, required)

## Examples

**Request**

```json
{
  "items": [
    {
      "quantity": "3",
      "productVariantId": "{{variantId}}"
    }
  ],
  "storeSlug": "my-store",
  "customerName": "Jean Bosco",
  "customerPhone": "+250788000111",
  "paymentMethod": "MOMO"
}
```

**Response**

```json
{}
```

**SDK Code**

```python Orders_Create order (PUBLIC - no auth)_example
import requests

url = "https://auth/orders"

payload = {
    "items": [
        {
            "quantity": "3",
            "productVariantId": "{{variantId}}"
        }
    ],
    "storeSlug": "my-store",
    "customerName": "Jean Bosco",
    "customerPhone": "+250788000111",
    "paymentMethod": "MOMO"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Orders_Create order (PUBLIC - no auth)_example
const url = 'https://auth/orders';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"items":[{"quantity":"3","productVariantId":"{{variantId}}"}],"storeSlug":"my-store","customerName":"Jean Bosco","customerPhone":"+250788000111","paymentMethod":"MOMO"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Orders_Create order (PUBLIC - no auth)_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://auth/orders"

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"quantity\": \"3\",\n      \"productVariantId\": \"{{variantId}}\"\n    }\n  ],\n  \"storeSlug\": \"my-store\",\n  \"customerName\": \"Jean Bosco\",\n  \"customerPhone\": \"+250788000111\",\n  \"paymentMethod\": \"MOMO\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Orders_Create order (PUBLIC - no auth)_example
require 'uri'
require 'net/http'

url = URI("https://auth/orders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"items\": [\n    {\n      \"quantity\": \"3\",\n      \"productVariantId\": \"{{variantId}}\"\n    }\n  ],\n  \"storeSlug\": \"my-store\",\n  \"customerName\": \"Jean Bosco\",\n  \"customerPhone\": \"+250788000111\",\n  \"paymentMethod\": \"MOMO\"\n}"

response = http.request(request)
puts response.read_body
```

```java Orders_Create order (PUBLIC - no auth)_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://auth/orders")
  .header("Content-Type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"quantity\": \"3\",\n      \"productVariantId\": \"{{variantId}}\"\n    }\n  ],\n  \"storeSlug\": \"my-store\",\n  \"customerName\": \"Jean Bosco\",\n  \"customerPhone\": \"+250788000111\",\n  \"paymentMethod\": \"MOMO\"\n}")
  .asString();
```

```php Orders_Create order (PUBLIC - no auth)_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://auth/orders', [
  'body' => '{
  "items": [
    {
      "quantity": "3",
      "productVariantId": "{{variantId}}"
    }
  ],
  "storeSlug": "my-store",
  "customerName": "Jean Bosco",
  "customerPhone": "+250788000111",
  "paymentMethod": "MOMO"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Orders_Create order (PUBLIC - no auth)_example
using RestSharp;

var client = new RestClient("https://auth/orders");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"quantity\": \"3\",\n      \"productVariantId\": \"{{variantId}}\"\n    }\n  ],\n  \"storeSlug\": \"my-store\",\n  \"customerName\": \"Jean Bosco\",\n  \"customerPhone\": \"+250788000111\",\n  \"paymentMethod\": \"MOMO\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Orders_Create order (PUBLIC - no auth)_example
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "items": [
    [
      "quantity": "3",
      "productVariantId": "{{variantId}}"
    ]
  ],
  "storeSlug": "my-store",
  "customerName": "Jean Bosco",
  "customerPhone": "+250788000111",
  "paymentMethod": "MOMO"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://auth/orders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```