# \_setDeliveryAddress

Sets the delivery address for a PurchaseOrder.

### Parameters

#### id

The ID of the PurchaseOrder.

#### delivery\_address

The delivery address to set.

### Example

```
FM_api('PurchaseOrder_setDeliveryAddress', ['id' => '1', 'delivery_address' => 'Belfast Road, Newry, Newry and Mourne, BT34 1QH]);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

If the User is not logged in:

```
{'error':'not logged in'}
```

If no ID is provided:

```
{'error':'no purchase order ID provided'}
```

If no delivery address is provided:

```
{'error':'no address provided'}
```
