Creates a service order with the specified parameters.
This order can be created by service provider and by client as well.
For the service provider direction is `sell`, for the client is `buy`.
> [!HINT] Note
> To be a service-provider, you must have a **[VPN master node](https://wiki.kelvpn.com/Service/Become+a+KelVPN+Service+Provider)**.
## Request Structure
`JSON object:`
```JSON
{
"method": "net_srv",
"subcommand": ["order","create"],
"arguments": {
"net": "network_name",
"srv_uid": "service_uid",
"direction": "sell | buy",
"price": "Price",
"price_unit": "Price Unit",
"price_token": "token_ticker",
"units": "units",
"node_addr": "Node Address",
"tx_cond": "TX Cond Hash",
"expires": "Unix time when expires",
"cert": "cert name to sign order",
"region": "Region name",
"continent": "Continent name"
},
"id": "1"
}
```
`Parameters:`
**`net`** - name of the Cellframe Network. The list of networks can be found in the `<Config_dir> \ etc \ network` folder or received using - [[Node Command - NET LIST]]
**`direction`** - direction of token exchange: sell - from, buy - to
**`srv_uid`** - `UID` of the service
**`price`** - price for the number of units specified in the parameter `-units`, for example, 100000 datoshi for 3600 seconds of the service
**`price_unit`** - preferable unit of service (`SEC` seconds or `B` bytes)
**`price_token`** - ticker of the token
**`units`** - number of units in one portion of the service
**`node_addr`** - address of the node in the service network `optional`
**`tx_cond`** - hash of the conditional transaction `optional`
**`expires`** - time of order expiring `optional`
**`cert`** - name of the master node certificate which is used to sign order `optional`
**`region`** - the region where the node is located `optional`
**`continent`** - the continent where the node is located `optional`
### Curl Example
`Request:`
```powershell
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "net_srv",
"subcommand": ["order","create"],
"arguments": {
"net": "riemann",
"srv_uid": "0x0000000000000001",
"direction": "sell",
"price": "0.000007",
"price_unit": "SEC",
"units": "500",
"price_token": "tKEL",
"cert": "riemann.master.pvt.0"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
{
"order_hash": "0x546C2DC5AE8D0C5E3E267512A0D1367B4E1667F5C00FC95AC1DE318E79AC2E8E"
}
],
"id": 1
}
```