# parcel_buy

Purchases the parcel at a specific point in the region.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("parcel_buy", [
  "x", 30,
  "y", 60
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="parcel_buy"
```

```snippet http-api-input-q5yvAagqsZ
x                   | optional | The X coordinate of the parcel (default - at bot's position)
y                   | optional | The Y coordinate of the parcel (default - at bot's position)
group               | optional | The UUID of the group to buy the parcel for (if buying for the group)
remove_contribution | optional | `1` - remove the land contribution from the group after purchasing the parcel (if buying for the group)
```

```snippet http-api-output-JAwUcmg7i7
```

# Permissions

* The land must be set for sale (see `parcel_info_update` command to sell land)
* The bot must have enough money on balance
* If purchasing for a group, the “Deed land and buy land for group” group ability is required

# Return values

The command returns:

```
result = OK
```

if the parcel has been purchased successfully.